#7267 翻译字幕阶段出错 [M2M100(内置)] System Error (None): NoneTraceback (most recent call last):

120.217**0 Posted at: 57 minutes ago

翻译字幕阶段出错 [M2M100(内置)] System Error (None): None
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 137, in process_task

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: "D:/My Softwares/翻译配音 Pyvideotran 4.12-0913/models/m2m100_12b/sentencepiece.model": No such file or directory Error #2

self.cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: E:/梦魇姐妹 1988.mp4,
输出结果保存到文件夹: E:/_video_out/梦魇姐妹 1988-mp4,
临时文件夹: D:/My Softwares/翻译配音 Pyvideotran 4.12-0913/tmp/9436/ab409a8382
已选 清理已存在
已启用CUDA加速
已选 降噪
语音识别:faster-whisper(内置), large-v3, 发音语言: 英语, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:英语,目标语言:简体中文, 未选 发送完整字幕
输出字幕格式: 单字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/My Softwares/翻译配音 Pyvideotran 4.12-0913

1 Replies

#1 DeepSeek reply at 57 minutes ago

核心原因:M2M100(内置)翻译模型文件缺失或不完整。错误明确显示 OSError: Not found: "D:/My Softwares/翻译配音 Pyvideotran 4.12-0913/models/m2m100_12b/sentencepiece.model": No such file or directory,说明该模型目录下缺少 sentencepiece.model 文件,通常是自动下载失败或下载不完整导致。

解决方案:

  1. 手动下载 M2M100 模型压缩包:

  2. 解压后,将压缩包内的 m2m100_12b 文件夹完整复制到 软件目录/models/ 下,最终路径应为:
    D:/My Softwares/翻译配音 Pyvideotran 4.12-0913/models/m2m100_12b/
    确保该文件夹内包含 sentencepiece.model 等全部文件。
  3. 若之前已存在 m2m100_12b 目录但文件不全,建议先删掉该目录再重新复制,避免残缺文件干扰。
  4. 重新执行任务。

补充建议:

  • 当前软件解压路径包含中文和空格(D:/My Softwares/翻译配音 Pyvideotran 4.12-0913),虽本次报错主因是模型缺失,但仍强烈建议将软件移至纯英文无空格路径(如 D:/pyVideoTrans),可避免后续大量潜在错误。
  • 若不使用本地 M2M100,也可在翻译渠道改用 AI 大模型(如 DeepSeek)或 Google 翻译等在线渠道,无需下载该模型。

请查阅相关文档:

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