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

Traceback (most recent call last): #101

Open
lior007 opened this issue Nov 2, 2024 · 3 comments
Open

Traceback (most recent call last): #101

lior007 opened this issue Nov 2, 2024 · 3 comments

Comments

@lior007
Copy link

lior007 commented Nov 2, 2024

Traceback (most recent call last):
File "D:\GITHUB\IC-Light\gradio_demo.py", line 10, in
from diffusers import StableDiffusionPipeline, StableDiffusionImg2ImgPipeline
File "C:\Users\LIOR0\miniconda3\envs\iclight\lib\site-packages\diffusers_init_.py", line 5, in
from .utils import (
File "C:\Users\LIOR0\miniconda3\envs\iclight\lib\site-packages\diffusers\utils_init_.py", line 38, in
from .dynamic_modules_utils import get_class_from_dynamic_module
File "C:\Users\LIOR0\miniconda3\envs\iclight\lib\site-packages\diffusers\utils\dynamic_modules_utils.py", line 28, in
from huggingface_hub import cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (C:\Users\LIOR0\miniconda3\envs\iclight\lib\site-packages\huggingface_hub_init_.py)

@lior007
Copy link
Author

lior007 commented Nov 2, 2024

i fix it by:
pip install --upgrade torch transformers diffusers huggingface_hub

@Ted-cuchuan
Copy link

Well thanks!!! I got the same problem with you. Your solution is really useful.

@ngocdaothanh
Copy link

pip install --upgrade torch transformers diffusers huggingface_hub

Thanks, this solution together with #102 (gradio-3.48.0 gradio-client-0.6.1) work for me.

I'm using Python 3.10.16 on Pop OS and:

commit a77f2cdc5286eacfd82af2c01dadb6dbe8082750 (HEAD -> main, origin/main, origin/HEAD)
Author: lllyasviel <[email protected]>
Date:   Wed Nov 27 17:33:18 2024 -0800

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