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

9.142.**2 Posted at: 3 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 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 58, 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 翻译失败

1 Replies

#1 DeepSeek reply at 3 hours ago

这是 Google 翻译渠道无法访问导致的。Google 翻译服务在中国大陆网络环境下需要科学上网才能正常调用,若无代理则请求会被拦截或超时,多次重试后最终抛出 RetryError: TranslateSrtError

按以下步骤排查/解决:

  1. 确认网络代理:若你有代理工具,请在主界面“对齐”那一行右侧的“网络代理”文本框内填写正确的代理地址(如 http://127.0.0.1:10808),确保代理已运行且端口正确。
  2. 更换翻译渠道:不建议继续依赖 Google 翻译。推荐改用:

    • DeepSeek:翻译质量好、价格低,需在 菜单 → 翻译设置 → DeepSeek 填入 API Key,然后在翻译渠道下拉中选 Deepseek
    • M2M100(内置本地翻译):完全离线,首次使用会在线下载模型。
  3. 注意微软翻译:若软件自动回退到微软翻译,而微软旧接口已关闭,请确保升级到 v4.09 或更高版本;若已是新版请再次下载补丁包覆盖。

若以上均无法解决,请提供软件安装目录下 logs/ 文件夹中最新日志文件的末尾约 30 行报错信息,以便进一步分析。

请查阅相关文档:

Thinking...
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

Related resource