-
Notifications
You must be signed in to change notification settings - Fork 413
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
python gradio_demo.py How to solve compatibility problems? #104
Comments
i also encounter this problem, do you know how to solve this right now? I even try to run this project on google colab, but the error message is the same. |
What a pain in the ass. I searched carefully for the problem last night and found that the 'cached_download' import command was removed from huggingface_hub 0.26.0. You can only downgrade and manually install huggingface_hub 0.25.0. The downgraded version can start normally, and it must be shut down. for the agent to function properly. |
change |
Type this, after activating conda env - pip install gradio=3.48.0 |
Tried this, still getting the same error. Any other ideas that worked for you? |
Updating to the latest
|
(iclight) D:\IC-Light>python gradio_demo.py
Traceback (most recent call last):
File "D:\IC-Light\gradio_demo.py", line 10, in
from diffusers import StableDiffusionPipeline, StableDiffusionImg2ImgPipeline
File "C:\Users\WIN10.conda\envs\iclight\lib\site-packages\diffusers_init_.py", line 5, in
from .utils import (
File "C:\Users\WIN10.conda\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\WIN10.conda\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\WIN10.conda\envs\iclight\lib\site-packages\huggingface_hub_init_.py)
(iclight) D:\IC-Light>where python
C:\Users\WIN10.conda\envs\iclight\python.exe
D:\ProgramData\anaconda3\python.exe
C:\Users\WIN10\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\WIN10\AppData\Local\Programs\Python\Python313\python.exe
C:\Users\WIN10\AppData\Local\Microsoft\WindowsApps\python.exe
The text was updated successfully, but these errors were encountered: