Skip to content

web_ui startup failed: ImportError: cannot import name 'cached_download' from 'huggingface_hub' #516

@ipc-robot

Description

@ipc-robot

Describe the bug
pydoc.ErrorDuringImport: problem in cosyvoice.flow.flow_matching - ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/home/ipc1/miniconda3/envs/cosyvoice/lib/python3.8/site-packages/huggingface_hub/init.py)

To Reproduce
Steps to reproduce the behavior:

cd CosyVoice
python3 webui.py --port 50000 --model_dir pretrained_models/CosyVoice-300M-Instruct

Expected behavior
Should launch a web interface as described in the documentation, but it does not!!!

Desktop (please complete the following information):

  • OS: [ubuntu 18.04 LTS]

I use pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com to install all requirements.

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