#4229 TaskCfgVTT(is_cuda=True, uuid='712fafbd8d', cache_folder='C:/Users/rafah/Downloads/win-videotrans/tmp/6356/712fafbd8d',

45.176* Posted at: 4 hours ago 👁9

ASR Error [faster-whisper (Local)] 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 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 "",
......
e "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 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='712fafbd8d', cache_folder='C:/Users/rafah/Downloads/win-videotrans/tmp/6356/712fafbd8d', target_dir='C:/Users/rafah/Rascunho/_video_out/I Used to Trust Spiritual Leaders… Until I Saw This_720p-mp4', source_language='English', source_language_code='en', source_sub='C:/Users/rafah/Rascunho/_video_out/I Used to Trust Spiritual Leaders… Until I Saw This_720p-mp4/en.srt', source_wav='C:/Users/rafah/Downloads/win-videotrans/tmp/6356/712fafbd8d/en.wav', source_wav_output='C:/Users/rafah/Rascunho/_video_out/I Used to Trust Spiritual Leaders… Until I Saw This_720p-mp4/en.m4a', target_language='Portuguese', target_language_code='pt', target_sub='C:/Users/rafah/Rascunho/_video_out/I Used to Trust Spiritual Leaders… Until I Saw This_720p-mp4/pt.srt', target_wav='C:/Users/rafah/Downloads/win-videotrans/tmp/6356/712fafbd8d/target.wav', target_wav_output='C:/Users/rafah/Rascunho/_video_out/I Used to Trust Spiritual Leaders… Until I Saw This_720p-mp4/pt.m4a', name='C:/Users/rafah/Rascunho/I Used to Trust Spiritual Leaders… Until I Saw This_720p.mp4', noextname='I Used to Trust Spiritual Leaders… Until I Saw This_720p', basename='I Used to Trust Spiritual Leaders… Until I Saw This_720p.mp4', ext='mp4', dirname='C:/Users/rafah/Rascunho', shound_del_name=None, translate_type=20, tts_type=0, volume='+1%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v2', 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/rafah/Rascunho/_video_out/I Used to Trust Spiritual Leaders… Until I Saw This_720p-mp4/I Used to Trust Spiritual Leaders… Until I Saw This_720p.mp4', novoice_mp4='C:/Users/rafah/Downloads/win-videotrans/tmp/6356/712fafbd8d/novoice.mp4', is_separate=True, embed_bgm=True, instrument='C:/Users/rafah/Downloads/win-videotrans/tmp/6356/712fafbd8d/instrument.wav', vocal='C:/Users/rafah/Downloads/win-videotrans/tmp/6356/712fafbd8d/vocal.wav', 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.22631-SP0
version:v3.99
frozen:True
language:en
root_dir:C:/Users/rafah/Downloads/win-videotrans

1 Replies

This error occurs because your tokenizers Python package (an internal dependency) is incompatible with the current faster-whisper version bundled in pyVideoTrans v3.99.

  1. Download the Offline Patch: Download the latest official patch file for v3.99 from: Download Package
  2. Overwrite Install: Extract the patch and overwrite all files into your existing pyVideoTrans installation folder (e.g., C:/Users/rafah/Downloads/win-videotrans).
  3. Restart: Run sp.exe again.

If the problem persists after the update, please re-download the full package from the same link, extract it to a new folder (do not mix with the old one), and try again.

Please consult the relevant documentation:

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