#4108 TaskCfgVTT(is_cuda=True, uuid='96ee8cb64f', cache_folder='D:/Program Files (x86)/pyvideotrans/tmp/26700/96ee8cb64f', tar

13.114* Posted at: 2 hours ago 👁9

语音识别阶段出错 [faster-whisper(本地)] 程序内部错误:module 'decoders' has no attribute 'DecodeStream'
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "concurrent\futures\process.py", line 246, in _process_worker
File "videotrans\process\stt_fun.py", line 330, 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 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

from faster_whisper.feature_extractor import FeatureExtractor

File "", line 1027, in _find_and_load
File "", line 1006, in find_and_load
......

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 105, in run
File "videotrans\task\trans_create.py", line 360, in recogn
File "videotrans\recognition\__init__.py", line 292, 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 105, in _faster
File "videotrans\configure\_base.py", line 285, in _new_process
File "concurrent\futures\_base.py", line 458, in result
File "concurrent\futures\_base.py", line 403, in __get_result
AttributeError: module 'decoders' has no attribute 'DecodeStream'
TaskCfgVTT(is_cuda=True, uuid='96ee8cb64f', cache_folder='D:/Program Files (x86)/pyvideotrans/tmp/26700/96ee8cb64f', target_dir='C:/Users/56309/Videos/4K Video Downloader+/_video_out/Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!-mkv', source_language='英语', source_language_code='en', source_sub='C:/Users/56309/Videos/4K Video Downloader+/_video_out/Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!-mkv/en.srt', source_wav='D:/Program Files (x86)/pyvideotrans/tmp/26700/96ee8cb64f/en.wav', source_wav_output='C:/Users/56309/Videos/4K Video Downloader+/_video_out/Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!-mkv/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/56309/Videos/4K Video Downloader+/_video_out/Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!-mkv/zh-cn.srt', target_wav='D:/Program Files (x86)/pyvideotrans/tmp/26700/96ee8cb64f/target.wav', target_wav_output='C:/Users/56309/Videos/4K Video Downloader+/_video_out/Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!-mkv/zh-cn.m4a', name='C:/Users/56309/Videos/4K Video Downloader+/Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!.mkv', noextname='Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!', basename='Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!.mkv', ext='mkv', dirname='C:/Users/56309/Videos/4K Video Downloader+', shound_del_name=None, translate_type=3, tts_type=0, volume='+20%', pitch='+0Hz', voice_rate='+0%', voice_role='Yunyang(Male/CN)', voice_autorate=False, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=True, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='C:/Users/56309/Videos/4K Video Downloader+/_video_out/Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!-mkv/Vellum 201 - Ep. 00 Animating Constraints with Copernicus + Giveaway!.mp4', novoice_mp4='D:/Program Files (x86)/pyvideotrans/tmp/26700/96ee8cb64f/novoice.mp4', is_separate=False, embed_bgm=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=0, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.19044-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/Program Files (x86)/pyvideotrans

1 Replies

这是由于软件依赖的 tokenizers 库版本不兼容或损坏导致的。

  1. 重新下载完整软件包:你当前使用的软件包可能不完整或内部库文件损坏。请前往官网下载最新的 完整软件包(而非升级补丁包)。

  2. 重新解压并运行

    • 将下载的完整包解压到一个新的、路径简短且不含中文或特殊符号的目录(例如 D:\pyVideoTrans)。
    • 禁止解压到 C:\Program Files (x86) 等需要管理员权限的目录,从你的日志看,当前路径 D:/Program Files (x86)/pyvideotrans/ 可能引发权限问题。
    • 双击新目录中的 sp.exe 运行。
  3. 避免覆盖升级:如果之前是通过覆盖旧版本文件的方式升级,可能导致库文件冲突。请务必使用全新的完整包。

请查阅相关文档:

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