#6315 Google 翻译失败Traceback (most recent call last):

81.28* Posted at: 2 hours ago

Google 翻译失败
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 68, 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 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 83, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 54, in run
File "videotrans\translator\_base.py", line 74, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_google.py", line 36, in _item_task
videotrans.configure.excepts.TranslateSrtError: Google 翻译失败

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/缄默祸运结尾杂谈talk.mp4,
输出结果保存到文件夹: D:/ike/缄默祸运结尾杂谈talk-mp4,
临时文件夹: E:/狮子的自主练习计划/win-pyvideotrans-v4.08-0802/tmp/19980/ce53f5e567
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:LLM重新断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕(双) 目标语言在上双字幕
已选 仅输出mp4
代理地址:http://127.0.0.1:17891


=
system:Windows-10-10.0.22621-SP0
version:v4.08
frozen:True
language:zh
root_dir:E:/狮子的自主练习计划/win-pyvideotrans-v4.08-0802

1 Replies

Google 翻译失败的核心原因是网络无法访问 Google 翻译服务。虽然你已填写代理地址 http://127.0.0.1:17891,但很可能代理未生效、代理软件未运行或端口不正确。

请按以下步骤处理:

  1. 确认代理可用:打开浏览器访问 https://translate.google.com,若能正常打开则代理有效,否则请检查代理软件是否运行、端口是否为 17891(可换成其他可用端口)。
  2. 检查代理格式:需填写 http://127.0.0.1:17891socks5://127.0.0.1:17891,不要有多余空格。
  3. 直接更换为无需代理的翻译渠道:主界面翻译渠道选择 Microsoft 翻译(免费,无需代理),或 M2M100(内置)(本地离线翻译)。若对翻译质量要求高,建议使用 DeepSeek(在 菜单-翻译设置-DeepSeek 填写 API Key,收费但价格低)。
  4. 若坚持用 Google 翻译,请确认代理已填写在主界面第5行的“网络代理”文本框内,保存后重新开始任务。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource