ImportError : REPO_ID_SEPARATOR is deprecated and private in transformers 4.20.0
See original GitHub issueIn sentence-transformers/utils.py
the line from huggingface_hub import snapshot_download import REPO_ID_SEPARATOR
- the
REPO_ID_SEPARATOR
is not used in this file - REPO_ID_SEPARATOR is not exported anymore (in latest transformer 4.20.0) and raise a
ImportError
at runtime which make all the code crash.
Solution :
Just remove the line from huggingface_hub import snapshot_download import REPO_ID_SEPARATOR
works on my side, I can make a PR but I guess it will be faster for you to respect your processes.
Thanks in advance, Have a great day.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Import Error : cannot import name 'create_repo' from ... - GitHub
Working with BERT Text Classification,i found this error import torch from tqdm.notebook import tqdm from transformers import BertTokenizer ...
Read more >No module named 'transformers' - trouble importing Python ...
I have Python 3.10.4, however when I do py -m pip3 install transformers it says No module named pip3 . – zest16.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, it is already fixed and will soon be released
I uploaded the newest version 2.2.1 to Pypi. It should now work.