#5470 videotrans.configure.excepts.DubbingSrtError: The upstream Gradio app has raised an exception but has not enabled verbos

103.151* Posted at: 1 hour ago

The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch().:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 184, in run
File "videotrans\tts\_base.py", line 134, in run
videotrans.configure.excepts.DubbingSrtError: The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch().


=
system:Windows-10-10.0.26200-SP0
version:v4.01
frozen:True
language:zh
root_dir:D:/fangyi/win-pyvideotrans-v4.01-0602

1 Replies

这个错误是因为你使用的本地 TTS 服务(如 F5-TTS、CosyVoice、ChatTTS 等基于 Gradio 的程序)在启动时没有开启详细错误报告,导致 pyVideoTrans 无法获取准确的失败原因。

解决方法:

  1. 开启 Gradio 错误报告:找到你部署的本地 TTS 服务启动脚本(通常是 app.pywebui.py 或类似文件),在 launch() 函数中添加参数 show_error=True,例如:

    demo.launch(server_name="0.0.0.0", server_port=7860, show_error=True)

    保存后重启该服务。

  2. 检查服务是否正常运行:确认该 Gradio 服务已启动,并且 API 地址正确(默认通常是 http://127.0.0.1:7860)。在浏览器中访问该地址,看是否能正常打开界面。
  3. 查看服务端日志:在 Gradio 服务启动的控制台窗口中查看具体错误信息(通常能显示真正的错误原因,如模型加载失败、依赖缺失等)。
  4. 临时更换配音渠道:如果不需要声音克隆,建议先切换到免费且开箱可用的 Edge-TTS 渠道(无需部署),以确认问题是否出在本地服务本身。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist