Skip to content

ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/usr/local/lib/python3.11/dist-packages/huggingface_hub/__init__.py) #31

@amrzv

Description

@amrzv

Hello.
When running glv_colab.ipynb noteboook in colab on line module = importlib.import_module(module_name) the ImportError raised

ImportError                               Traceback (most recent call last)
[<ipython-input-8-1e927ecb8e5b>](https://localhost:8080/#) in <cell line: 0>()
      3 
      4 module_name = 'follow-your-pose-long'
----> 5 module = importlib.import_module(module_name)
      6 
      7 conf_name = 'Gen-L-Video/configs/follow-your-pose-long/group.yaml'

11 frames
[/usr/local/lib/python3.11/dist-packages/diffusers/utils/dynamic_modules_utils.py](https://localhost:8080/#) in <module>
     27 from urllib import request
     28 
---> 29 from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
     30 
     31 from .. import __version__

ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/usr/local/lib/python3.11/dist-packages/huggingface_hub/__init__.py)

Similar issue easydiffusion/easydiffusion#1851

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions