#5543 Response ended prematurelyTraceback (most recent call last): File "videotrans\translator\_base.py", line 65, in run Fi

188.253* Posted at: 1 day ago

Response ended prematurely
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 65, in run
File "videotrans\translator\_base.py", line 95, 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 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 67, in run
File "videotrans\task\trans_create.py", line 608, in trans
File "videotrans\translator\__init__.py", line 851, in run
File "videotrans\translator\_base.py", line 71, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_google.py", line 29, 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 746, in send
File "requests\models.py", line 902, in content
File "requests\models.py", line 822, in generate
requests.exceptions.ChunkedEncodingError: Response ended prematurely

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: F:/迅雷下载/1 vs 250000000 Private Island.mp4,
输出结果保存到文件夹: D:/install/win-pyvideotrans-v4.03-0626/1 vs 250000000 Private Island-mp4,
临时文件夹: D:/install/win-pyvideotrans-v4.03-0626/tmp/6288/013abb090c
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/install/win-pyvideotrans-v4.03-0626

1 Replies

这是由于你的网络环境无法直接访问 Google 翻译服务(被墙),导致翻译请求被中断。

解决办法:

  1. 配置代理:在主界面第 5 行的网络代理输入框中填写你的 VPN/HTTP 代理地址,例如 http://127.0.0.1:7890
  2. 更换翻译渠道:将翻译渠道改为 Microsoft 翻译(免费且无需代理),或使用其他国内可用的翻译渠道(如百度翻译、DeepSeek 等,需自行申请 API Key)。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource