Skip to content

modelscope - ERROR - File am.mvn download incomplete, content_length: None but the file downloaded length: 11203, please download again #2365

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

Open
hzc12321 opened this issue May 7, 2025 · 0 comments

Comments

@hzc12321
Copy link

hzc12321 commented May 7, 2025

"/usr/local/envs/GPTSoVITS/bin/python" tools/asr/funasr_asr.py -i "/content/drive/MyDrive/part2/slicer_opt" -o "output/asr_opt" -s large -l zh -p float32
2025-05-07 14:55:14,857 - modelscope - INFO - PyTorch version 2.5.1+cu124 Found.
2025-05-07 14:55:14,858 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer
2025-05-07 14:55:14,895 - modelscope - INFO - Loading done! Current index file version is 1.10.0, with md5 ad7f9eab60498374e7264e15d6903585 and a total number of 946 components indexed
2025-05-07 14:55:16,791 - modelscope - INFO - Use user-specified model revision: v2.0.4
Downloading: 10.9kB [00:00, 28.1MB/s]
2025-05-07 14:55:18,103 - modelscope - ERROR - File am.mvn download incomplete, content_length: None but the file downloaded length: 11203, please download again
Download: iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch failed!: File am.mvn download incomplete, content_length: None but the file downloaded length: 11203, please download again
Traceback (most recent call last):
File "/content/GPT-SoVITS/tools/asr/funasr_asr.py", line 113, in
execute_asr(
File "/content/GPT-SoVITS/tools/asr/funasr_asr.py", line 78, in execute_asr
model = create_model(language)
File "/content/GPT-SoVITS/tools/asr/funasr_asr.py", line 57, in create_model
model = AutoModel(
File "/usr/local/envs/GPTSoVITS/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 117, in init
model, kwargs = self.build_model(**kwargs)
File "/usr/local/envs/GPTSoVITS/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 213, in build_model
model = model_class(**model_conf, vocab_size=vocab_size)
TypeError: 'NoneType' object is not callable

环境:Google Colab,使用最新的Colab脚本
触发机制:点“Open Speech Recognition”
其他信息:有另外mount Google Drive, 之前切好的slicer_opt整个文件夹存在drive里面,所以input folder指向drive

看起来是下载的问题,请问要如何解决

安装的时候有遇到一些deprecation warning 还有一个error,但能正常跑起来就没太在意:
Building wheels for collected packages: pyopenjtalk, jieba_fast, jieba, distance, antlr4-python3-runtime, jaconv, openai-whisper, oss2, aliyun-python-sdk-core, crcmod
Building wheel for pyopenjtalk (pyproject.toml) ... done
Created wheel for pyopenjtalk: filename=pyopenjtalk-0.4.1-cp310-cp310-linux_x86_64.whl size=1289776 sha256=d16a9081fab9aa063dc74cb37875a4d218b2b8f576181dd369e4dd496786d761
Stored in directory: /root/.cache/pip/wheels/34/00/40/90257df3877dffde7407dced8e2ab05b8a9053c2e659070cb7
DEPRECATION: Building 'jieba_fast' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'jieba_fast'. Discussion can be found at pypa/pip#6334
Building wheel for jieba_fast (setup.py) ... done
Created wheel for jieba_fast: filename=jieba_fast-0.53-cp310-cp310-linux_x86_64.whl size=7628837 sha256=1e90f93435ed591b0704c6d0898c3241e91034ce6023ec977ea6fbb4084ce17d
Stored in directory: /root/.cache/pip/wheels/90/bc/2e/ec85cb24f946d722725b17fc7aa1afca0c2dcfd727d540a06a
DEPRECATION: Building 'jieba' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'jieba'. Discussion can be found at pypa/pip#6334
Building wheel for jieba (setup.py) ... done
Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314509 sha256=95ac7c01e252f94da8f3ddb5e6cfeb294e6b66140604dc849612766d682f21e4
Stored in directory: /root/.cache/pip/wheels/c9/69/31/d56d90b22a1777b0b231e234b00302a55be255930f8bd92dcd
DEPRECATION: Building 'distance' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'distance'. Discussion can be found at pypa/pip#6334
Building wheel for distance (setup.py) ... done
Created wheel for distance: filename=distance-0.1.3-py3-none-any.whl size=16320 sha256=9cadee48b8d1c1e9666abd4eefc61614a117ea4ef707acb7df830215fe48b1e2
Stored in directory: /root/.cache/pip/wheels/e8/bb/de/f71bf63559ea9a921059a5405806f7ff6ed612a9231c4a9309
DEPRECATION: Building 'antlr4-python3-runtime' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'antlr4-python3-runtime'. Discussion can be found at pypa/pip#6334
Building wheel for antlr4-python3-runtime (setup.py) ... done
Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144590 sha256=f51a8752e9c745e76f647bb0615348c5ea165232b6486e66ba890e30e93e6322
Stored in directory: /root/.cache/pip/wheels/12/93/dd/1f6a127edc45659556564c5730f6d4e300888f4bca2d4c5a88
DEPRECATION: Building 'jaconv' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'jaconv'. Discussion can be found at pypa/pip#6334
Building wheel for jaconv (setup.py) ... done
Created wheel for jaconv: filename=jaconv-0.4.0-py3-none-any.whl size=18314 sha256=d2cfc3cecee086a3a82e37603a5738a9ca5490485e3a071c7a80e228b10f57da
Stored in directory: /root/.cache/pip/wheels/20/95/99/94e8d7545125181756857f6b1fc085ed4e0811ad9be7321af7
Building wheel for openai-whisper (pyproject.toml) ... done
Created wheel for openai-whisper: filename=openai_whisper-20240930-py3-none-any.whl size=803404 sha256=08c28ed576d3c4b3e665be9a0d64e4133abdbd4c89c99b5cd84b0cf3a45fdc73
Stored in directory: /root/.cache/pip/wheels/dd/4a/1f/d1c4bf3b9133c8168fe617ed979cab7b14fe381d059ffb9d83
DEPRECATION: Building 'oss2' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'oss2'. Discussion can be found at pypa/pip#6334
Building wheel for oss2 (setup.py) ... done
Created wheel for oss2: filename=oss2-2.19.1-py3-none-any.whl size=124036 sha256=4e8011fd5f619138679268ff48c3f2f9e06b037bc534fbfbe1c82d627e588aa5
Stored in directory: /root/.cache/pip/wheels/7d/1b/c6/dbf318597d350b50a94408a23a56b7349e706d61e0a06a6407
DEPRECATION: Building 'aliyun-python-sdk-core' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'aliyun-python-sdk-core'. Discussion can be found at pypa/pip#6334
Building wheel for aliyun-python-sdk-core (setup.py) ... done
Created wheel for aliyun-python-sdk-core: filename=aliyun_python_sdk_core-2.16.0-py3-none-any.whl size=535417 sha256=67a684a498cc895c7b75a4a91a92727dd2cf4279f77cef5164e26e445d0abbab
Stored in directory: /root/.cache/pip/wheels/35/11/5e/08e7cb4e03a3e83b4862edd12d1143c8d3936a3dd57a3ee46d
DEPRECATION: Building 'crcmod' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'crcmod'. Discussion can be found at pypa/pip#6334
Building wheel for crcmod (setup.py) ... done
Created wheel for crcmod: filename=crcmod-1.7-cp310-cp310-linux_x86_64.whl size=23273 sha256=eed0ce492d2e10645f80f46c0b698a2da97f303fd0df961cf3bdfbdddf4b71df
Stored in directory: /root/.cache/pip/wheels/85/4c/07/72215c529bd59d67e3dac29711d7aba1b692f543c808ba9e86
Successfully built pyopenjtalk jieba_fast jieba distance antlr4-python3-runtime jaconv openai-whisper oss2 aliyun-python-sdk-core crcmod
Installing collected packages: wordsegment, sortedcontainers, sentencepiece, pytz, python-mecab-ko-dic, pydub, opencc, ko_pron, jieba_fast, jieba, jamo, jaconv, flatbuffers, fasttext-predict, distance, crcmod, antlr4-python3-runtime, addict, xxhash, werkzeug, websockets, uvloop, urllib3, tzdata, typeguard, tqdm, tomlkit, tomli, ToJyutping, threadpoolctl, tensorboard-data-server, sniffio, simplejson, shellingham, semantic-version, safetensors, ruff, regex, PyYAML, python-multipart, python_mecab_ko, python-dotenv, pypinyin, pyparsing, pydantic-core, pycryptodome, pycparser, pyarrow, protobuf, propcache, proces, Pillow, orjson, numpy, multidict, msgpack, more_itertools, mdurl, markdown, loguru, llvmlite, lightning-utilities, lazy-loader, kiwisolver, joblib, jmespath, jinja2, importlib-resources, idna, humanfriendly, httptools, hf-xet, h11, grpcio, gast, future, frozenlist, frozendict, fonttools, ffmpy, einops, editdistance, dnspython, dill, cycler, colorlog, click, charset-normalizer, chardet, certifi, av, audioread, attrs, async-timeout, annotated-types, aiohappyeyeballs, aiofiles, absl-py, yarl, yapf, uvicorn, torch-complex, tensorboardX, tensorboard, soxr, scipy, requests, pytorch-wpe, pyopenjtalk, pydantic, pandas, omegaconf, numba, nltk, multiprocess, markdown-it-py, kaldiio, inflect, httpcore, ffmpeg-python, email-validator, einx, ctranslate2, contourpy, coloredlogs, cn2an, cffi, budoux, anyio, aiosignal, watchfiles, tiktoken, starlette, soundfile, scikit-learn, robust-downloader, rich, pooch, onnxruntime-gpu, matplotlib, hydra-core, huggingface_hub, httpx, g2pk2, g2p_en, cryptography, aiohttp, x_transformers, typer, torchmetrics, tokenizers, rotary_embedding_torch, rich-toolkit, pynndescent, openai-whisper, librosa, gradio-client, fastapi, fast_langdetect, aliyun-python-sdk-core, accelerate, umap-learn, transformers, split-lang, pytorch-lightning, gradio, fastapi-cli, datasets, aliyun-python-sdk-kms, peft, oss2, modelscope, funasr
Attempting uninstall: jinja2
Found existing installation: Jinja2 3.1.4
Uninstalling Jinja2-3.1.4:
Successfully uninstalled Jinja2-3.1.4
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 173/173 [funasr]
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
faster-whisper 1.1.1 requires onnxruntime<2,>=1.14, which is not installed.
Successfully installed Pillow-10.4.0 PyYAML-6.0.2 ToJyutping-3.2.0 absl-py-2.2.2 accelerate-1.6.0 addict-2.4.0 aiofiles-23.2.1 aiohappyeyeballs-2.6.1 aiohttp-3.11.18 aiosignal-1.3.2 aliyun-python-sdk-core-2.16.0 aliyun-python-sdk-kms-2.16.5 annotated-types-0.7.0 antlr4-python3-runtime-4.9.3 anyio-4.9.0 async-timeout-5.0.1 attrs-25.3.0 audioread-3.0.1 av-14.3.0 budoux-0.7.0 certifi-2025.4.26 cffi-1.17.1 chardet-5.2.0 charset-normalizer-3.4.2 click-8.1.8 cn2an-0.5.23 coloredlogs-15.0.1 colorlog-6.9.0 contourpy-1.3.2 crcmod-1.7 cryptography-44.0.3 ctranslate2-4.6.0 cycler-0.12.1 datasets-3.5.1 dill-0.3.8 distance-0.1.3 dnspython-2.7.0 editdistance-0.8.1 einops-0.8.1 einx-0.3.0 email-validator-2.2.0 fast_langdetect-0.3.2 fastapi-0.115.12 fastapi-cli-0.0.7 fasttext-predict-0.9.2.4 ffmpeg-python-0.2.0 ffmpy-0.5.0 flatbuffers-25.2.10 fonttools-4.57.0 frozendict-2.4.6 frozenlist-1.6.0 funasr-1.0.27 future-1.0.0 g2p_en-2.1.0 g2pk2-0.0.3 gast-0.6.0 gradio-4.44.1 gradio-client-1.3.0 grpcio-1.71.0 h11-0.16.0 hf-xet-1.1.0 httpcore-1.0.9 httptools-0.6.4 httpx-0.28.1 huggingface_hub-0.31.0 humanfriendly-10.0 hydra-core-1.3.2 idna-3.10 importlib-resources-6.5.2 inflect-7.5.0 jaconv-0.4.0 jamo-0.4.1 jieba-0.42.1 jieba_fast-0.53 jinja2-3.1.6 jmespath-0.10.0 joblib-1.5.0 kaldiio-2.18.1 kiwisolver-1.4.8 ko_pron-1.3 lazy-loader-0.4 librosa-0.10.2 lightning-utilities-0.14.3 llvmlite-0.44.0 loguru-0.7.3 markdown-3.8 markdown-it-py-3.0.0 matplotlib-3.10.1 mdurl-0.1.2 modelscope-1.10.0 more_itertools-10.7.0 msgpack-1.1.0 multidict-6.4.3 multiprocess-0.70.16 nltk-3.9.1 numba-0.61.2 numpy-1.26.4 omegaconf-2.3.0 onnxruntime-gpu-1.21.1 openai-whisper-20240930 opencc-1.1.1 orjson-3.10.18 oss2-2.19.1 pandas-2.2.3 peft-0.15.2 pooch-1.8.2 proces-0.1.7 propcache-0.3.1 protobuf-6.30.2 pyarrow-20.0.0 pycparser-2.22 pycryptodome-3.22.0 pydantic-2.10.6 pydantic-core-2.27.2 pydub-0.25.1 pynndescent-0.5.13 pyopenjtalk-0.4.1 pyparsing-3.2.3 pypinyin-0.54.0 python-dotenv-1.1.0 python-mecab-ko-dic-2.1.1.post2 python-multipart-0.0.20 python_mecab_ko-1.3.7 pytorch-lightning-2.5.1.post0 pytorch-wpe-0.0.1 pytz-2025.2 regex-2024.11.6 requests-2.32.3 rich-14.0.0 rich-toolkit-0.14.5 robust-downloader-0.0.2 rotary_embedding_torch-0.8.6 ruff-0.11.8 safetensors-0.5.3 scikit-learn-1.6.1 scipy-1.15.2 semantic-version-2.10.0 sentencepiece-0.2.0 shellingham-1.5.4 simplejson-3.20.1 sniffio-1.3.1 sortedcontainers-2.4.0 soundfile-0.13.1 soxr-0.5.0.post1 split-lang-2.1.0 starlette-0.46.2 tensorboard-2.19.0 tensorboard-data-server-0.7.2 tensorboardX-2.6.2.2 threadpoolctl-3.6.0 tiktoken-0.9.0 tokenizers-0.21.1 tomli-2.2.1 tomlkit-0.12.0 torch-complex-0.4.4 torchmetrics-1.5.0 tqdm-4.67.1 transformers-4.51.3 typeguard-4.4.2 typer-0.15.3 tzdata-2025.2 umap-learn-0.5.7 urllib3-2.4.0 uvicorn-0.34.2 uvloop-0.21.0 watchfiles-1.0.5 websockets-12.0 werkzeug-3.1.3 wordsegment-1.3.1 x_transformers-2.3.1 xxhash-3.5.0 yapf-0.43.0 yarl-1.20.0
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] /root/nltk_data...
[nltk_data] Unzipping taggers/averaged_perceptron_tagger.zip.
[nltk_data] Downloading package averaged_perceptron_tagger_eng to
[nltk_data] /root/nltk_data...
[nltk_data] Unzipping taggers/averaged_perceptron_tagger_eng.zip.
[nltk_data] Downloading package cmudict to /root/nltk_data...
[nltk_data] Unzipping corpora/cmudict.zip.
Installation completed successfully!

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

1 participant