#7538 Network connection failedTraceback (most recent call last):

2409**9d33 Posted at: 2 hours ago

Network connection failed
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 534, in _make_request
File "urllib3\connection.py", line 565, in getresponse
File "http\client.py", line 1375, in getresponse
File "http\client.py", line 318, in begin
File "http\client.py", line 287, in _read_status
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

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 474, in increment
File "urllib3\util\util.py", line 38, in reraise
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 534, in _make_request
File "urllib3\connection.py", line 565, in getresponse
File "http\client.py",
......
tp\client.py", line 287, in _read_status
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 75, in run
File "videotrans\translator\_base.py", line 69, in run
File "videotrans\translator\_base.py", line 107, 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\_microsoft.py", line 39, 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 659, in send
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/baidunetdiskdownload/SE01.H265.1080P.01.mp4,
输出结果保存到文件夹: C:/baidunetdiskdownload/_video_out/SE01.H265.1080P.01-mp4,
临时文件夹: C:/baidunetdiskdownload/win-pyvideotrans-v4.13/tmp/23560/627d778b7c
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 未选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
已选 仅输出mp4
video_duration_ms=2621579


=
system:Windows-10-10.0.26200-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:C:/baidunetdiskdownload/win-pyvideotrans-v4.13

1 Replies

#1 DeepSeek reply at 2 hours ago

这是网络连接问题,翻译阶段请求被远端服务器强制断开。日志显示你在使用 Google(免费) 翻译渠道,但报错堆栈最终落在 _microsoft.py(说明 Google 翻译失败后自动回退到了微软翻译),两者均属在线免费接口,对网络环境高度敏感。

核心原因

  1. Google 翻译在国内无法直接访问,需要稳定代理,否则节点被 Google 拒绝(返回 429 或其他异常)后自动回退微软翻译;
  2. 微软免费接口当前已存在不稳定情况(远端主动关闭连接 RemoteDisconnected),频繁请求易触发限流或断连;
  3. 免费接口对网络稳定性要求高,代理不稳定、频率过高都会导致此错误。

解决方案(按推荐顺序)

  1. 改用 DeepSeek 翻译渠道(推荐):翻译质量更佳、价格极低。前往 https://platform.deepseek.com/ 登录充值,获取 API Key,填入 菜单 → 翻译设置 → DeepSeek 的密钥框中,然后在翻译渠道下拉中选择 Deepseek。注意在设置面板中取消勾选 Thinking(思考模式),否则需较大 max token 否则会被截断。
  2. 或改用本地翻译模型:翻译渠道选择 M2M100(内置),完全离线,首次使用会在 软件目录/models/m2m100_12b 自动下载模型。
  3. 若坚持用 Google 翻译:需确保代理(VPN)稳定且节点 IP 干净,可在主界面对齐行右侧的代理文本框填入如 http://127.0.0.1:10808,并降低翻译频率(高级选项 → 字幕翻译 → 传统翻译渠道每批字幕行数 设为 1,翻译后暂停秒 适当增大)。

请查阅相关文档:

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