#5260 ValueError: invalid literal for int() with base 10: 'wen'

2407:d840* Posted at: 3 days ago

invalid literal for int() with base 10: 'wen':Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 858, in run
File "", line 20, in init
File "videotrans\translator\_localllm.py", line 13, in post_init
ValueError: invalid literal for int() with base 10: 'wen'


=
system:Windows-10-10.0.26200-SP0
version:v4.01
frozen:True
language:zh
root_dir:C:/Users/kjncy/Downloads/win-pyvideotrans-v4.01-0602

1 Replies

这是由于“兼容AI/本地模型”翻译渠道的配置参数错误导致的,程序尝试将字符串 'wen' 当作数字解析,但 'wen' 不是整数。

解决方案:

  1. 打开软件顶部菜单 → 翻译设置本地大模型 面板。
  2. 检查其中的 最大Token数(或类似数字输入框)是否被填写成了 wen 或其他非数字字符。
  3. 将其改为有效数字(例如 40968192),然后保存设置。
  4. 重新执行翻译任务即可。

如果问题依旧,请提供 logs/ 目录中最新的日志文件(底部约30行)以便进一步分析。

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