#2408 requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9880): Max retries exceeded with url: /tt

219.142* Posted at: 5 hours ago 👁8

连接被拒绝,请确保本地服务已启动并正在运行:
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 493, in _make_request
File "urllib3\connection.py", line 494, in request
File "http\client.py", line 1277, in endheaders
File "http\client.py", line 1037, in _send_output
File "http\client.py", line 975, in send
File "urllib3\connection.py", line 325, in connect
File "urllib3\connection.py", line 213, in _new_conn
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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 519, in increment
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9880): Max retries exceeded with url: /tts?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.+&text_lang=zh&ref_audio_path=yp.wav&prompt_text=%E6%88%91%E8%BF%9B%E7%9A%87%E5%AE%AB%E5%A6%82%E8%B8%8F%E5%B9%B3%E5%9C%B0&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

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 677, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9880): Max retries exceeded with url: /tts?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.+&text_lang=zh&ref_audio_path=yp.wav&prompt_text=%E6%88%91%E8%BF%9B%E7%9A%87%E5%AE%AB%E5%A6%82%E8%B8%8F%E5%B9%B3%E5%9C%B0&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


=
system:Windows-10-10.0.26100-SP0
version:v3.91
frozen:True
language:zh
root_dir:D:/02_Software/06_System/pyVideoTrans/win-pyvideotrans-v3.91

1 Replies

此错误表明您正在使用 GPT-SoVITS 进行语音克隆/配音,但软件无法连接到其本地服务(端口 9880)。请按以下步骤排查:

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

    • 您需要先独立启动 GPT-SoVITS 的 WebUI 服务。
    • 通常启动命令为 python api.py 或运行 webui.py,启动成功后,命令行会显示类似 Running on http://127.0.0.1:9880 的信息。
    • 在浏览器中访问 http://127.0.0.1:9880,确认服务页面可以打开。
  2. 在 pyVideoTrans 中正确配置

    • 在 pyVideoTrans 主界面,选择配音渠道为 GPT-SoVITS
    • 点击配音角色下拉框,如果服务正常,这里应该能列出您在 GPT-SoVITS 中训练或上传的模型角色。选择一个角色。
    • 重要:如果您修改了 GPT-SoVITS 的默认端口(9880),需要在 pyVideoTrans 的“设置”->“GPT-SoVITS”中,将“API地址”修改为对应的地址(如 http://127.0.0.1:你的端口)。
  3. 检查防火墙/网络设置

    • 确保 Windows 防火墙或第三方安全软件没有阻止 GPT-SoVITS 服务(python.exe 或相关进程)的网络连接。

简单来说,您需要先确保另一个软件(GPT-SoVITS)在后台运行并提供服务,pyVideoTrans 才能调用它。

请查看更多参考文档:

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions