Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tl.recover_dynamics #1059

Merged
merged 1 commit into from
May 29, 2023
Merged

Conversation

Marius1311
Copy link
Contributor

@Marius1311 Marius1311 commented May 16, 2023

Changes

  • Modifies the way parameters are set in scv.tl.recover_dynamics

Related issues

Closes #1058

Copy link
Member

@WeilerP WeilerP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @Marius1311!

@WeilerP WeilerP merged commit ac5e374 into theislab:master May 29, 2023
@MarieCoutelier
Copy link

Hi,
I still have the ValueError issue mentioned in #1077 while trying out the Cellrank tutorial. I see that this is supposed to fix it, did I miss something I had to change in the tutorial code (https://cellrank.readthedocs.io/en/stable/cellrank_basics.html) for it to work?

I literally copied-pasted the tutorial to try out, the only change I did was add this to account for the compatibility with python 3.10+.

from collections.abc import Iterable
import collections
collections.Iterable = collections.abc.Iterable

I get the same issue in both Jupyter notebook and when trying out the code directly in python.
Also, my install of cellrank is fresh from today and was done with conda as suggested in https://cellrank.readthedocs.io/en/stable/installation.html
(conda install -c conda-forge -c bioconda cellrank)

My conda envt is as follows:

# packages in environment at /Users/marie.coutelier/miniconda3/envs/cellrank:
#
# Name                    Version                   Build  Channel
anndata                   0.9.1              pyhd8ed1ab_0    conda-forge
anyio                     3.7.0                    pypi_0    pypi
appnope                   0.1.3                    pypi_0    pypi
argon2-cffi               21.3.0                   pypi_0    pypi
argon2-cffi-bindings      21.2.0                   pypi_0    pypi
arrow                     1.2.3                    pypi_0    pypi
asttokens                 2.2.1                    pypi_0    pypi
attrs                     23.1.0                   pypi_0    pypi
backcall                  0.2.0                    pypi_0    pypi
beautifulsoup4            4.12.2                   pypi_0    pypi
bleach                    6.0.0                    pypi_0    pypi
brotli                    1.0.9                hb7f2c08_8    conda-forge
brotli-bin                1.0.9                hb7f2c08_8    conda-forge
bzip2                     1.0.8                h0d85af4_4    conda-forge
c-ares                    1.19.1               h0dc2134_0    conda-forge
ca-certificates           2023.5.7             h8857fd0_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cellrank                  1.5.1              pyhdfd78af_0    bioconda
certifi                   2023.5.7           pyhd8ed1ab_0    conda-forge
cffi                      1.15.1                   pypi_0    pypi
charset-normalizer        3.1.0              pyhd8ed1ab_0    conda-forge
click                     8.1.3           unix_pyhd8ed1ab_2    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
comm                      0.1.3                    pypi_0    pypi
contourpy                 1.1.0           py311h5fe6e05_0    conda-forge
cycler                    0.11.0             pyhd8ed1ab_0    conda-forge
debugpy                   1.6.7                    pypi_0    pypi
decorator                 5.1.1                    pypi_0    pypi
defusedxml                0.7.1                    pypi_0    pypi
docrep                    0.3.2              pyh44b312d_0    conda-forge
executing                 1.2.0                    pypi_0    pypi
fastjsonschema            2.17.1                   pypi_0    pypi
fftw                      3.3.10          mpi_openmpi_h7f3849b_8    conda-forge
fonttools                 4.40.0          py311h2725bcf_0    conda-forge
fqdn                      1.5.1                    pypi_0    pypi
freetype                  2.12.1               h3f81eb7_1    conda-forge
future                    0.18.3             pyhd8ed1ab_0    conda-forge
gmp                       6.2.1                h2e338ed_0    conda-forge
h5py                      3.8.0           nompi_py311hcf977c2_101    conda-forge
hdf5                      1.14.0          mpi_openmpi_h88dfb0a_3    conda-forge
hypre                     2.28.0          mpi_openmpi_h90d1d20_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
importlib-metadata        6.6.0              pyha770c72_0    conda-forge
importlib_metadata        6.6.0                hd8ed1ab_0    conda-forge
ipykernel                 6.23.2                   pypi_0    pypi
ipython                   8.14.0                   pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
isoduration               20.11.0                  pypi_0    pypi
jedi                      0.18.2                   pypi_0    pypi
jinja2                    3.1.2                    pypi_0    pypi
joblib                    1.2.0              pyhd8ed1ab_0    conda-forge
jsonpointer               2.3                      pypi_0    pypi
jsonschema                4.17.3                   pypi_0    pypi
jupyter-client            8.2.0                    pypi_0    pypi
jupyter-core              5.3.1                    pypi_0    pypi
jupyter-events            0.6.3                    pypi_0    pypi
jupyter-server            2.6.0                    pypi_0    pypi
jupyter-server-terminals  0.4.4                    pypi_0    pypi
jupyterlab-pygments       0.2.2                    pypi_0    pypi
kiwisolver                1.4.4           py311hd2070f0_1    conda-forge
krb5                      1.20.1               h049b76e_0    conda-forge
lcms2                     2.15                 h2dcdeff_1    conda-forge
lerc                      4.0.0                hb486fe8_0    conda-forge
libaec                    1.0.6                hf0c8a7f_1    conda-forge
libblas                   3.9.0           17_osx64_openblas    conda-forge
libbrotlicommon           1.0.9                hb7f2c08_8    conda-forge
libbrotlidec              1.0.9                hb7f2c08_8    conda-forge
libbrotlienc              1.0.9                hb7f2c08_8    conda-forge
libcblas                  3.9.0           17_osx64_openblas    conda-forge
libcurl                   8.1.2                hbee3ae8_0    conda-forge
libcxx                    16.0.5               hd57cbcb_0    conda-forge
libdeflate                1.18                 hac1461d_0    conda-forge
libedit                   3.1.20191231         h0678c8f_2    conda-forge
libev                     4.33                 haf1e3a3_1    conda-forge
libexpat                  2.5.0                hf0c8a7f_1    conda-forge
libffi                    3.4.2                h0d85af4_5    conda-forge
libgfortran               5.0.0           11_3_0_h97931a8_31    conda-forge
libgfortran5              12.2.0              he409387_31    conda-forge
libjpeg-turbo             2.1.5.1              hb7f2c08_0    conda-forge
liblapack                 3.9.0           17_osx64_openblas    conda-forge
libllvm14                 14.0.6               hc8e404f_3    conda-forge
libnghttp2                1.52.0               he2ab024_0    conda-forge
libopenblas               0.3.23          openmp_h429af6e_0    conda-forge
libpng                    1.6.39               ha978bb4_0    conda-forge
libsqlite                 3.42.0               h58db7d2_0    conda-forge
libssh2                   1.11.0               hd019ec5_0    conda-forge
libtiff                   4.5.1                hf955e92_0    conda-forge
libwebp-base              1.3.0                hb7f2c08_0    conda-forge
libxcb                    1.15                 hb7f2c08_0    conda-forge
libzlib                   1.2.13               h8a1eda9_5    conda-forge
llvm-openmp               16.0.5               hff08bdf_0    conda-forge
llvmlite                  0.40.0          py311hcbb5c6d_0    conda-forge
loompy                    3.0.6                      py_0    conda-forge
markupsafe                2.1.3                    pypi_0    pypi
matplotlib-base           3.7.1           py311h2bf763f_0    conda-forge
matplotlib-inline         0.1.6                    pypi_0    pypi
metis                     5.1.0             h2e338ed_1006    conda-forge
mistune                   2.0.5                    pypi_0    pypi
mpfr                      4.2.0                h4f9bd69_0    conda-forge
mpi                       1.0                     openmpi    conda-forge
mpi4py                    3.1.4           py311h0cff672_0    conda-forge
mumps-include             5.2.1               h694c41f_11    conda-forge
mumps-mpi                 5.2.1               had0ebf5_11    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
natsort                   8.3.1              pyhd8ed1ab_0    conda-forge
nbclassic                 1.0.0                    pypi_0    pypi
nbclient                  0.8.0                    pypi_0    pypi
nbconvert                 7.5.0                    pypi_0    pypi
nbformat                  5.9.0                    pypi_0    pypi
ncurses                   6.4                  hf0c8a7f_0    conda-forge
nest-asyncio              1.5.6                    pypi_0    pypi
networkx                  3.1                pyhd8ed1ab_0    conda-forge
notebook                  6.5.4                    pypi_0    pypi
notebook-shim             0.2.3                    pypi_0    pypi
numba                     0.57.0          py311h5a8220d_2    conda-forge
numpy                     1.24.3          py311hc44ba51_0    conda-forge
numpy_groupies            0.9.22             pyhd8ed1ab_0    conda-forge
openjpeg                  2.5.0                h13ac156_2    conda-forge
openmpi                   4.1.5              h4fe9131_101    conda-forge
openssl                   3.1.1                h8a1eda9_1    conda-forge
overrides                 7.3.1                    pypi_0    pypi
packaging                 23.1               pyhd8ed1ab_0    conda-forge
pandas                    2.0.2           py311hab14417_0    conda-forge
pandocfilters             1.5.0                    pypi_0    pypi
parmetis                  4.0.3             h7eda126_1005    conda-forge
parso                     0.8.3                    pypi_0    pypi
patsy                     0.5.3              pyhd8ed1ab_0    conda-forge
petsc                     3.19.2          real_h84f8e5a_100    conda-forge
petsc4py                  3.19.1          real_hd6b8595_100    conda-forge
pexpect                   4.8.0                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pillow                    9.5.0           py311h7cb0e2d_1    conda-forge
pip                       23.1.2             pyhd8ed1ab_0    conda-forge
platformdirs              3.5.3              pyhd8ed1ab_0    conda-forge
pooch                     1.7.0              pyha770c72_3    conda-forge
progressbar2              4.2.0              pyhd8ed1ab_0    conda-forge
prometheus-client         0.17.0                   pypi_0    pypi
prompt-toolkit            3.0.38                   pypi_0    pypi
psutil                    5.9.5                    pypi_0    pypi
pthread-stubs             0.4               hc929b4f_1001    conda-forge
ptscotch                  6.0.9                h6295d7f_2    conda-forge
ptyprocess                0.7.0                    pypi_0    pypi
pure-eval                 0.2.2                    pypi_0    pypi
pycparser                 2.21                     pypi_0    pypi
pygam                     0.9.0              pyhd8ed1ab_1    conda-forge
pygments                  2.15.1                   pypi_0    pypi
pygpcca                   1.0.4              pyhd8ed1ab_2    conda-forge
pynndescent               0.5.10             pyh1a96a4e_0    conda-forge
pyparsing                 3.0.9              pyhd8ed1ab_0    conda-forge
pyrsistent                0.19.3                   pypi_0    pypi
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.11.4          h30d4d87_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python-json-logger        2.0.7                    pypi_0    pypi
python-tzdata             2023.3             pyhd8ed1ab_0    conda-forge
python-utils              3.6.0              pyhd8ed1ab_0    conda-forge
python_abi                3.11                    3_cp311    conda-forge
pytz                      2023.3             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0                      pypi_0    pypi
pyzmq                     25.1.0                   pypi_0    pypi
readline                  8.2                  h9e318b2_1    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
rfc3339-validator         0.1.4                    pypi_0    pypi
rfc3986-validator         0.1.1                    pypi_0    pypi
scalapack                 2.2.0                h208a4c8_1    conda-forge
scanpy                    1.9.3              pyhd8ed1ab_0    conda-forge
scikit-learn              1.2.2           py311h83feae1_2    conda-forge
scipy                     1.10.1          py311h16c3c4d_3    conda-forge
scotch                    6.0.9                h3da7401_2    conda-forge
scvelo                    0.2.5              pyhdfd78af_0    bioconda
seaborn                   0.12.2               hd8ed1ab_0    conda-forge
seaborn-base              0.12.2             pyhd8ed1ab_0    conda-forge
send2trash                1.8.2                    pypi_0    pypi
session-info              1.0.0              pyhd8ed1ab_0    conda-forge
setuptools                67.7.2             pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
slepc                     3.19.1          real_hac9219d_100    conda-forge
slepc4py                  3.19.1          real_h4b7bfcd_100    conda-forge
sniffio                   1.3.0                    pypi_0    pypi
soupsieve                 2.4.1                    pypi_0    pypi
stack-data                0.6.2                    pypi_0    pypi
statsmodels               0.14.0          py311h4a70a88_1    conda-forge
stdlib-list               0.8.0              pyhd8ed1ab_0    conda-forge
suitesparse               5.10.1               h7aff33d_1    conda-forge
superlu                   5.2.2                h1f0f902_0    conda-forge
superlu_dist              7.2.0                hcde7739_0    conda-forge
tbb                       2021.9.0             hb8565cd_0    conda-forge
terminado                 0.17.1                   pypi_0    pypi
threadpoolctl             3.1.0              pyh8a188c0_0    conda-forge
tinycss2                  1.2.1                    pypi_0    pypi
tk                        8.6.12               h5dbffcc_0    conda-forge
tornado                   6.3.2                    pypi_0    pypi
tqdm                      4.65.0             pyhd8ed1ab_1    conda-forge
traitlets                 5.9.0                    pypi_0    pypi
typing-extensions         4.6.3                hd8ed1ab_0    conda-forge
typing_extensions         4.6.3              pyha770c72_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
umap-learn                0.5.3           py311h6eed73b_1    conda-forge
uri-template              1.2.0                    pypi_0    pypi
urllib3                   2.0.3              pyhd8ed1ab_0    conda-forge
wcwidth                   0.2.6                    pypi_0    pypi
webcolors                 1.13                     pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
websocket-client          1.5.3                    pypi_0    pypi
wheel                     0.40.0             pyhd8ed1ab_0    conda-forge
wrapt                     1.15.0          py311h5547dcb_0    conda-forge
xorg-libxau               1.0.11               h0dc2134_0    conda-forge
xorg-libxdmcp             1.1.3                h35c211d_0    conda-forge
xz                        5.2.6                h775f41a_0    conda-forge
yaml                      0.2.5                h0d85af4_2    conda-forge
zipp                      3.15.0             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               h8a1eda9_5    conda-forge
zstd                      1.5.2                hbc0c0cd_6    conda-forge

