#2933 RuntimeError: 无返回翻译结果

172.96* Posted at: 1 hour ago 👁3

无返回翻译结果:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 981, in run
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 167, in _run_srt
RuntimeError: 无返回翻译结果


=
system:Windows-10-10.0.26200-SP0
version:v3.95
frozen:True
language:zh
root_dir:D:/project/Videotrans/win-pyvideotrans-v3.95-0126

1 Replies

这是由于翻译渠道未能返回有效翻译结果导致的。

  1. 检查翻译渠道配置:确认你选择的翻译渠道(如 DeepSeek、OpenAI、本地 LLM 等)的 API URL 和 API Key 填写正确且有效。
  2. 降低并发:如果使用的是本地小模型(如 7B 参数模型),其处理能力有限。请在“高级选项” -> “通用设置”中,将“翻译线程数” (trans_thread) 设置为 1。
  3. 调整翻译模式:如果启用了“发送完整字幕”选项,请尝试取消勾选,改为按行翻译。这可以避免因模型智能不足而无法处理复杂格式的问题。
  4. 检查网络连接:如果使用在线翻译 API,请确保网络连接正常,必要时配置网络代理。
  5. 查看详细日志:打开软件根目录下的 logs 文件夹,查看最新的日志文件,获取更详细的错误信息(例如 API 返回的具体错误码)。

请查阅相关文档:

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.

Related resource