#4678 AttributeError: __delitem__

111.18* Posted at: 14 hours ago 👁23

__delitem__:Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 432, in pipe_asr
AttributeError: delitem

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 46, in run
File "videotrans\task\trans_create.py", line 316, in recogn
File "videotrans\recognition\__init__.py", line 188, in run
File "videotrans\recognition\_base.py", line 93, in run
File "videotrans\recognition\_huggingface.py", line 41, in _exec
File "videotrans\recognition\_huggingface.py", line 65, in _pipe_asr
File "videotrans\configure\base.py", line 240, in _new_process
videotrans.configure.excepts.VideoTransError: __delitem__:Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 432, in pipe_asr
AttributeError: delitem


=
system:Windows-10-10.0.22631-SP0
version:v4.00
frozen:True
language:zh
root_dir:E:/BaiduNetdiskDownload/win-pyvideotrans-v4.00-522

2 Replies

你的错误 __delitem__ 出现在语音识别阶段,使用 HuggingFace ASR 渠道时发生了内部属性错误,这通常表明模型数据或文件结构异常(例如模型文件损坏、版本不兼容或 HuggingFace 缓存异常)。

请尝试以下步骤:

  1. 切换到其他本地/免费 ASR 渠道(如 faster-whisperopenai-whisper),绕过此错误。如果问题消失,则确认是 HuggingFace 模块问题。
  2. 检查 models/ 目录下 HuggingFace 相关模型文件夹是否完整,如果怀疑损坏,可删除对应模型文件夹,软件会重新下载。
  3. 如果恢复无效,请提供 logs/ 文件夹中最新日志文件(复制底部约30行),以便进一步定位问题。

有点bug,暂时使用其他渠道替换

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