#8905 Model not exist.:Traceback (most recent call last): File

240e**e1af Posted at: 45 minutes ago

Model not exist.:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 72, in run
File "videotrans\translator\_base.py", line 142, in _run_srt
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_qwenmt.py", line 53, in _item_task
videotrans.configure.excepts.TranslateSrtError: Model not exist.


=
system:Windows-10-10.0.19045-SP0
version:v4.01
frozen:True
language:zh
root_dir:E:/short/app/win-pyvideotrans-v4.01-0602

1 Replies

#1 DeepSeek reply at 45 minutes ago

Model not exist. 是阿里百炼(DashScope)服务端返回的错误,说明软件向阿里百炼提交的模型名称在其账号下不存在或不可用,与字幕内容、视频本身无关。

排查步骤

  1. 确认所选模型名称有效
    打开 菜单 → 翻译设置 → 阿里百炼,查看「模型」中填写的名称。需填写阿里百炼控制台里已开通、且为纯文本的模型(如 qwen-mt-plus、qwen-mt-turbo 等)。

    • 不可填 qwen-asr、qwen-vl、qwen-audio 类模型(阿里限制:多模态/ASR 模型不能用于文本翻译);
    • 名称需完全一致,不能有空格、大小写错误。
  2. 核对 API Key 与账号状态

    • 确认填写的 API Key 来自阿里云百炼(国内站 dashscope),而非国际站或其他平台;
    • 登录百炼控制台确认:已开通模型服务、Key 未过期、账户有余额/免费额度未耗尽。
  3. 升级软件版本(v4.01 过旧,强建议)
    你当前是 v4.01,阿里百炼的模型名称与接口参数历经多次变更,v4.01 内置的默认模型名很可能已被官方下线/改名,这是出现该报错的高频原因。请下载最新完整包或补丁包覆盖升级(覆盖不影响 videotrans/ 下的 cfg.json、params.json 配置),并删除 _internal 文件夹内搜索到的所有 __pycache__ 后重试。
  4. 若仍报错,改用其他翻译渠道验证
    临时切换到 DeepSeek(性价比高、质量优于免费渠道)或 Google(免费) 测试,若这些渠道正常,即可确认问题仅出在百炼侧的模型配置/账号权限上。

请查阅相关文档:

若完成以上步骤后仍报同样错误,请提供 logs/ 目录下最新日志文件底部约 30 行内容,以及百炼设置界面中所选的模型名称。

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