Skip to content

Fix import for compatibility with older huggingface_hub #9

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

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

wengh
Copy link
Collaborator

@wengh wengh commented Feb 19, 2025

Older versions such as 0.24 exported EntryNotFoundError in huggingface_hub.utils. huggingface/huggingface_hub#2444 changed the definition to huggingface_hub.errors but the export from huggingface_hub.utils is kept. We update the import to make the library compatible with older versions of huggingface_hub.

@wengh wengh requested a review from lhoestq February 19, 2025 01:45
Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch !

@lhoestq lhoestq merged commit 6d66cab into main Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants