#8816 系统错误 (None):NoneTraceback (most recent call last):

2409**7a8 Posted at: 17 hours ago

系统错误 (None):None
Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 71, in run
File "videotrans\task\trans_create.py", line 689, in trans
File "videotrans\translator\__init__.py", line 1069, in run
File "videotrans\translator\_base.py", line 82, in run
File "videotrans\translator\_m2m100.py", line 76, 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:/软件/win-pyvideotrans-v3.99-0508(音频翻译)/models/m2m100_12b/sentencepiece.model": No such file or directory Error #2


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/软件/win-pyvideotrans-v3.99-0508(音频翻译)

1 Replies

#1 DeepSeek reply at 17 hours ago

这是 M2M100 本地翻译模型未下载完整导致的:models/m2m100_12b/ 目录内缺少 sentencepiece.model 等模型文件(多为网络下载中断或解压不完整)。

解决方案

  1. 手动下载模型压缩包:https://modelscope.cn/models/himyworld/videotrans/resolve/master/m2m100_12b_model.zip
  2. 解压后,将压缩包内的 m2m100_12b 整个文件夹复制到 软件目录/models/ 下,最终路径应为 软件目录/models/m2m100_12b/,且该文件夹内必须直接包含 sentencepiece.model、config.json、pytorch_model.bin(或分片)等文件。
  3. 若 models/m2m100_12b/ 已存在,请先删除其中残留的不完整文件,再用完整解压结果覆盖。
  4. 建议同时把软件移到纯英文短路径(如 D:/pyvideotrans)下运行,当前路径 D:/软件/win-pyvideotrans-v3.99-0508(音频翻译) 含中文、全角括号,容易引发各类路径类报错。
  5. 若不想折腾本地模型,可在翻译渠道改选 DeepSeek 或 Google(免费)(Google 国内需代理),效果优于 M2M100。

请查阅相关文档:

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