#6987 Google Translate failedTraceback (most recent call last):

88.5**2 Posted at: 2 hours ago

Google Translate failed
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 Translate failed

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Nacho/Downloads/video.mp4,
输出结果保存到文件夹: C:/Users/Nacho/Downloads/_video_out/video-mp4,
临时文件夹: C:/Users/Nacho/Desktop/DOBLADOR-VIODEOS/tmp/25720/5f392bdaed
已选 清理已存在
已启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), medium, 发音语言: English, 断句方式:默认断句
TranslateSrt:Google Translate (Free),原始语言:English,目标语言:Spanish, 已选 SendSRT
TTS Service:Edge-TTS (Free), 角色:Alvaro(Male/ES), 配音语言:Spanish, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: Soft Subtitles
已选 仅输出mp4


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:en
root_dir:C:/Users/Nacho/Desktop/DOBLADOR-VIODEOS

1 Replies

#1 DeepSeek reply at 2 hours ago

The error Google Translate failed is caused by the Google Translate API requests failing to connect or being rate-limited/blocked. Since the retry loop (tenacity.RetryError) exhausted all attempts, the root cause is likely one of the following:

  1. Network connectivity: Your machine cannot reach Google's translation servers (either Google is blocked in your region, or you have no working proxy/VPN).
  2. Misconfigured proxy: A proxy address is filled in the UI but is invalid or the proxy service isn't running.
  3. Rate limiting / request too large: You have SendSRT enabled, which sends the entire subtitle content at once. Google free API will fail on large/rapid requests.

Solutions

1. Switch to a more reliable translation channel (recommended)

  • Go to the main interface → translation channel dropdown → change from Google (Free) to one of:

    • DeepSeek (best quality, low cost — register at platform.deepseek.com, add API key via 菜单 → 翻译设置 → DeepSeek)
    • Microsoft (free, works without proxy)
    • M2M100 (内置) (fully offline, first use downloads the model)

2. Fix network / proxy for Google

  • If you are in a region where Google is blocked, configure a working http://127.0.0.1:端口号 or socks5://127.0.0.1:端口号 proxy in the main interface's proxy textbox, and make sure the proxy service is actually running.
  • If you are NOT in a blocked region, clear the proxy textbox (an invalid proxy will break all requests).
  • Verify you can open https://translate.google.com in your browser.

3. Reduce the subtitle batch size

Even if you keep Google, avoid sending large chunks at once:

  • Go to 菜单 → 工具/选项 → 高级选项 → 字幕翻译调整
  • Set 传统翻译渠道每批字幕行数 to 1
  • Disable AI翻译一次性翻译所有字幕行 (or reduce the batch to a small number)

4. Check the logs for exact error details

If the above doesn't help, open logs/ folder in the software directory and look at the latest .log file — it will show the underlying HTTP error (e.g. ConnectionError, HTTP 429, 403, ProxyError), which pinpoints the exact cause.


请查阅相关文档:

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