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

2602:fbf1* Posted at: 2 hours ago 👁4

连接被拒绝,请确保本地服务已启动并正在运行:
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: /?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.+&text_language=zh&extra=pyvideotrans&ostype=win32&refer_wav_path=zhubo1hao.wav&prompt_text=but+just+close+enough+to+human+to+be+terrifying.+You+know+the+moment+when+you+see+it.+Something%27s+off.&prompt_language=en (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: /?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.+&text_language=zh&extra=pyvideotrans&ostype=win32&refer_wav_path=zhubo1hao.wav&prompt_text=but+just+close+enough+to+human+to+be+terrifying.+You+know+the+moment+when+you+see+it.+Something%27s+off.&prompt_language=en (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:/SHIPINRUANJIAN/win-pyvideotrans-v3.91

1 Replies

您在使用 GPT-SoVITS 进行语音克隆配音时,连接本地服务失败。错误显示无法连接到 127.0.0.1:9880,这表明 GPT-SoVITS 的本地服务没有启动或端口被占用。

请按以下步骤解决:

  1. 启动 GPT-SoVITS 服务

    • 确保您已正确安装并启动了 GPT-SoVITS 项目。通常需要运行其项目中的 api.py 或启动脚本。
    • 启动后,服务应默认运行在 http://127.0.0.1:9880。您可以在浏览器中访问 http://127.0.0.1:9880 来确认服务是否正常启动(可能会显示一个简单的页面或返回信息)。
  2. 检查端口占用

    • 如果服务已启动但连接失败,可能是端口 9880 被其他程序占用。
    • 打开命令提示符(CMD),运行命令 netstat -ano | findstr :9880 查看该端口的使用情况。
    • 如果发现被占用,可以终止占用进程,或者修改 GPT-SoVITS 的启动端口,并在 pyVideoTrans 的 GPT-SoVITS 设置中相应修改。
  3. 在 pyVideoTrans 中配置

    • 在 pyVideoTrans 主界面,进入 菜单栏 -> 设置 -> GPT-SoVITS
    • 确保 “API地址” 与您本地启动的 GPT-SoVITS 服务地址和端口完全一致(默认为 http://127.0.0.1:9880)。
    • 检查 “参考音频” 路径是否正确,音频文件需为 WAV 格式且包含清晰人声。
  4. 防火墙/安全软件

    • 检查 Windows 防火墙或第三方安全软件是否阻止了本地回环地址(127.0.0.1)或相关端口的通信,可尝试暂时关闭防火墙进行测试。

核心要点:pyVideoTrans 中的 GPT-SoVITS 功能是一个客户端,它需要连接一个独立运行的 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