#7478 Traceback (most recent call last): File

45.207**6 Posted at: 7 hours ago

Traceback (most recent call last):
File "faster_whisper\vad.py", line 332, in init
File "pyimod02_importers.py", line 457, in exec_module
File "onnxruntime\__init__.py", line 74, in

__version__ = version

File "onnxruntime\__init__.py", line 24, in

from onnxruntime.capi._pybind_state import ExecutionOrder  # noqa: F401

File "pyimod02_importers.py", line 457, in exec_module
File "onnxruntime\capi\_pybind_state.py", line 32, in

from .onnxruntime_pybind11_state import *  # noqa

ModuleNotFoundError: No module named 'onnxruntime.capi.onnxruntime_pybind11_state'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 432, in faster_whisper
File "faster_whisper\transcribe.py", line 890, in transcribe
File "faster_whisper\vad.py", line 93, in get_speech_timestamps
File "faster_whisper\vad.py", line 326, in get_vad_model
File "faster_whisper\vad.py", line 334, in init
RuntimeError: Applying the VAD filter requires the onnxruntime package


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/视频英文翻译工具

1 Replies

#1 DeepSeek reply at 7 hours ago

核心原因是:软件运行环境中的 onnxruntime 包缺失或损坏,导致 faster-whisper 无法加载 VAD(语音活动检测)所需的 onnxruntime 模块,从而报错 ModuleNotFoundError: No module named 'onnxruntime.capi.onnxruntime_pybind11_state'

此外,你当前使用的版本为 v3.98,与知识库针对的 v4.12 存在较大跨度,建议先升级。

解决方案(按顺序排查):

  1. 优先升级到最新版本

    • 你当前版本为 v3.98,建议前往官网下载最新 完整版(约 2.7GB,非补丁包)覆盖安装:

    • 注意:不要下载仅 260MB 的补丁包,补丁包缺少完整运行依赖。
  2. 检查解压与安装路径

    • 你的路径为 D:/视频英文翻译工具,包含中文和空格。这极易引发依赖模块加载失败。
    • 请将软件解压/移动到纯英文、无空格、无特殊符号的浅层目录,例如:D:\pyVideoTrans
  3. 检查杀毒软件拦截

    • 软件基于 PyInstaller 打包,未购买商业数字签名,容易被 Windows Defender、360、火绒等误报隔离。
    • 请将软件根目录整体加入杀毒软件信任白名单,然后重新解压完整包(可能是 onnxruntime 相关 dll 被误删)。
  4. 确认是否为完整包

    • 若你使用的是补丁包,请重新下载并解压完整绿色包,确保 onnxruntime 相关文件完整存在。
  5. 若升级到 v4.12 并修正路径后仍报错

    • 说明运行库确实损坏,建议删除软件目录下所有内容,重新下载完整包并换纯净英文路径解压。

请查阅相关文档:

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