#4601 TaskCfgSTT(is_cuda=True, uuid='ba3ce74d30', cache_folder='F:/桌面/win-videotrans-v3.84/tmp/4268/ba3ce74d30', target_dir='F

192.3* Posted at: 4 hours ago 👁11

语音识别阶段出错 [faster-whisper(本地)] 程序内部错误:module 'decoders' has no attribute 'DecodeStream'
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "multiprocessing\pool.py", line 125, in worker
File "videotrans\process\stt_fun.py", line 331, in faster_whisper
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "faster_whisper\__init__.py", line 2, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "faster_whisper\transcribe.py", line 15, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "tokenizers\__init__.py", line 94, in

from .implementations import (

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "tokenizers\implementations\__init__.py", line 1, in

from .base_tokenizer import BaseTokenizer

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "tokenizers\implementations\base_tokenizer.py", line 4, in

from tokenizers.decoders import Decoder

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "tokenizers\decoders\__init__.py", line 15, in
AttributeError: module 'decoders' has no attribute 'DecodeStream'
"""

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

Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\_speech2text.py", line 191, in recogn
File "videotrans\recognition\__init__.py", line 293, in run
File "videotrans\recognition\_base.py", line 143, in run
File "videotrans\recognition\_overall.py", line 33, in _exec
File "videotrans\recognition\_overall.py", line 106, in _faster
File "videotrans\configure\_base.py", line 285, in _new_process
File "videotrans\process\signelobj.py", line 13, in result
File "multiprocessing\pool.py", line 774, in get
AttributeError: module 'decoders' has no attribute 'DecodeStream'
TaskCfgSTT(is_cuda=True, uuid='ba3ce74d30', cache_folder='F:/桌面/win-videotrans-v3.84/tmp/4268/ba3ce74d30', target_dir='F:/桌面/win-videotrans-v3.84/output/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='F:/桌面/win-videotrans-v3.84/output/recogn/进攻1失败截取.srt', target_wav=None, target_wav_output=None, name='D:/战地剪辑/越共森林/进攻1失败截取.mp4', noextname='进攻1失败截取', basename='进攻1失败截取.mp4', ext='mp4', dirname='D:/战地剪辑/越共森林', shound_del_name=None, detect_language='de', recogn_type=0, model_name='distil-large-v3', shibie_audio='F:/桌面/win-videotrans-v3.84/tmp/4268/ba3ce74d30/进攻1失败截取-1778968776.274677.wav', remove_noise=True, enable_diariz=False, nums_diariz=0, rephrase=1, fix_punc=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:F:/桌面/win-videotrans-v3.84

1 Replies

这是由于 tokenizers 库版本冲突导致的导入错误。faster-whisper 依赖的 tokenizers 模块内部存在损坏或不兼容的组件。

解决方案

  1. 重新下载完整软件包并覆盖:请从官网 pyvideotrans.com/downpackage 重新下载最新完整版(.7z 文件),解压后覆盖原有目录。注意不要只下载补丁包,需完整包。
  2. 检查软件路径:确保软件解压路径仅包含英文和数字,且不在系统盘(如 C:\Program Files)或含中文/特殊符号的目录。
  3. 尝试切换识别渠道:如果问题依旧,请将主界面的语音识别渠道从 faster-whisper 临时切换为 openai-whisper,并选择 large-v3 模型,看能否绕过该错误。
  4. 清理缓存:在软件主界面左上角勾选 清理已生成,避免使用旧的临时文件。

若以上均无效,请提供软件安装目录下 logs/ 文件夹中最新的日志文件尾部约30行内容以便进一步分析。

Post Your Reply
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.

Related resource