#5237 Traceback (most recent call last):Ffle "videotrans\mainwin\main_win.py', line 279, in File"videotrans\mainwin\main win.p

115.239* Posted at: 1 day ago

Traceback (most recent call last):
Ffle "videotrans\mainwin\main_win.py', line 279, in File"videotrans\mainwin\main win.py", line 408, in open winform Ffle "videotrans\winform\siliconflow.py", line 57, in openwin File "videotrans\ui\siiconflow.py", line 123, in update_uTypeError: PySide6.QtWidgets.QLineEdit.setText' called with wrong argument types:
PySide6.QtWidgets.QLineEdit.setText(int)
Supported signatures:
PySide6.QtWidgets.QLineEdit.setText(arg_1: str | None, /

3 Replies

该错误是因为在打开硅基流动设置窗口时,代码试图将一个整数值(如端口号或最大token数)直接传给输入框(QLineEdit.setText),而该方法只接受字符串或None。常见原因包括配置文件被手动修改或旧版本Bug。

解决办法:

  1. 重置配置文件:关闭软件后,删除软件根目录 videotrans/ 下的 params.jsoncfg.jsoncodec.jsonass.json 文件(删除后启动软件会自动重建默认配置)。
  2. 更新到最新版本:确保使用 v4.02 正式版,下载完整包覆盖安装。
  3. 检查硅基流动设置:如果重置无效,请打开 菜单-翻译设置-硅基流动,手动检查 API Key、模型名等输入项是否有非文字内容,若有数字则更正为字符串。

如仍报错:

请提供软件安装目录下 logs/ 文件夹中最新日志文件(复制最后约30行报错信息),以便进一步分析。


Application started at 2026-06-16 16:24:41

[DEBUG] 返回缓存的编解码器 Windows-264: h264_nvenc
[DEBUG] 返回缓存的编解码器 Windows-265: hevc_nvenc
t='Init UI...'
t='Add bar ...'
t='Init ing ...'
t='Add MenuBar ...'
t='Set UI Text ...'
t='Set default ...'
[DEBUG] 上次缓存的角色:clone,字幕嵌入类型:0,发音语言:英语,目标语言:简体中文,目标语言代码:zh-cn,模型:SenseVoiceSmall,TTS渠道[9]
[DEBUG] NVIDIA_GPU_NUMS=1
[DEBUG] Found 1 GPUs, cost=2s
[DEBUG] process_max_gpu=1,is_multi_gpus=False
[DEBUG] Concurrent task_nums=1, process_max_cpu=0
[DEBUG] start 9 jobs
t='Bind signal...'
t='set cursor...'
t='end'
[DEBUG] app_cfg.proxy=''
[DEBUG] 无法连接 huggingface.co, 使用镜像替换: hf-mirror.com

日志显示无法连接 huggingface.co,已自动切换至国内镜像 hf-mirror.com,这是正常行为,不影响软件使用。若需手动下载模型,可在 models/ 文件夹中按教程操作。如有其他具体报错或功能问题,请详细说明。

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