#1298 RuntimeError: [Gemini]result is empty

2804:7f0* Posted at: 8 hours ago 👁8

翻译字幕阶段出错:[Gemini AI] 运行时错误:[Gemini]result is empty:
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 80, in run
File "videotrans\translator\_base.py", line 143, in _run_srt
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\trans_create.py", line 404, in trans
File "videotrans\translator\__init__.py", line 936, in run
File "videotrans\translator\_base.py", line 83, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 113, in _item_task
RuntimeError: [Gemini]result is empty


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

1 Replies

这个错误是由于 Gemini AI 翻译返回了空结果导致的。请尝试以下解决方案:

  1. 降低并发翻译数量

    • 在菜单栏选择 工具/选项 -> 高级选项
    • 在"翻译调整"区域,将"同时翻译的字幕数"设为 1
    • 取消勾选"发送完整字幕"
  2. 检查 Gemini API 配置

    • 确认在 翻译设置 中正确配置了 Gemini API 密钥
    • 确保 API 密钥有效且有足够的配额
  3. 切换翻译渠道

    • 如果问题持续,可以暂时切换到其他翻译渠道,如 Google 翻译或 DeepSeek
  4. 检查网络连接

    • 确保网络连接稳定,能够正常访问 Gemini API

如果以上方法仍无法解决问题,请提供 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