#6973 Subprocess Error: module 'decoders' has no attribute 'DecodeStream'Traceback (most recent call last):

111.40**7 Posted at: 2 hours ago

Subprocess Error: module 'decoders' has no attribute 'DecodeStream'
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 70, in run
File "videotrans\task\_stage_recogn.py", line 63, in recogn
File "videotrans\recognition\__init__.py", line 211, in run
File "videotrans\recognition\_base.py", line 98, in run
File "videotrans\recognition\_whisper.py", line 41, in _exec
File "videotrans\recognition\_whisper.py", line 130, in _faster
File "videotrans\configure\base.py", line 270, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: module 'decoders' has no attribute 'DecodeStream'

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/郭强/下载/迪士尼1946/米奇与魔豆Fun.and.Fancy.Free.1947.BluRay.1080p.x264-国语.mkv,
输出结果保存到文件夹: D:/郭强/FFOutput/米奇与魔豆Fun.and.Fancy.Free.1947.BluRay.1080p.x264-国语-mkv,
临时文件夹: D:/program/pyvideotrans/tmp/33280/dd77014975
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:英语,目标语言:简体中文, 未选 发送完整字幕
配音渠道:F5-TTS(内置), 角色:clone, 配音语言:简体中文, 已选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 不嵌入字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/program/pyvideotrans

1 Replies

#1 DeepSeek reply at 2 hours ago

该报错是 faster-whisper 底层依赖 ctranslate2 库的解码器模块损坏或版本不兼容导致的。

解决方法

  1. 重新下载官方完整版压缩包(约2.7GB),将文件解压到纯英文/数字路径(如 D:/pyVideoTrans),不要直接使用补丁包或在中文字符路径中运行。
  2. 如果已使用补丁包,请先下载完整包覆盖,再将补丁包覆盖到完整包目录。
  3. 若仍报错,可在语音识别渠道中暂切换为 openai-whisper(内置)Qwen-ASR(内置) 替换 faster-whisper,绕过该问题。
  4. 检查 CUDA 环境:确保 CUDA 12.8+ 和 cuDNN 9.11+ 均已正确安装并配置系统环境变量,特别是 binlib 目录。

如果以上操作后仍无法解决,请提供 logs/ 下最新的日志文件(复制底部约30行报错信息)以便进一步分析。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource