#1658 RuntimeError: Google 翻译失败

104.234* Posted at: 10 days ago 👁36

翻译字幕阶段出错:[Google(免费)] 运行时错误:Google 翻译失败:
Traceback (most recent call last):
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 421, in exc_check
tenacity.RetryError: RetryError[]

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 861, in run
File "videotrans\translator\_base.py", line 83, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_google.py", line 47, in _item_task
RuntimeError: Google 翻译失败


=
system:Windows-10-10.0.19044-SP0
version:v3.83
frozen:True
language:zh
root_dir:D:/software/win-videotrans-v3.83

1 Replies

Google翻译失败通常是由于网络连接问题或请求频率过高导致的。请按以下步骤排查:

  1. 检查网络代理设置:在软件主界面第5行找到"网络代理"选项,填入可用的代理地址(如 http://127.0.0.1:7860),Google翻译在国内需要代理才能正常访问。
  2. 降低翻译并发:在菜单栏选择工具/选项 -> 高级选项,在"字幕翻译调整"区域,将"同时翻译字幕数"改为较小的数值(如 12),并适当增加"翻译后暂停时间/秒"(如 3-5 秒)。
  3. 更换翻译渠道:如果上述方法无效,建议暂时更换为其他翻译渠道:

    • 免费选项:微软翻译、DeepLX
    • 大模型翻译:DeepSeek、Gemini等(需在翻译设置中配置API Key)
  4. 检查软件路径:确保软件路径 D:/software/win-videotrans-v3.83 不包含中文字符,虽然当前路径看起来是英文,但建议将软件移至更简单的路径如 D:/videotrans

如果问题持续存在,请提供 videotrans/logs/ 目录下的详细日志文件以便进一步分析。

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

Trending Questions