#8434 :Traceback (most recent call last): File

2604**97e6 Posted at: 1 hour ago

:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 117, 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\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 85, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_deepl.py", line 40, in _item_task
File "deepl\translator.py", line 446, in translate_text
File "deepl\translator.py", line 207, in _raise_for_status
deepl.exceptions.TooManyRequestsException: Too many requests, DeepL servers are currently experiencing high load, message: Too many requests. Please slow down and try again later.


=
system:Windows-10-10.0.22000-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/fanyi

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 DeepL 翻译 API 触发了请求频率限流(TooManyRequestsException),并非软件本身的 bug。DeepL 免费套餐或当前账户额度有严格的 QPS(每秒请求数)限制,当批量发送字幕时很快会超出阈值。

解决方案(按推荐顺序)

1. 降低请求频率(最直接有效)

进入 菜单 → 工具/选项 → 高级选项 → 字幕翻译调整:

  • 将 传统翻译渠道每批字幕行数 调小,例如改为 5 或 10
  • 将 翻译后暂停秒 调大,例如改为 1 或 2 秒

改动后重启任务,并务必勾选主界面 清理已生成,让已翻译部分重新走完,避免使用旧的不完整缓存。

2. 检查 DeepL 账户额度与套餐

DeepL 免费版(Free Plan)对字符数(每月50万字符)和请求频率都有硬性限制,一旦超额即持续返回 429。请登录 DeepL 官网控制台查看:

  • 本月字符配额是否已用尽;
  • 是否为 Free 套餐(免费版并发与限流条件更严苛)。

3. 更换翻译渠道(推荐长期方案)

DeepL 限流较严格且需要国际信用卡付费。若翻译质量要求不降,建议改用:

  • DeepSeek(知识库首推,物美价廉,效果优于 DeepL 且限流宽松):到 https://platform.deepseek.com/ 申请 API Key,填入 菜单 → 翻译设置 → DeepSeek,然后在翻译渠道下拉选择 DeepSeek。
  • Google(免费) / Microsoft(免费):无需配置,但需注意 Google 国内需代理,且也可能遇到 429。

4. 若必须继续使用 DeepL

  • 确认所用 API Key 是 DeepL API 专用 Key(以 :fx 结尾为免费版),而非 Pro 版 Key;
  • 免费 Key 并发极低,需将上面第 1 步的批次行数设为 1、暂停秒数设为 2-3,避免连续突发。

请查阅相关文档:

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