#6002 invalid literal for int() with base 10: '':Traceback (most recent call last): File

216.247* Posted at: 1 day ago

invalid literal for int() with base 10: '':Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 63, in run
File "", line 20, in init
File "videotrans\translator\_deepseek.py", line 14, in post_init
ValueError: invalid literal for int() with base 10: ''


=
system:Windows-10-10.0.22631-SP0
version:v4.05
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v4.05-0711

1 Replies

invalid literal for int() with base 10: '' 错误表明 DeepSeek 翻译渠道配置中存在一个需要填写数字的字段被留为了空字符串。最常见的原因是 max_token(最大输出 Token)或 temperature(温度值)等参数未填写或填入了非数字字符

解决步骤:

  1. 打开软件主界面,点击顶部菜单 翻译设置
  2. 找到 DeepSeek 配置面板。
  3. 检查以下字段,确保它们填写了正确的数字(不要留空):

    • max_token:通常建议填写 4096 或更大值。
    • temperature:通常填写 1.0
    • 如果存在其他整型字段(如 每批字幕行数 等),也请补全数值。
  4. 保存配置后重新执行任务。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource