#5680 Google 翻译失败Traceback (most recent call last): File "videotrans\translator\_base.py", line 66, in run File "videotrans\

178.128* Posted at: 2 hours ago

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

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/AI_VIDEO1/videos/Don't Watch This Video.mp4,
输出结果保存到文件夹: D:/视频翻译/Don't Watch This Video-mp4,
临时文件夹: D:/视频翻译/tmp/6940/745d941063
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: tiny, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.04
frozen:True
language:zh
root_dir:D:/视频翻译

3 Replies

Google 翻译在中国大陆无法直接访问,你需要在主界面的"网络代理"处填写有效的代理地址(例如 http://127.0.0.1:7890),或者在 菜单→翻译设置→Google翻译 中配置代理。若不使用代理,可切换到微软翻译(免费且免代理)。


Application started at 2026-07-07 08:05:56

1783382756:Loading resources...
1783382756:Loading main window...
1783382756:Initializing UI...
1783382756:SetupUI end...
1783382756:import recognition ...
1783382756:import tts ...
1783382756:import translate ...
1783382756:Get cache ...
1783382756:Set default value ...
1783382756:import voices list ...
1783382756:Set tts voice ...
[DEBUG] 上次缓存的角色:Yunyang(Male/CN),字幕嵌入类型:0,发音语言:英语,目标语言:简体中文,目标语言代码:zh-cn,模型:large-v3-turbo,TTS渠道[0]
1783382756:show main window ...
1783382756:Bind signal...
1783382756:set cursor...
1783382756:preload TTS win...
1783382759:preload STT win...
1783382759:preload translate srt win...
1783382759:end
[DEBUG] 可用 Nvidia 显卡数: 1
[DEBUG] 找到 1 个 Nvidia GPUs, 耗时: 7s
[DEBUG] 返回缓存的编解码器 Windows-264: libx264
[DEBUG] 返回缓存的编解码器 Windows-265: libx265

[DEBUG] start 9 jobs
[DEBUG] app_cfg.proxy='http://127.0.0.1:10800'
[DEBUG] 无法连接 huggingface.co, 使用镜像替换: hf-mirror.com
[DEBUG] [TransCreate]最终配置信息:self=TransCreate(uuid='c238951a1c', proxy_str='http://127.0.0.1:10800', last_down_time=0, precent=1, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_separate=False, should_hebing=True, source_srt_list=[], target_srt_list=[], video_time=0.0, is_copy_video=False, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', cost_duration=1783382934.12432, should_recogn2=False)
self.cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/youtube下载/videos/Advanced Gann Astro Trading Techniques for Swing Traders | The Hidden Side of Financial Astrology.mp4,
输出结果保存到文件夹: D:/youtube下载/videos/_video_out/Advanced Gann Astro Trading Techniques for Swing Traders | The Hidden Side of Financial Astrology-mp4,
临时文件夹: D:/视频翻译/tmp/11820/c238951a1c
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕
已选 仅输出mp4
代理地址:http://127.0.0.1:10800
[DEBUG] The file info after process:result={'video_fps': 24.0, 'r_frame_rate': 24.0, 'video_codec_name': 'av1', 'audio_codec_name': 'opus', 'width': 3840, 'height': 2160, 'time': 2349958, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[DEBUG] 返回缓存的编解码器 Windows-264: libx264
[DEBUG] 原始hw_type='libx264'
[DEBUG] 整理后hw_type='libx264'
[DEBUG] [尝试硬件编解码执行命令]
-y -fflags +genpts -i D:/youtube下载/videos/Advanced Gann Astro Trading Techniques for Swing Traders | The Hidden Side of Financial Astrology.mp4 -an -c:v libx264 novoice.mp4

[DEBUG] app_cfg.proxy='http://127.0.0.1:10800'
[DEBUG] 无法连接 huggingface.co, 使用镜像替换: hf-mirror.com
[DEBUG] 从 modelscope.cn 下载模型 model_id='large-v3-turbo'
[DEBUG] 获取到下载锁,开始从 ms 下载 mobiuslabsgmbh/faster-whisper-large-v3-turbo
Downloading Model from https://www.modelscope.cn to directory: D:\视频翻译\models\models--mobiuslabsgmbh--faster-whisper-large-v3-turbo
2026-07-07 08:10:09,950 - modelscope - INFO - Got 7 files, start to download ...

Processing 7 items: 0%| | 0.00/7.00 [00:00

根据日志分析,核心问题是:网络代理格式错误导致模型下载和翻译均失败

你填写的代理地址格式有误,被包裹在了 HTML 标签内,导致无法建立有效连接:

  • 当前格式(错误):<a target="_blank" href="http://127.0.0.1:10800">http://127.0.0.1:10800</a>
  • 正确格式应为:http://127.0.0.1:10800

请按以下两步操作:

  1. 修正代理地址:在主界面的「网络代理」输入框中,清空并重新输入 http://127.0.0.1:10800(去掉所有多余的 <a target="_blank" 等代码),然后保存。
  2. 切换翻译渠道:由于你要将英文翻译为简体中文,且 Google 翻译在国内需要代理,建议在翻译渠道处暂时切换为「微软翻译」(免费且无需代理),或者等代理地址修正为正确格式后再使用 Google 翻译。
  • 模型下载卡住的原因同样是代理格式错误导致网络不通。修复代理后重新启动软件,模型会自动继续下载。
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