#873 requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=1188): Max retries exceeded with url: /tr

*3c15:* Posted at: 2 hours ago 👁10

连接被拒绝,请确保本地服务已启动并正在运行: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=1188): Max retries exceeded with url: /translate (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\TestSrtTrans.py", line 19, in run

File "videotrans\translator\__init__.py", line 883, in run

File "videotrans\translator\_base.py", line 81, in run

File "videotrans\translator\_base.py", line 99, in _run_text

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\translator\_deeplx.py", line 63, in _item_task

File "requests\api.py", line 115, in post

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=1188): Max retries exceeded with url: /translate (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

=====

Windows-10-10.0.26100-SP0

version:v3.81

frozen:True

language:zh

2 Replies

本条内容由 DeepSeek 回复
这个问题是由于 DeepLX 翻译服务没有正确启动导致的。错误显示软件尝试连接 127.0.0.1:1188 但被拒绝,说明 DeepLX 服务没有运行。

解决方案:

1. 确保 DeepLX 服务已启动

  • DeepLX 是一个需要单独下载和运行的第三方工具
  • 请确认你已经下载了 DeepLX 并正在运行
  • DeepLX 运行后会在命令行显示服务端口(默认就是 1188)

2. 检查 DeepLX 配置

  • 在 pyVideoTrans 中,进入菜单 → 翻译设置
  • 找到 DeepLX 设置,确认 API 地址填写正确
  • 默认应该是 http://127.0.0.1:1188(与你错误日志中的地址一致)

3. 重新启动 DeepLX

  • 如果 DeepLX 已经运行,尝试重启它
  • 确保没有防火墙或杀毒软件阻止 DeepLX 的运行

4. 替代方案

  • 如果 DeepLX 配置困难,可以暂时切换到其他翻译渠道
  • 比如 Google 翻译、百度翻译等可用的翻译服务

根本原因:

DeepLX 是一个本地部署的白嫖 DeepL 翻译服务的工具,需要先下载并运行它,pyVideoTrans 才能通过 HTTP 连接到这个本地服务进行翻译。错误表明这个连接没有建立成功。

如果问题持续,建议检查 DeepLX 的下载和运行状态,或者考虑使用其他翻译渠道。

Admin

自行安装启动 deeplx

https://github.com/OwO-Network/DeepLX

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