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

114.228* Posted at: 1 day ago 👁17

翻译字幕阶段出错:[DeepLx] 连接被拒绝,请确保本地服务已启动并正在运行:
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=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\task\job.py", line 146, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
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 677, 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] 由于目标计算机积极拒绝,无法连接。'))


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/videotrans

1 Replies

您在使用 DeepLx 翻译渠道时遇到了连接被拒绝的错误。这是因为 DeepLx 是一个需要本地部署的服务,但您的本地服务并未启动。

解决方案:

  1. 启动 DeepLx 服务: 您需要先下载并运行 DeepLx 的本地服务程序。请前往 DeepLx 的 GitHub 项目页面(例如 https://github.com/OwO-Network/DeepLX)下载适用于您操作系统的版本,并按照其说明启动服务。默认情况下,该服务会运行在 127.0.0.1:1188
  2. 在软件中切换翻译渠道: 在 DeepLx 服务成功启动并运行之前,您可以暂时切换到其他可用的翻译渠道。

    • 进入菜单栏的 翻译设置
    • 在“翻译渠道”下拉菜单中,选择一个无需本地服务的在线渠道,例如 GoogleMicrosoft

完成以上任一操作后,即可继续进行字幕翻译。

如果问题依旧,请确认 DeepLx 服务是否已正确启动并监听在 127.0.0.1:1188 端口。

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