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

222.136* Posted at: 13 hours ago 👁11

连接被拒绝,请确保本地服务已启动并正在运行:
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
......
?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=wavs%2Fzsq.wav&prompt_text=%E5%BC%84%E4%B8%AA%E9%9D%99%E9%9F%B3%E6%90%81%E9%82%A3%E8%BF%98%E5%BF%99%EF%BC%8C%E9%82%A3%E5%B0%B1%E6%98%AF%E9%97%B2%E7%9D%80%E4%B9%88%E4%BA%8B%E7%9C%8B%E7%9C%8B%E7%94%B5%E8%A7%86%E3%80%82&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


Application started at 2026-01-14 08:15:43

load subtitles area...
Set ui text...
Set style...
Set controls style...
Set menu...
Load function window...
Set default params
Bind signal...
2026-01-14 08:15:49,957 - INFO - 返回缓存的编解码器 Windows-264: libx264
2026-01-14 08:15:49,959 - INFO - 返回缓存的编解码器 Windows-265: libx265
Import torch...
end
self.proxy_str=None,self.uuid=None
2026-01-14 08:16:10,641 - INFO - GPT-SoVITS get:data={'text': '你好啊我的朋友. ', 'text_lang': 'zh', 'ref_audio_path': 'wavs/zsq.wav', 'prompt_text': '弄个静音搁那还忙,那就是闲着么事看看电视。', 'prompt_lang': 'zh', 'speed_factor': 1.0}
self.api_url='http://127.0.0.1:9880/tts'
等待 uuid_signal 线程退出
Successfully killed ffmpeg processes using taskkill


Application started at 2026-01-14 08:24:13

load subtitles area...
Set ui text...
Set style...
Set controls style...
Set menu...
Load function window...
Set default params
Bind signal...
2026-01-14 08:24:19,917 - INFO - 返回缓存的编解码器 Windows-264: libx264
2026-01-14 08:24:19,919 - INFO - 返回缓存的编解码器 Windows-265: libx265
Import torch...
end
self.proxy_str=None,self.uuid=None
2026-01-14 08:24:40,052 - INFO - GPT-SoVITS get:data={'text': '你好啊我的朋友. ', 'text_lang': 'zh', 'ref_audio_path': 'wavs/zsq.wav', 'prompt_text': '弄个静音搁那还忙,那就是闲着么事看看电视。', 'prompt_lang': 'zh', 'speed_factor': 1.0}
self.api_url='http://127.0.0.1:9880/tts'
self.proxy_str=None,self.uuid=None
2026-01-14 08:30:14,318 - INFO - GPT-SoVITS get:data={'text': '你好啊我的朋友. ', 'text_lang': 'zh', 'ref_audio_path': 'wavs/zsq.wav', 'prompt_text': '弄个静音搁那还忙,那就是闲着么事看看电视。', 'prompt_lang': 'zh', 'speed_factor': 1.0}
self.api_url='http://127.0.0.1:9880/tts'
self.proxy_str=None,self.uuid=None
2026-01-14 08:31:22,325 - INFO - GPT-SoVITS get:data={'text': '你好啊我的朋友. ', 'text_lang': 'zh', 'ref_audio_path': 'wavs/zsq.wav', 'prompt_text': '弄个静音搁那还忙,那就是闲着么事看看电视。', 'prompt_lang': 'zh', 'speed_factor': 1.0}
self.api_url='http://127.0.0.1:9880/tts'
等待 uuid_signal 线程退出
Successfully killed ffmpeg processes using taskkill


Application started at 2026-01-14 08:31:48

load subtitles area...
Set ui text...
Set style...
Set controls style...
Set menu...
Load function window...
Set default params
Bind signal...
2026-01-14 08:31:54,172 - INFO - 返回缓存的编解码器 Windows-264: libx264
2026-01-14 08:31:54,174 - INFO - 返回缓存的编解码器 Windows-265: libx265
Import torch...
end
self.proxy_str=None,self.uuid=None
2026-01-14 08:32:10,931 - INFO - GPT-SoVITS get:data={'text': '你好啊我的朋友. ', 'text_lang': 'zh', 'ref_audio_path': 'wavs/zsq.wav', 'prompt_text': '弄个静音搁那还忙,那就是闲着么事看看电视。', 'prompt_lang': 'zh', 'speed_factor': 1.0}
self.api_url='http://127.0.0.1:9880/tts'
等待 uuid_signal 线程退出
正在等待线程 TranslationSRT 结束...
Successfully killed ffmpeg processes using taskkill


Application started at 2026-01-14 08:55:01

load subtitles area...
Set ui text...
Set style...
Set controls style...
Set menu...
Load function window...
Set default params
Bind signal...
2026-01-14 08:55:08,782 - INFO - 返回缓存的编解码器 Windows-264: libx264
2026-01-14 08:55:08,784 - INFO - 返回缓存的编解码器 Windows-265: libx265
Import torch...
end
self.proxy_str=None,self.uuid=None
2026-01-14 08:55:26,241 - INFO - GPT-SoVITS get:data={'text': '你好啊我的朋友. ', 'text_lang': 'zh', 'ref_audio_path': 'wavs/zsq.wav', 'prompt_text': '弄个静音搁那还忙,那就是闲着么事看看电视。', 'prompt_lang': 'zh', 'speed_factor': 1.0}
self.api_url='http://127.0.0.1:9880/tts'


=
system:Windows-10-10.0.19045-SP0
version:v3.92
frozen:True
language:zh
root_dir:I:/win-pyvideotrans-v3.92

1 Replies

错误日志显示“连接被拒绝,无法连接到 127.0.0.1:9880”。这表明您正在使用 GPT-SoVITS 进行语音克隆/配音,但软件无法连接到本地的 GPT-SoVITS 服务。

核心原因:GPT-SoVITS 服务未启动或端口被占用。

请按以下步骤排查和解决:

  1. 启动 GPT-SoVITS 服务

    • 您需要先单独启动 GPT-SoVITS 的 WebUI 服务。通常,您需要运行一个类似 python api.py 或启动一个批处理文件(如 webui.bat)。
    • 确保服务成功启动,并在命令行或日志中看到类似 Running on local URL: http://127.0.0.1:9880 的提示。
  2. 验证服务状态

    • 打开浏览器,访问 http://127.0.0.1:9880
    • 如果页面能正常打开(通常是 GPT-SoVITS 的 Web 界面),说明服务已启动。
    • 如果无法打开,说明服务未启动成功或端口(9880)被其他程序占用。
  3. 检查 pyVideoTrans 中的配置

    • 在 pyVideoTrans 主界面,确保 配音角色 下拉框中选择了您已克隆好的 GPT-SoVITS 角色(名称通常以 clone_ 开头)。
    • 如果您修改过 GPT-SoVITS 的默认端口(9880),需要在 pyVideoTrans 的 网络代理 输入框中填写正确的地址,格式为:http://127.0.0.1:您的端口号
  4. 常见问题

    • 端口冲突:如果 9880 端口已被占用,您需要在启动 GPT-SoVITS 时指定另一个端口(例如 --port 9881),然后在 pyVideoTrans 的 网络代理 中填写 http://127.0.0.1:9881
    • 服务启动失败:请检查 GPT-SoVITS 本身的依赖是否安装正确,模型文件是否放置到位。参考其官方文档解决启动问题。

总结:您需要先确保 GPT-SoVITS 服务在后台独立运行,并且 pyVideoTrans 能通过 http://127.0.0.1:9880 访问到它。

请查看更多参考文档:

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