Skip to content

Import error when old version of tqdm is installed #1244

Closed

Description

@grst

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions