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 #580

Closed
1196228233 opened this issue Jun 22, 2024 · 1 comment
Closed

ImportError #580

1196228233 opened this issue Jun 22, 2024 · 1 comment
Assignees

Comments

@1196228233
Copy link

File ~/external-libraries/ppdiffusers/utils/download_utils.py:34
32 from filelock import FileLock
33 from huggingface_hub import hf_hub_download, try_to_load_from_cache
---> 34 from huggingface_hub.file_download import _chmod_and_replace, http_get
35 from huggingface_hub.utils import (
36 EntryNotFoundError,
37 RepositoryNotFoundError,
38 RevisionNotFoundError,
39 )
40 from packaging import version

ImportError: cannot import name '_chmod_and_replace' from 'huggingface_hub.file_download'(/home/aistudio/external-libraries/huggingface_hub/file_download.py)

@nemonameless
Copy link
Collaborator

已修复在develop分支中,pip安装可能还是0.24.0旧版未修复的,可在编译安装:

git clone https://github.com/PaddlePaddle/PaddleMIX
cd PaddleMIX/ppdiffusers
python setup.py install

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

3 participants