#7023 Subprocess Error: cannot import name 'GGUF_CONFIG_MAPPING' from 'transformers4576.integrations' (C:\pyvideotrans\_intern

2409**5ad3 Posted at: 1 hour ago

Subprocess Error: cannot import name 'GGUF_CONFIG_MAPPING' from 'transformers4576.integrations' (C:\pyvideotrans\_internal\transformers4576\integrations\__init__.py):
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'zh_male_bj.wav', 'filename': 'C:\Users\fu\AppData\Local\Temp/pyvideotrans/1-1788363456.9423423.wav', 'tts_type': 1, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 233, in run
File "videotrans\tts\_base.py", line 103, in run
File "videotrans\tts\_qwenttslocal.py", line 59, in _exec
File "videotrans\configure\base.py", line 270, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: cannot import name 'GGUF_CONFIG_MAPPING' from 'transformers4576.integrations' (C:\pyvideotrans\_internal\transformers4576\integrations\__init__.py)


=
system:Windows-10-10.0.19044-SP0
version:v4.11
frozen:True
language:zh
root_dir:C:/pyvideotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

该错误是因为预打包版内部 transformers4576 库版本不完整或存在旧文件残留,导致找不到 GGUF_CONFIG_MAPPING 符号。通常是补丁覆盖不完整或升级包与主程序不匹配引起的。

解决方案按顺序尝试:

  1. 重新下载并完整覆盖补丁包:先彻底删除当前 C:\pyvideotrans 目录,重新下载完整版压缩包(约2.7GB)解压后,再下载最新补丁包覆盖到同一目录。注意:不要只覆盖补丁包,必须基于完整包。
  2. 更换配音渠道:如暂时不需要使用 Qwen3-TTS 本地克隆,可先将主界面配音渠道切换为 Edge-TTS(免费),此渠道开箱即用,不受该库影响。
  3. 检查模型完整性:若仍使用 Qwen3-TTS,请确认 models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Basemodels/models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice 目录下文件完整(无0字节、无缺失)。
  4. 若以上无效,可提供 logs/ 目录下最新日志文件内容,以便进一步分析。

请查阅相关文档:

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