-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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 : cannot import name 'create_repo' from 'huggingface_hub' #15062
Comments
@santanumitra22 Which transformers version are you using? |
Version: 4.15.0 @frankhart2018 |
And is you huggingface_hub version 0.2.1? |
no, |
That's probably the issue, can you try upgrading to 0.2.1, its working fine for me when I am using 0.2.1 |
Same issue here, my transformers version is 4.15.0., and the huggingface_hub version is 0.2.1. However, it does not work. |
I was able to correct this by restarting the python kernel (working in Jupyter Lab) after logging in to the CLI |
Error fixed, thanks! :) |
This happened for me from a fresh install of
on an Ubuntu Deep Learning AMI. Is there a |
Faced same issue, updating to 0.2.1 helped, thanks! |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
In my case downgrading python 3.8 to 3.7 is what solved the problem. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Same issue here, my transformers version is 4.15.0., and the huggingface_hub version is 0.2.1 both updated to latest version. However, it does not work. I'm still getting the following import error
|
The latest |
Hi @LysandreJik, thanks! Yes, I tried |
Glad you got it to work! Very weird that conda refused to update your packages, let me know if it happens again! |
I experienced the same problem today:
Could maybe the python version be the problem? When using conda-forge I get the most recent version:
Also, installing subsequent dependencies not from |
For me |
Here's my two cents: I had installed
Then I ran pip install --upgrade huggingface-hub After that, |
in case this doesn't work for you upgrade pip e.g.
|
my issue happens and above is true |
what about upgrading all 3?
ok failed but now the error is:
|
upgraded correctly trom 0.12.1 to 0.13.0 still fails.
|
did:
didn't work same eroor about tokenizer. |
trying:
still fails with:
|
solved by @rsm5909 's, thanks! |
restarting Jupyter notebook has solved the problem |
omg, this tooooook too long This is what worked for me:
or get it upgraded, since this one was old for me!
OR python -m The issue is that one of your tqdm's are not same version and maybe even go into init.py and edit with VSCode or something the top code I might have missed something, because I tried so much |
My previous issue is "cannot import name 'get_full_repo_name' from 'huggingface_hub'", and I use the command "conda install chardet" to fix it. |
I'm getting this issue now - april 2024. Clean virtual env pip install transformers and huggingface_Hub |
use this conda install chardet and pip install --upgrade requests |
this works for me:) |
yeah, it works. |
it works. |
Working with BERT Text Classification,i found this error
import torch
from tqdm.notebook import tqdm
from transformers import BertTokenizer
from torch.utils.data import TensorDataset
from transformers import BertForSequenceClassification
ImportError: cannot import name 'create_repo' from 'huggingface_hub' (C:\ProgramData\Anaconda3\lib\site-packages\huggingface_hub_init_.py)
How to solve this?
The text was updated successfully, but these errors were encountered: