#4564 gradio_client.exceptions.AppError: [Errno 2] No such file or directory: 'models\\openbmb__VoxCPM2\\config.json'

78.111* Posted at: 2 hours ago 👁8

[Errno 2] No such file or directory: 'models\openbmb__VoxCPM2\config.json'
Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 86, in run
File "videotrans\task\trans_create.py", line 735, in dubbing
File "videotrans\task\trans_create.py", line 1048, in _tts
File "videotrans\tts\__init__.py", line 421, in run
File "videotrans\tts\_base.py", line 193, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 337, in _run
File "videotrans\tts\_f5tts.py", line 260, in _item_task_voxcpm
File "gradio_client\client.py", line 499, in predict
File "gradio_client\client.py", line 1484, in result
File "concurrent\futures\_base.py", line 458, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "gradio_client\client.py", line 1080, in _inner
File "gradio_client\client.py", line 1200, in _predict
gradio_client.exceptions.AppError: [Errno 2] No such file or directory: 'models\openbmb__VoxCPM2\config.json'


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:en
root_dir:H:/TTS/win-pyvideotrans-v3.99-428

1 Replies

This error occurs because the VoxCPM2 TTS model's config.json file is missing from the models/openbmb__VoxCPM2/ directory. The model may not have been downloaded correctly or may have been corrupted.

Solution:

  1. Check the model folder – Navigate to your software installation directory (e.g., H:/TTS/win-pyvideotrans-v3.99-428/models/). Ensure the openbmb__VoxCPM2 folder exists and contains config.json. If the folder is empty or missing files, the download was incomplete.
  2. Re‑download the model – Delete the incomplete openbmb__VoxCPM2 folder and restart the software. pyVideoTrans will attempt to re‑download the model automatically from Hugging Face.
  3. Use a proxy if needed – If you are in a region where Hugging Face is inaccessible, configure a network proxy in the software’s main interface (Network Proxy field) or manually place the model files from a mirror.
  4. Alternative TTS model – If the issue persists, consider switching to another TTS channel (e.g., Edge‑TTS, F5‑TTS) that does not require this specific model.

Please refer to the relevant documentation:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource