Skip to content
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

ImportError: ImportError: cannot import name 'IGNORE_GIT_FOLDER_PATTERNS' from 'huggingface_hub.utils' .... #102

Open
CodingCatMountain opened this issue Aug 14, 2024 · 3 comments

Comments

@CodingCatMountain
Copy link

Awesome Work! Diffusion-policy is very inspired!

However, could you help me to fix this problem? I try to run state-based ipynb file in colab. I met such error:
ImportError: cannot import name 'IGNORE_GIT_FOLDER_PATTERNS' from 'huggingface_hub.utils' (/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/__init__.py)
Looking forward to your reply.

@mayeRobot
Copy link

Hello, I tried downgrade the version of hugglingface_hub to 0.22.1 and it works. You can try to execute the following commands.
pip uninstall -y huggingface_hub
pip install huggingface_hub==0.22.1
Good luck to you!

@Luca-Wiehe
Copy link

This does not work for me. There seems to be a conflict with the transformer package:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
transformers 4.44.2 requires huggingface-hub<1.0,>=0.23.2, but you have huggingface-hub 0.22.1 which is incompatible.

@kevinqyh0827
Copy link

Hi, I guess this is because "IGNORE_GIT_FOLDER_PATTERNS" is a constant variable in hugginface utils repo and it has been removed/ renamed by the latest version. I found there is a "DEFAULT_IGNORE_PATTERNS" varaible from here: ("https://github.com/huggingface/huggingface_hub/blob/0c98fbd5840ce9dc2ac59745afe079babeb9f353/src/huggingface_hub/utils/_paths.py#L24"). It seems this variable has similar meaning of the previous one. Replace the old "IGNORE_GIT_FOLDER_PATTERNS" with this new one works for me now.

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

No branches or pull requests

4 participants