#4347 AttributeError: module 'decoders' has no attribute 'DecodeStream'

218.173* Posted at: 1 hour ago 👁7

程序内部错误: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 322, 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 44, in run
File "videotrans\task\trans_create.py", line 380, in recogn
File "videotrans\recognition\__init__.py", line 293, 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 "videotrans\process\signelobj.py", line 13, in result
File "multiprocessing\pool.py", line 774, in get
AttributeError: module 'decoders' has no attribute 'DecodeStream'


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:E:/win-videotrans-v3.83

1 Replies

该错误是 Python 环境中的 tokenizers 库版本不兼容导致的,通常发生在使用旧版补丁覆盖或打包文件不完整的情况下。

请按以下顺序排查:

  1. 重新下载完整包:前往官网下载最新的 v3.99 完整软件包(不要只下载升级补丁),将其解压到一个全新、路径不含中文和特殊符号的文件夹(例如 D:\pyVideoTrans),然后双击 sp.exe 运行。
  2. 检查运行环境:确保已经安装了 微软 VC++ 运行库,重启电脑后再试。
  3. 如果仍报错:请找到软件目录下的 logs 文件夹,打开当天的 .log 文件,复制底部约 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