huggingface / huggingface/sentence-transformers
tqdm.auto module not found when import SentenceTransformer
- Dominant language
- Python
- Stars
- 19.1k
- Forks
- 2.9k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 61
Description
Hi,
I'm running the command:
`from sentence_transformers import SentenceTransformer`
and I'm getting the following error:
```
/usr/local/lib/python3.7/site-packages/transformers/file_utils.py in
22 from botocore.exceptions import ClientError
23 import requests
---> 24 from tqdm.auto import tqdm
25 from contextlib import contextmanager
26 from . import __version__
ModuleNotFoundError: No module named 'tqdm.auto'
```
I definitely have tqdm installed (v4.42.0) and have tried importing that too before running the cell and have sentence-transformers installed too (v2.3). I've checked and this is both on the same virtualenv too. Any suggestions for how to fix it?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported `from sentence_transformers import SentenceTransformer` import and the traceback at `transformers/file_utils.py`, especially `from tqdm.auto import tqdm`. Reproduce it in the stated Python 3.7 virtualenv and compare the installed tqdm version and import path. Done means the import succeeds in the same environment without the `tqdm.auto` module error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100