#4751 TaskCfgVTT(uuid='cd83c6ec5d', name='C:/Users/ /Desktop/RTIOW/Ray Tracing in One Weekend -- In an hour! (Part One).mp4',

2408:8226* Posted at: 1 day ago

语音识别阶段出错[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 164, 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

from faster_whisper.transcribe import BatchedInferencePipeline, WhisperModel

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

import tokenizers

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_u
......
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

DecodeStream = decoders.DecodeStream

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 54, in run

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

File "videotrans\task\trans_create.py", line 320, in recogn

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

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

File "videotrans\recognition\_whisper.py", line 35, in _exec

File "videotrans\recognition\_whisper.py", line 108, in _faster

File "videotrans\configure\base.py", line 238, 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'
TaskCfgVTT(uuid='cd83c6ec5d', name='C:/Users/Shawn/Desktop/RTIOW/Ray Tracing in One Weekend -- In an hour! (Part One).mp4', dirname='C:/Users/Shawn/Desktop/RTIOW', noextname='Ray Tracing in One Weekend -- In an hour! (Part One)', basename='Ray Tracing in One Weekend -- In an hour! (Part One).mp4', ext='mp4', target_dir='C:/Users/Shawn/Desktop/RTIOW/Ray Tracing in One Weekend -- In an hour! (Part One)-mp4', cache_folder='D:/videotrans/tmp/16516/cd83c6ec5d', is_cuda=True, source_language='英语', source_language_code='en', source_sub='C:/Users/Shawn/Desktop/RTIOW/Ray Tracing in One Weekend -- In an hour! (Part One)-mp4/en.srt', source_wav='D:/videotrans/tmp/16516/cd83c6ec5d/en.wav', source_wav_output='C:/Users/Shawn/Desktop/RTIOW/Ray Tracing in One Weekend -- In an hour! (Part One)-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/Shawn/Desktop/RTIOW/Ray Tracing in One Weekend -- In an hour! (Part One)-mp4/zh-cn.srt', target_wav='D:/videotrans/tmp/16516/cd83c6ec5d/target.wav', target_wav_output='C:/Users/Shawn/Desktop/RTIOW/Ray Tracing in One Weekend -- In an hour! (Part One)-mp4/zh-cn.m4a', translate_type=8, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='tiqu', subtitles='', targetdir_mp4='C:/Users/Shawn/Desktop/RTIOW/Ray Tracing in One Weekend -- In an hour! (Part One)-mp4/Ray Tracing in One Weekend -- In an hour! (Part One).mp4', novoice_mp4='D:/videotrans/tmp/16516/cd83c6ec5d/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/videotrans/tmp/16516/cd83c6ec5d/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.19045-SP0
version:v4.00
frozen:True
language:zh
root_dir:D:/videotrans

1 Replies

这是由于 tokenizers 库内部文件损坏或版本冲突,导致 decoders.DecodeStream 属性缺失,无法加载 faster-whisper 模型。

解决方案:

  1. 从官网下载最新完整版 v4.00 的 .7z 压缩包,解压到非系统盘且路径仅含英文字母/数字/下划线的目录(例如 D:\pyVideoTrans),不要解压到当前已损坏的目录中
  2. 若你之前使用过补丁包覆盖升级,请改用完整包重新解压,补丁包不包含完整的运行环境。
  3. 确保解压后双击 sp.exe 前,关闭所有安全软件或将该目录加入白名单,以免误删依赖文件。
  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