#3335 ValueError: Could not get Gradio config from: http://127.0.0.1:8000/

2409:896a* Posted at: 2 days ago 👁20

无效的值或参数:Could not get Gradio config from: http://127.0.0.1:8000/:
Traceback (most recent call last):
File "gradio_client\client.py", line 973, in _get_config
AttributeError: 'NoneType' object has no attribute 'group'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 17, in run
File "videotrans\tts\__init__.py", line 355, in run
File "videotrans\tts\_base.py", line 178, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 307, in _run
File "gradio_client\client.py", line 162, in init
File "gradio_client\client.py", line 975, in _get_config
ValueError: Could not get Gradio config from: http://127.0.0.1:8000/


=
system:Windows-10-10.0.19045-SP0
version:v3.97
frozen:True
language:zh
root_dir:C:/Users/MSI/Downloads/win-pyvideotrans-v3.97

1 Replies

这是由于无法连接到本地部署的 F5-TTS 服务导致的。错误表明 pyVideoTrans 尝试从 http://127.0.0.1:8000/ 获取 Gradio 配置信息但失败了。

解决方案:

  1. 确认 F5-TTS 服务已正确启动:确保您已按照官方文档部署并启动了 F5-TTS 服务。服务启动后,应能在浏览器中通过 http://127.0.0.1:8000 访问其 Web 界面。
  2. 检查服务地址和端口:在 pyVideoTrans 的“配音渠道”设置中,确认“API地址”填写正确(例如 http://127.0.0.1:8000)。端口号(如 8000)必须与 F5-TTS 服务实际监听的端口一致。
  3. 检查防火墙/安全软件:确保 Windows 防火墙或第三方安全软件没有阻止 pyVideoTrans 访问本地端口 8000
  4. 重启服务:尝试关闭 F5-TTS 服务的终端窗口,然后重新启动它。
  5. 查阅 F5-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.

Related resource