#4361 ImportError: cannot import name 'ir' from 'llvmlite' (unknown location)

39.149* Posted at: 2 hours ago 👁8

网络连接失败:
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 "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 74, in

from numba.core import types, errors

File "D:\videotrans\_internal\numba\core\types\__init__.py", line 11, in

from .npytypes import *

File "D:\videotrans\_internal\numba\core\types\npytypes.py", line 5, in

from llvmlite import ir

ImportError: cannot import name 'ir' from 'llvmlite' (unknown location)
"""

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
ImportError: cannot import name 'ir' from 'llvmlite' (unknown location)


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

1 Replies

这是预打包版的内置库文件损坏或缺失导致的,常见原因包括:下载不完整、解压路径含中文/空格、或杀毒软件误删文件。

解决方案:

  1. 完全删除当前 D:/videotrans 文件夹。
  2. 前往 pyvideotrans.com/downpackage 重新下载 完整软件包(非补丁包)。
  3. 将压缩包解压到 非系统盘、路径仅含英文和数字 的目录(如 D:\pyVideoTrans),切勿直接在压缩包内运行。
  4. 解压前暂时关闭杀毒软件,并将解压后的目录添加到信任区,避免误杀 llvmlitenumba 等模块。
  5. 双击 sp.exe 启动。

若问题依旧,请改用源码部署(Python 3.10 + uv)以避免打包兼容性问题,参考 Windows 源码部署指南

请查阅相关文档:

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