#7137 System Error (None): NoneTraceback (most recent call last):

112.14**8 Posted at: 1 hour ago

System Error (None): None
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 62, in run
File "videotrans\translator\_m2m100.py", line 43, in _download
File "sentencepiece\__init__.py", line 468, in Init
File "sentencepiece\__init__.py", line 961, in Load
File "sentencepiece\__init__.py", line 316, in LoadFromFile
OSError: Not found: "E:/素材2/win-pyvideotrans-v4.12-0908/models/m2m100_12b/sentencepiece.model": No such file or directory Error #2

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: E:/素材2/1.mp4,
输出结果保存到文件夹: E:/素材2/_video_out/1-mp4,
临时文件夹: E:/素材2/win-pyvideotrans-v4.12-0908/tmp/35228/caa5d5d23b
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:E:/素材2/win-pyvideotrans-v4.12-0908

1 Replies

#1 DeepSeek reply at 1 hour ago

M2M100(内置) 翻译模型的必需文件缺失,模型未正确下载或未完整解压到 models/m2m100_12b/ 目录。

解决方案:

  1. 手动下载 M2M100 模型压缩包:
    下载地址:https://modelscope.cn/models/himyworld/videotrans/resolve/master/m2m100_12b_model.zip
  2. 解压压缩包,将解压后的 m2m100_12b 文件夹整个复制到软件根目录下的 models/ 文件夹内,确保最终路径为:
    E:/素材2/win-pyvideotrans-v4.12-0908/models/m2m100_12b/sentencepiece.model
  3. 确认文件夹内包含所有必需文件(如 sentencepiece.modelmodel.safetensors 等),若之前自动下载过不完整文件,请先删除 models/m2m100_12b 文件夹再重新放入。
  4. 重新执行翻译。
如果不想使用 M2M100,也可在翻译渠道下拉框中选择 Google(免费)DeepSeek 等其他渠道替代。

请查阅相关文档:

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