#7386 语音识别阶段出错[Nemotron-3.5-asr-0.6b(内置)] Subprocess Error: safetensors>=0.8.0 is required for a normal functioning of this mo

119.118**0 Posted at: 1 hour ago

语音识别阶段出错[Nemotron-3.5-asr-0.6b(内置)] Subprocess Error: safetensors>=0.8.0 is required for a normal functioning of this module, but found safetensors==0.4.5.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
Traceback (most recent call last):

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

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

File "videotrans\task\_stage_recogn.py", line 65, in recogn

File "videotrans\recognition\__init__.py", line 233, in run

File "videotrans\recognition\_base.py", line 99, in run

File "videotrans\recognition\_huggingface.py", line 34, in _exec

File "videotrans\recognition\_huggingface.py", line 70, in _pipe_asr

File "videotrans\configure\base.py", line 264, in _new_process

videotrans.configure.excepts.VideoTransError: Subprocess Error: safetensors>=0.8.0 is required for a normal functioning of this module, but found safetensors==0.4.5.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main

self.cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: J:/1.最新下载/人妖和女/已下载/nvh-034/nvh-034______________.mp4,
输出结果保存到文件夹: J:/1.最新下载/人妖和女/已下载/nvh-034/_video_out/nvh-034______________-mp4,
临时文件夹: D:/软件/视频相关/win-pyvideotrans-v4.11/tmp/12236/eb81d0383d
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:Nemotron-3.5-asr-0.6b(内置), , 发音语言: 日语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕


=
system:Windows-10-10.0.19041-SP0
version:v4.12
frozen:True
language:zh
root_dir:D:/软件/视频相关/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是 safetensors 库版本过低(当前为 0.4.5,但 Nemotron-3.5-asr-0.6b(内置) 渠道要求 >=0.8.0)。

从日志看,你的软件版本为 v4.12,但安装目录名为 win-pyvideotrans-v4.11,推测是用 v4.12 的补丁包覆盖了 v4.11 的旧完整包,导致依赖库版本未同步更新。

解决方案(按顺序尝试):

  1. 重新下载最新版完整包 + 补丁包:前往官网下载当前 v4.12完整包(约 2.7GB)重新解压使用,不要仅用补丁包覆盖旧版目录。补丁包不包含依赖库更新,跨版本覆盖极易出现此类依赖冲突。
  2. 若坚持使用当前目录,可手动升级 safetensors:由于是预打包冻结版(frozen:True),无法直接用 pip 安装,需下载完整包解决。
  3. 临时替代方案:若不想重装,可更换语音识别渠道为 faster-whisper(内置) 等不受此依赖影响的渠道先完成任务。
建议:软件目录路径 D:/软件/视频相关/win-pyvideotrans-v4.11 含中文,虽非本次报错主因,但官方推荐使用纯英文数字路径(如 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