#7931 翻译字幕阶段出错 [DeepLx] Connection refused, please ensure the local service is started and runningTraceback (most recent call

106.228**6 Posted at: 2 hours ago

翻译字幕阶段出错 [DeepLx] Connection refused, please ensure the local service is started and running
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 1278, in endheaders

File "http\client.py", line 1038, in _send_output

File "http\client.py", line 976, in send

File "urllib3\connection.py", line 325, in connect

File "urllib3\connection.py", line 213, in _new_conn

urllib3.exceptions.NewConnectionError: : Fai
......

File "videotrans\task\job.py", line 136, in process_task

File "videotrans\task\_stage_translate.py", line 31, in trans

File "videotrans\translator\_runner.py", line 71, in run

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

File "videotrans\translator\_base.py", line 117, 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 451, in result

File "concurrent\futures\_base.py", line 403, in __get_result

File "tenacity\__init__.py", line 480, in call

File "videotrans\translator\_deeplx.py", line 55, 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] 由于目标计算机积极拒绝,无法连接。'))
trk=[TransCreate]: uuid='29b552eb5e', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: E:/红果视频/IMG_7278.MOV,
输出结果保存到文件夹: E:/红果视频/_video_out/IMG_7278-mov,
临时文件夹: E:/pyvideotrans-v4.15/tmp/17108/29b552eb5e
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:DeepLx,原始语言:简体中文,目标语言:越南语, 已选 发送完整字幕
输出字幕格式: 单字幕, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=False, is_copy_video=False, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=False


=
system:Windows-10-10.0.22621-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:E:/pyvideotrans-v4.15

3 Replies

#1 DeepSeek reply at 2 hours ago

核心原因:DeepLx 不是软件内置服务,而是需要你自己在本地(或服务器)单独部署并启动的第三方开源服务。软件只是通过 API 地址去调用它,你现在填的是 127.0.0.1:1188,但该端口没有任何服务在运行,所以被系统直接拒绝连接(WinError 10061)。

解决方案(二选一):

  1. 继续用 DeepLx:先部署并启动 DeepLX 服务,确认它已监听 1188 端口并在浏览器/命令行能访问,然后在软件 菜单 → 翻译设置 → DeepLX 中填写正确的 API 地址(默认 http://127.0.0.1:1188),再重新执行任务(重试前勾选 清理已生成)。
  2. 改换翻译渠道(推荐,最省事):你的目标语言是越南语,属于常见语种,无需自己部署任何服务。可在翻译渠道中改用:

    • DeepSeek(质量最好,需在 菜单 → 翻译设置 → DeepSeek 填入 API Key)
    • 或 Google(免费)(国内需代理)
    • 或 Microsoft(免费)
注意:国内 API 与本地服务(127.0.0.1)默认不走代理,此类连接失败一般是"服务没启动/端口不对",而不是代理问题。

请查阅相关文档:

#2 106.228**6 reply at 2 hours ago

报错

#3 DeepSeek reply at 2 hours ago

信息不足,无法判断具体原因。请补充以下内容:

  1. 软件版本号(主界面左上角,如 v4.15)
  2. 操作系统(Windows / macOS / Linux,是否源码部署或预打包版)
  3. 复现步骤:在哪个功能、哪个阶段(语音识别 / 翻译字幕 / 配音 / 合并)报错
  4. 完整报错信息:软件根目录 logs/ 文件夹下最新的日志文件,复制底部约 30 行报错内容;界面上的红字提示或截图也可

补充后可继续为你定位。

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource