Skip to content

conflict with updated version of huggingface? #30

Description

@linnfire

the diffusers library tries to use a function (cached_download) from huggingface_hub that no longer exists in the installed version of huggingface_hub. (is it just me? how can i fix this)

tried to run it:
(foleycrafter) l@lin-MacBook-Air-2 FoleyCrafter % pip check
No broken requirements found.
(foleycrafter) l@lin-MacBook-Air-2 FoleyCrafter % python app.py
Traceback (most recent call last):
File "/Users/lin/Desktop/FoleyCrafter/app.py", line 15, in
from diffusers import DDIMScheduler, EulerDiscreteScheduler, PNDMScheduler
File "/Volumes/T7/opt/miniconda3/envs/foleycrafter/lib/python3.10/site-packages/diffusers/init.py", line 5, in
from .utils import (
File "/Volumes/T7/opt/miniconda3/envs/foleycrafter/lib/python3.10/site-packages/diffusers/utils/init.py", line 36, in
from .dynamic_modules_utils import get_class_from_dynamic_module
File "/Volumes/T7/opt/miniconda3/envs/foleycrafter/lib/python3.10/site-packages/diffusers/utils/dynamic_modules_utils.py", line 28, in
from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/Volumes/T7/opt/miniconda3/envs/foleycrafter/lib/python3.10/site-packages/huggingface_hub/init.py)
(foleycrafter) lin@lin-MacBook-Air-2 FoleyCrafter %
:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions