#9057 阿里百炼API: Model not exist.,Traceback (most recent call last):

38.207**2 Posted at: 19 minutes ago

阿里百炼API: Model not exist.,
Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 117, in _run_text
File "videotrans\translator\_bailian.py", line 72, in _item_task
videotrans.configure.excepts.TranslateSrtError: Model not exist.


=
system:Windows-10-10.0.26200-SP0
version:v4.20
frozen:True
language:zh_CN
root_dir:D:/Program Files/Win-pyvideotrans

1 Replies

#1 DeepSeek reply at 19 minutes ago

核心原因:阿里百炼渠道当前使用的模型名称在百炼平台上不存在,或者与当前任务类型不匹配。字幕翻译只能使用纯文本对话模型,不能用 qwen-asr 系列(语音识别模型)或多模态(如 qwen-vl)模型。报错发生在 TestSrtTrans.py → _bailian.py,说明就是字幕翻译阶段调用模型名不合法。

解决步骤:

  1. 打开 菜单 → 翻译设置 → 阿里百炼,检查「模型」一栏:

    • 优先从下拉列表里重新选择一个纯文本模型(如 qwen-plus、qwen-turbo、qwen-max、qwen3 系列文本模型),不要手填;
    • 若必须手填,请到百炼控制台「模型广场」核对模型 ID,确保大小写、版本后缀与平台完全一致(如 qwen-plus-2025-xx-xx),并确认该账号已开通此模型、有可用额度。
  2. 确认没有把 qwen-asr 开头的模型或 qwen-vl 等多模态模型填到字幕翻译里;若在语音识别渠道,则相反,必须选 qwen-asr 系列。
  3. 保存后重新执行任务。

补充提醒:你的软件安装在 D:/Program Files/Win-pyvideotrans,路径中含空格,并且位于受系统权限限制的 Program Files 目录。这不一定是本次报错的原因,但容易引发其他报错,例如无法写入临时文件或生成结果;建议把软件整体移动到 D:/pyvideotrans 这类简短英文路径后再使用。

请查阅相关文档:

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