#5089 TaskCfgVTT(uuid='c2e1d4dbd6', name='//songnhien.ddns.net/18TB/0Tutorials/Accounting/0Accounting 101 Business Cashflow Fo

171.227* Posted at: 22 hours ago

ASR Error[faster-whisper (Local)] 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 163, 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_unl
......
enizer 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 35, in run

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

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

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

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

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

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

File "videotrans\configure\base.py", line 250, 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='c2e1d4dbd6', name='//songnhien.ddns.net/18TB/0Tutorials/Accounting/0Accounting 101 Business Cashflow Forecasting in 60mins/04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow.mp4', dirname='//songnhien.ddns.net/18TB/0Tutorials/Accounting/0Accounting 101 Business Cashflow Forecasting in 60mins', noextname='04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow', basename='04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow.mp4', ext='mp4', target_dir='04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow-mp4', cache_folder='D:/0Portables/PortableApps/win-pyvideotrans/tmp/14740/c2e1d4dbd6', is_cuda=False, source_language='English', source_language_code='en', source_sub='04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow-mp4/en.srt', source_wav='D:/0Portables/PortableApps/win-pyvideotrans/tmp/14740/c2e1d4dbd6/en.wav', source_wav_output='04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow-mp4/en.m4a', target_language='Vietnamese', target_language_code='vi', target_sub='04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow-mp4/vi.srt', target_wav='D:/0Portables/PortableApps/win-pyvideotrans/tmp/14740/c2e1d4dbd6/target.wav', target_wav_output='04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow-mp4/vi.m4a', translate_type=1, tts_type=0, volume='+0%', 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='tiny', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow-mp4/04.8. Part 1 Of Demo Including Your Projected Expenses On Your Cashflow.mp4', novoice_mp4='D:/0Portables/PortableApps/win-pyvideotrans/tmp/14740/c2e1d4dbd6/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/0Portables/PortableApps/win-pyvideotrans/tmp/14740/c2e1d4dbd6/vocal.wav', clear_cache=False, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26200-SP0
version:v4.01
frozen:True
language:en
root_dir:D:/0Portables/PortableApps/win-pyvideotrans

1 Replies

The error module 'decoders' has no attribute 'DecodeStream' is caused by an incompatibility between the tokenizers library and the faster-whisper dependency within your packaged pyVideoTrans v4.01 build. This is a known packaging issue.

Solution:

  1. Update to the latest complete package (v4.02). Download the full .7z file from the official site, delete your current win-pyvideotrans folder entirely, and extract the new package to a simple path (e.g. D:\pyVideoTrans). Do not apply any upgrade patch – use the full package.
  2. If the error persists, switch the ASR engine in the software from faster-whisper (Local) to openai-whisper (Local) or Qwen-ASR (Local) as a workaround.
  3. For source deployment (non-packaged) users: Upgrade the tokenizers library via uv sync --all-extras to ensure compatibility.

Additional note: Your video path contains a network drive (//songnhien.ddns.net) which may cause secondary issues with long file names. Consider copying the video to a local short path (e.g. D:\temp\video.mp4) to avoid unrelated errors.

Please refer to 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. Dondate: ko-fi.com/jianchang512

Related resource