-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Cannot import Tool if old version of huggingface_hub is installed #23303
Comments
Thanks for reporting! This will be addressed in #23301 |
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. |
Hi I have the exact same error from transformers import pipeline my hugginggface_hub version is Version: 0.21.3 |
Hi @Daa06, that's very odd - I'm not able to replicate this error with this hub or transformers version. Can you verify your versions running in your python session: >>> import huggingface_hub
>>> import transformers
>>> print(huggingface_hub.__version__)
>>> print(transformers.__version__) |
Okay i tried in fact the line "import transformers" give me the same error as above. But I check and it is installed |
@Daa06 I'd suggest trying to reinstall transformers in your environment: |
System Info
transformers
version: 4.29.0Who can help?
@sgugger @LysandreJik
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
Importing tool class does not raise an error.
Upgrading to hugginggface_hub version 0.14.1 fixes the issue!
The text was updated successfully, but these errors were encountered: