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

117.25* Posted at: 1 day ago 👁15

连接被拒绝,请确保本地服务已启动并正在运行:
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 667, 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=05.wav&prompt_text=%E4%B8%AD%E6%96%B9%E5%AF%B9%E6%AD%A4%E5%9D%9A%E5%86%B3%E5%8F%8D%E5%AF%B9%E3%80%81%E4%B8%A5%E5%8E%89%E8%B0%B4%E8%B4%A3%EF%BC%8C%E5%B7%B2%E5%90%91%E7%BE%8E%E6%96%B9%E6%8F%90%E5%87%BA%E4%B8%A5%E6%AD%A3%E4%BA%A4%E6%B6%89%E5%92%8C%E5%BC%BA%E7%83%88%E6%8A%97%E8%AE%AE%E3%80%82&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 266, in run
File "videotrans\tts\_base.py", line 182, in run
File "videotrans\tts\_gptsovits.py", line 115, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_gptsovits.py", line 92, in _run
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 700, 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=05.wav&prompt_text=%E4%B8%AD%E6%96%B9%E5%AF%B9%E6%AD%A4%E5%9D%9A%E5%86%B3%E5%8F%8D%E5%AF%B9%E3%80%81%E4%B8%A5%E5%8E%89%E8%B0%B4%E8%B4%A3%EF%BC%8C%E5%B7%B2%E5%90%91%E7%BE%8E%E6%96%B9%E6%8F%90%E5%87%BA%E4%B8%A5%E6%AD%A3%E4%BA%A4%E6%B6%89%E5%92%8C%E5%BC%BA%E7%83%88%E6%8A%97%E8%AE%AE%E3%80%82&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


=
Windows-10-10.0.26200-SP0
version:v3.81
frozen:True
language:zh

1 Replies

这个错误表明 pyVideoTrans 无法连接到本地端口 9880 的 GPT-SoVITS 语音克隆服务。问题在于 GPT-SoVITS 服务未启动或端口配置不正确。

请按以下步骤解决:

  1. 启动 GPT-SoVITS 服务

    • 确保已正确安装并启动了 GPT-SoVITS 服务
    • 服务应运行在 http://127.0.0.1:9880
  2. 检查服务状态

    • 在浏览器中访问 http://127.0.0.1:9880 确认服务是否正常运行
    • 如果无法访问,说明 GPT-SoVITS 服务未正确启动
  3. 验证配置

    • 在 pyVideoTrans 的配音设置中,确认 GPT-SoVITS 的地址和端口配置为 127.0.0.1:9880
    • 检查是否选择了有效的参考音频文件
  4. 重启服务

    • 如果服务已启动但仍无法连接,尝试重启 GPT-SoVITS 服务
    • 确保没有其他程序占用 9880 端口

如果问题依旧,请提供 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.

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

Similar issues already exist

Trending Questions