#4360 AttributeError: module 'llvmlite.binding' has no attribute 'get_host_cpu_name'

39.149* Posted at: 2 hours ago 👁10

程序内部错误:module 'llvmlite.binding' has no attribute 'get_host_cpu_name':
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "multiprocessing\pool.py", line 125, in worker
File "videotrans\process\tts_fun.py", line 34, in qwen3tts_fun
File "D:\videotrans\_internal\qwen_tts\__init__.py", line 21, in

from .inference.qwen3_tts_model import Qwen3TTSModel, VoiceClonePromptItem

File "D:\videotrans\_internal\qwen_tts\inference\qwen3_tts_model.py", line 29, in

from ..core.models import Qwen3TTSConfig, Qwen3TTSForConditionalGeneration, Qwen3TTSProcessor

File "D:\videotrans\_internal\qwen_tts\core\__init__.py", line 17, in

from .tokenizer_25hz.modeling_qwen3_tts_tokenizer_v1 import Qwen3TTSTokenizerV1Model

File "D:\videotrans\_internal\qwen_tts\core\tokenizer_25hz\modeling_qwen3_tts_tokenizer_v1.py", line 33, in

from .vq.speech_vq import WhisperEncoderVQ, XVectorExtractor

File "D:\videotrans\_internal\qwen_tts\core\tokenizer_25hz\vq\speech_vq.py", line 26, in

from librosa.filters import mel as librosa_mel_fn

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 "librosa\filters.py", line 52, in

from numba import jit

File "D:\videotrans\_internal\numba\__init__.py", line 73, in

from numba.core import config

File "D:\videotrans\_internal\numba\core\config.py", line 585, in

_env_reloader = _EnvReloader()

File "D:\videotrans\_internal\numba\core\config.py", line 119, in init

self.reset()

File "D:\videotrans\_internal\numba\core\config.py", line 123, in reset

self.update(force=True)

File "D:\videotrans\_internal\numba\core\config.py", line 152, in update

self.process_environ(new_environ)

File "D:\videotrans\_internal\numba\core\config.py", line 389, in process_environ

ENABLE_AVX = _readenv("NUMBA_ENABLE_AVX", int, avx_default)

File "D:\videotrans\_internal\numba\core\config.py", line 183, in _readenv

return default() if callable(default) else default

File "D:\videotrans\_internal\numba\core\config.py", line 379, in avx_default

cpu_name = CPU_NAME or ll.get_host_cpu_name()

AttributeError: module 'llvmlite.binding' has no attribute 'get_host_cpu_name'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 403, in run
File "videotrans\tts\_base.py", line 137, in run
File "videotrans\tts\_qwenttslocal.py", line 53, in _exec
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 'llvmlite.binding' has no attribute 'get_host_cpu_name'


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

1 Replies

这是由于 Qwen-TTS 本地配音渠道依赖的 numba / llvmlite 库与当前 CPU 或打包环境不兼容所致。
解决步骤(按推荐顺序尝试):

  1. 临时切换配音渠道:在主界面将“配音渠道”选为 Edge-TTS (免费),微软的免费接口,支持所有语言,无需额外配置,可立即绕过此错误。
  2. 修复打包版本:此问题可能已在最新补丁包中解决。前往 补丁地址 下载 sp.exe,覆盖到软件根目录后重试。
  3. 屏蔽 AVX 指令集检测:在系统环境变量中添加

    NUMBA_ENABLE_AVX=0

    然后重启软件。此方法可绕过 llvmlite 的 CPU 特性检测错误,但可能降低 Qwen-TTS 的推理速度。

  4. 重装完整包:若以上均无效,请重新下载 完整软件包,解压到非系统盘、纯英文路径(如 D:\pyVideoTrans),再覆盖最新补丁。

如果问题依然存在,请提供日志文件底部约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