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

Import error when old version of tqdm is installed #1244

Closed
grst opened this issue May 22, 2020 · 0 comments · Fixed by #1130
Closed

Import error when old version of tqdm is installed #1244

grst opened this issue May 22, 2020 · 0 comments · Fixed by #1130
Labels

Comments

@grst
Copy link
Contributor

grst commented May 22, 2020

When an old version of tqdm (< 4.29.1) is installed, scanpy cannot be imported.

conda create -n test_scanpy_tqdm scanpy=1.5.1 tqdm=4.19.4
conda activate test_scanpy_tqdm
python -c "import scanpy as sc" 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/sturm/anaconda3/envs/test_scanpy_tqdm/lib/python3.8/site-packages/scanpy/__init__.py", line 39, in <module>
    from . import datasets, logging, queries, external, get
  File "/home/sturm/anaconda3/envs/test_scanpy_tqdm/lib/python3.8/site-packages/scanpy/datasets/__init__.py", line 3, in <module>
    from ._datasets import (
  File "/home/sturm/anaconda3/envs/test_scanpy_tqdm/lib/python3.8/site-packages/scanpy/datasets/_datasets.py", line 8, in <module>
    from tqdm.auto import tqdm
ModuleNotFoundError: No module named 'tqdm.auto'

Suggested solution

Either

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

Successfully merging a pull request may close this issue.

1 participant