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

54.150* Posted at: 12 hours 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 21, 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.26200-SP0
version:v4.07
frozen:True
language:zh
root_dir:E:/剪视频软件/srt转配音/win-pyvideotrans-v4.07

1 Replies

该错误是由于 DeepSeek 翻译渠道的配置参数中有一个整型字段(如 max_tokenstemperature)被填写为空字符串,导致无法转换为整数。

解决方法:

  1. 打开软件菜单 → 翻译设置DeepSeek 设置面板。
  2. 检查所有输入框(特别是 max_tokenstemperature 等数值字段),确保填写了有效的数字(例如 max_tokens: 4096temperature: 1.0),而不是空字符串。
  3. 保存设置后重新执行翻译任务。

如果仍有问题,可删除 软件目录/videotrans/params.json 文件中与 DeepSeek 相关的配置项(建议先备份),软件会在下次使用时自动生成默认配置。

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