and conda info gives me:

(cellrank) ICM-DURR-MP001:CellRank marie.coutelier$ conda info

     active environment : cellrank
    active env location : /Users/marie.coutelier/miniconda3/envs/cellrank
            shell level : 2
       user config file : /Users/marie.coutelier/.condarc
 populated config files : /Users/marie.coutelier/.condarc
          conda version : 23.5.0
    conda-build version : not installed
         python version : 3.9.7.final.0
       virtual packages : __archspec=1=x86_64
                          __osx=10.16=0
                          __unix=0=0
       base environment : /Users/marie.coutelier/miniconda3  (writable)
      conda av data dir : /Users/marie.coutelier/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/bioconda/osx-64
                          https://conda.anaconda.org/bioconda/noarch
                          https://conda.anaconda.org/r/osx-64
                          https://conda.anaconda.org/r/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/marie.coutelier/miniconda3/pkgs
                          /Users/marie.coutelier/.conda/pkgs
       envs directories : /Users/marie.coutelier/miniconda3/envs
                          /Users/marie.coutelier/.conda/envs
               platform : osx-64
             user-agent : conda/23.5.0 requests/2.27.1 CPython/3.9.7 Darwin/21.2.0 OSX/10.16
                UID:GID : 13848:10513
             netrc file : None
           offline mode : False

