#4712 TaskCfgVTT(uuid='0aca5a80c6', name='E:/RBK-076-C.mp4', dirname='E:/', noextname='RBK-076-C', basename='RBK-076-C.mp4', e

2409:8a6a* Posted at: 1 hour ago

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
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

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\only_one.py", line 47, in run
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='0aca5a80c6', name='E:/RBK-076-C.mp4', dirname='E:/', noextname='RBK-076-C', basename='RBK-076-C.mp4', ext='mp4', target_dir='E:/aaa/RBK-076-C-mp4', cache_folder='E:/win-videotrans-v3.82_20251019_125144/tmp/103804/0aca5a80c6', is_cuda=True, source_language='日语', source_language_code='ja', source_sub='E:/aaa/RBK-076-C-mp4/ja.srt', source_wav='E:/win-videotrans-v3.82_20251019_125144/tmp/103804/0aca5a80c6/ja.wav', source_wav_output='E:/aaa/RBK-076-C-mp4/ja.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='E:/aaa/RBK-076-C-mp4/zh-cn.srt', target_wav='E:/win-videotrans-v3.82_20251019_125144/tmp/103804/0aca5a80c6/target.wav', target_wav_output='E:/aaa/RBK-076-C-mp4/zh-cn.m4a', translate_type=2, 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='ja', recogn_type=0, model_name='large-v3', 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='E:/aaa/RBK-076-C-mp4/RBK-076-C.mp4', novoice_mp4='E:/win-videotrans-v3.82_20251019_125144/tmp/103804/0aca5a80c6/novoice.mp4', is_separate=False, embed_bgm=False, instrument=None, vocal='E:/win-videotrans-v3.82_20251019_125144/tmp/103804/0aca5a80c6/vocal.wav', clear_cache=True, background_music='', subtitle_type=2, only_out_mp4=False, recogn2pass=False, 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:E:/win-videotrans-v3.82_20251019_125144

1 Replies

这是由于 tokenizers 库与 faster-whisper 的版本不兼容导致 decoders 模块缺少 DecodeStream 属性,常见于依赖冲突或打包不完整。

解决方法:

  1. 重新下载完整包:前往官网下载最新的 v4.00 完整 .7z 压缩包,解压到不含中文或空格的路径(如 D:\pyVideoTrans),然后替换当前软件目录。
  2. 替换 sp.exe:如果已使用完整包,可单独下载最新 sp.exe 覆盖到根目录(下载地址)。
  3. 检查杀毒软件:临时关闭安全软件或将软件目录加入白名单,避免核心组件被误删。

若上述操作后仍报错,请提供软件安装目录下 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