#9053 Traceback (most recent call last): File

124.79**0 Posted at: 5 hours ago

Traceback (most recent call last):
File "videotrans\task\_mult_video.py", line 25, in run
KeyError: 'clear_cache'


=
Windows-10-10.0.26200-SP0
version:v3.80
frozen:True
language:zh

1 Replies

#1 DeepSeek reply at 5 hours ago

这是 v3.80 旧版本中批量视频翻译任务(_mult_video.py)读取配置项 clear_cache 时发生的键缺失错误,属于旧版本代码与当前配置文件不匹配导致的 bug,该问题在后续版本中已修复。

解决方案:

  1. 前往官网下载最新 完整包(约 2.6GB+,不要只下补丁包),解压到纯英文、无空格、无特殊符号的浅层目录(如 D:\pyVideoTrans)。

    • 升级时可直接覆盖旧目录,videotrans/ 下的 cfg.json、params.json 会保留你的密钥与设置。
  2. 覆盖前建议先关闭软件,并删除旧目录 _internal 文件夹内所有 __pycache__ 文件夹,避免缓存导致的版本错乱报错。
  3. 升级后重新导入视频执行批量翻译,并勾选 清理已生成 后重试一次。

若升级到最新版本后仍出现同类 KeyError 报错,请提供软件安装目录下 logs/ 文件夹中最新日志文件底部约 30 行内容,以便进一步分析。

请查阅相关文档:

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