Thanks a lot for your help!
Marie

@Marius1311
Copy link
Contributor Author

Hi @MarieCoutelier, did you install scVelo from main?

@MarieCoutelier
Copy link

Hi Marius,

I installed cellrank with conda (conda install -c conda-forge -c bioconda cellrank) and it took care of the scvelo dependency. The version that it installed is :
scvelo 0.2.5 pyhdfd78af_0 biocond

When I try to update it with pip install -U scvelo it does not change, though the browser tab seems to say that the most updated version is 0.2.6.dev0+something.
Should I install the dev version then? By dlding directly from github?

Thanks,
Marie

@Marius1311
Copy link
Contributor Author

Yes, the PR was merged to master on scVelo and there hasn't been a release since, so you fill have to install scVelo from the master branch on github.

@MarieCoutelier
Copy link

Stupid question, but how can I do that?
I tried

git clone https://github.com/theislab/scvelo.git
cd scvelo
make

but got the error message that there is no target for make.

I could not find the answer in the README either...

Thanks!!

@MarieCoutelier
Copy link

Hi,

So I tried installing scvelo from git with pip using pip install git+https://github.com/theislab/scvelo, and now have v0.3.0 pypi_0 pypi

I opened python, and tried importing scvelo. Here the error that I get :

Python 3.11.4 | packaged by conda-forge | (main, Jun 10 2023, 18:10:28) [Clang 15.0.7 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> 
>>> import scvelo as scv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvelo/__init__.py", line 6, in <module>
    from scvelo import plotting as pl
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvelo/plotting/__init__.py", line 3, in <module>
    from .gridspec import gridspec
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvelo/plotting/gridspec.py", line 6, in <module>
    from .scatter import scatter
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvelo/plotting/scatter.py", line 16, in <module>
    from .utils import (
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvelo/plotting/utils.py", line 24, in <module>
    from scvelo.tools.utils import strings_to_categoricals
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvelo/tools/__init__.py", line 14, in <module>
    from ._vi_model import VELOVI
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvelo/tools/_vi_model.py", line 14, in <module>
    from scvi.data import AnnDataManager
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvi/__init__.py", line 11, in <module>
    from . import autotune, data, model, external, utils, criticism
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvi/autotune/__init__.py", line 1, in <module>
    from ._manager import TuneAnalysis, TunerManager
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvi/autotune/_manager.py", line 11, in <module>
    from chex import dataclass
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/chex/__init__.py", line 17, in <module>
    from chex._src.asserts import assert_axis_dimension
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/chex/_src/asserts.py", line 26, in <module>
    from chex._src import asserts_internal as _ai
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/chex/_src/asserts_internal.py", line 34, in <module>
    from chex._src import pytypes
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/chex/_src/pytypes.py", line 19, in <module>
    import jax
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/jax/__init__.py", line 35, in <module>
    from jax import config as _config_module
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/jax/config.py", line 17, in <module>
    from jax._src.config import config  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/jax/_src/config.py", line 24, in <module>
    from jax._src import lib
  File "/Users/marie.coutelier/miniconda3/envs/cellrank/lib/python3.11/site-packages/jax/_src/lib/__init__.py", line 84, in <module>
    cpu_feature_guard.check_cpu_features()
RuntimeError: This version of jaxlib was built using AVX instructions, which your CPU and/or operating system do not support. You may be able work around this issue by building jaxlib from source.

What can I do to fix this?
Thanks!

@Marius1311
Copy link
Contributor Author

mh, that's a CellRank issue and has something to do with JAX and I think Apple silicon architectures - why do we get this here @michalk8?

@MarieCoutelier
Copy link

Hi,

I also tried installing everything on the computing cluster which is operated on CentOS 7.
I ran

conda install -c bioconda cellrank
pip install git+https://github.com/theislab/scvelo

The pip install gave me the following error message:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pygpcca 1.0.4 requires jinja2==3.0.3, but you have jinja2 3.1.2 which is incompatible.

but scvelo 0.3.0 got installed (conda list).

In python, I could still not import scvelo:

>>> import sys
>>> import scvelo as scv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvelo/__init__.py", line 3, in <module>
    from scanpy import read, read_loom
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scanpy/__init__.py", line 17, in <module>
    from . import plotting as pl
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scanpy/plotting/__init__.py", line 1, in <module>
    from ._anndata import (
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scanpy/plotting/_anndata.py", line 28, in <module>
    from . import _utils
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scanpy/plotting/_utils.py", line 36, in <module>
    class _AxesSubplot(Axes, axes.SubplotBase, ABC):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

I then tried correcting the jinja error with

pip install jinja2==3.0.3

which correctly changed the version to 3.0.3, but did not solve the issue in python.

So I'm unable to use scvelo in either my computer or the computing cluster, for now.
If I can provide any additional info to identify the issue, please let me know :-)

Thanks a lot for your help!

Marie

@partrita
Copy link

Hi,

I also tried installing everything on the computing cluster which is operated on CentOS 7. I ran

conda install -c bioconda cellrank
pip install git+https://github.com/theislab/scvelo

The pip install gave me the following error message:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pygpcca 1.0.4 requires jinja2==3.0.3, but you have jinja2 3.1.2 which is incompatible.

but scvelo 0.3.0 got installed (conda list).

In python, I could still not import scvelo:

>>> import sys
>>> import scvelo as scv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scvelo/__init__.py", line 3, in <module>
    from scanpy import read, read_loom
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scanpy/__init__.py", line 17, in <module>
    from . import plotting as pl
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scanpy/plotting/__init__.py", line 1, in <module>
    from ._anndata import (
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scanpy/plotting/_anndata.py", line 28, in <module>
    from . import _utils
  File "/network/lustre/iss02/stevanin-durr/spatax/miniconda3/envs/cellrank/lib/python3.11/site-packages/scanpy/plotting/_utils.py", line 36, in <module>
    class _AxesSubplot(Axes, axes.SubplotBase, ABC):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

I then tried correcting the jinja error with

pip install jinja2==3.0.3

which correctly changed the version to 3.0.3, but did not solve the issue in python.

So I'm unable to use scvelo in either my computer or the computing cluster, for now. If I can provide any additional info to identify the issue, please let me know :-)

Thanks a lot for your help!

Marie

Also, it happens to me. Therefore I just switched to python 3.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scv.tl.recover_dynamics fails
4 participants