#7487 Subprocess Error: safetensors>=0.8.0 is required for a normal functioning of this module, but found safetensors==0.4.5.T

202.160**1 Posted at: 1 hour ago

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\only_one.py", line 70, in run
File "videotrans\task\_stage_recogn.py", line 63, in recogn
File "videotrans\recognition\__init__.py", line 121, in run
File "videotrans\recognition\_base.py", line 99, in run
File "videotrans\recognition\_moss.py", line 56, in _exec
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

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/video/[无标题视频] 1788938096176.mp4,
输出结果保存到文件夹: D:/video/_video_out/[无标题视频] 1788938096176-mp4,
临时文件夹: D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/20024/4972534b42
未选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:MOSS-Diarize(内置), , 发音语言: 越南语, 断句方式:LLM重新断句
翻译渠道:智谱AI,原始语言:越南语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:http://127.0.0.1:10808
video_duration_ms=20703


=
system:Windows-10-10.0.22631-SP0
version:v4.13
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于版本不匹配导致的依赖冲突。日志显示你的软件主程序版本为 v4.13,但 root_dir 指向的是 win-pyvideotrans-v4.07 文件夹,说明你是把新版补丁包覆盖到了旧版完整版目录上,导致 safetensors 等底层依赖库版本混乱(MOSS-Diarize 渠道需要 safetensors>=0.8.0,但当前环境是 0.4.5)。

解决方案:

  1. 重新下载完整包:前往官方下载最新 v4.13完整版压缩包(约 2.7GB),不要只下载补丁包。
  2. 干净解压:解压到一个全新的纯英文路径文件夹(例如 D:\pyVideoTrans413),不要覆盖旧版目录。
  3. 迁移配置(可选):将旧目录 videotrans/ 下的 params.jsoncfg.json 复制到新目录对应位置,以保留你的 API 密钥等设置。
  4. 重新运行:双击新目录下的 sp.exe 启动。
根本原因是补丁包与旧版完整包的 Python 依赖环境不兼容,直接覆盖无法更新 .dll/.pyd 等二进制依赖。

请查阅相关文档:

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