question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError : REPO_ID_SEPARATOR is deprecated and private in transformers 4.20.0

See original GitHub issue

In sentence-transformers/utils.py the line from huggingface_hub import snapshot_download import REPO_ID_SEPARATOR

  1. the REPO_ID_SEPARATOR is not used in this file
  2. 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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
nreimerscommented, Jun 17, 2022

Thanks, it is already fixed and will soon be released

2reactions
nreimerscommented, Jun 23, 2022

I uploaded the newest version 2.2.1 to Pypi. It should now work.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found