#2458 requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=9880): Read timed out. (read timeout=3600)

188.253* Posted at: 1 month ago 👁69

连接超时,请检查网络连接是否稳定:
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 534, in _make_request
File "urllib3\connection.py", line 565, in getresponse
File "http\client.py", line 1374, in getresponse
File "http\client.py", line 318, in begin
File "http\client.py", line 279, in _read_status
File "socket.py", line 705, in readinto
TimeoutError: timed out

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

Traceback (most recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 474, in increment
File "urllib3\util\util.py", line 39, in reraise
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 536, in _make_request
File "urllib3\connectionpool.py", line 367, in _raise_timeout
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=9880): Read timed out. (read timeout=3600)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 284, in run
File "videotrans\tts\_base.py", line 179, in run
File "videotrans\tts\_base.py", line 208, in _local_mul_thread
File "videotrans\tts\_gptsovits.py", line 97, in _item_task
File "requests\api.py", line 73, in get
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 690, in send
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=9880): Read timed out. (read timeout=3600)


=
system:Windows-10-10.0.19045-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/SPFY

1 Replies

连接超时错误表明软件在尝试连接本地端口 127.0.0.1:9880 时失败。此端口是 GPT-SoVITS 语音克隆服务的默认端口。问题在于 GPT-SoVITS 服务未启动或未正确运行。

请按以下步骤排查:

  1. 确认 GPT-SoVITS 服务已启动

    • 您需要先独立运行 GPT-SoVITS 项目。请确保已按照其官方教程成功启动 GPT-SoVITS 的 WebUI 或 API 服务。
    • 启动后,在浏览器中访问 http://127.0.0.1:9880,确认服务页面可以正常打开。
  2. 在 pyVideoTrans 中正确配置

    • 在 pyVideoTrans 主界面,选择配音渠道为 GPT-SoVITS
    • 点击配音角色输入框右侧的 设置 按钮。
    • 在弹出的窗口中,确保 API地址 填写为 http://127.0.0.1:9880(与您启动的服务地址和端口一致)。
    • 正确选择或上传 参考音频 并设置 参考文本
  3. 检查防火墙/网络设置

    • 确保 Windows 防火墙或第三方安全软件没有阻止 localhost(127.0.0.1)的本地环回连接。
  4. 验证服务状态

    • 在开始处理视频前,可以先用一句简短的文本在 GPT-SoVITS 的 WebUI 中进行试合成,确保其功能正常。

核心要点:GPT-SoVITS 是一个需要单独部署和运行的独立项目。pyVideoTrans 仅作为客户端调用其 API。此错误与您的互联网连接无关,是本地服务未就绪导致的。

如果以上步骤无法解决,请提供您启动 GPT-SoVITS 时的命令行日志或错误信息。

请查看更多参考文档:

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