#3605 TaskCfgTTS(is_cuda=False, uuid='cca2b8bd9e', cache_folder='/Users/juzhihai/videotrans/pyvideotrans/tmp/9861/cca2b8bd9e',

61.221* Posted at: 1 day ago 👁19

配音阶段出错 [Qwen3-TTS(本地)] 系统错误 (None):None
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/llvmlite/binding/ffi.py", line 141, in getattr

return self._fntab[name]

KeyError: 'LLVMPY_AddSymbol'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/llvmlite/binding/ffi.py", line 122, in _load_lib

self._lib_handle = ctypes.CDLL(str(lib_path))

File "/Users/juzhihai/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/ctypes/__init__.py", line 374, in init

self._handle = _dlopen(self._name, mode)

OSError: dlopen(/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/llvmlite/binding/libllvmlite.dylib, 0x0006): Library not loaded: @rpath/libz.1.dylib
Referenced from:
......
Q, XVectorExtractor
File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/qwen_tts/core/tokenizer_25hz/vq/speech_vq.py", line 26, in

from librosa.filters import mel as librosa_mel_fn

File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/librosa/filters.py", line 52, in

from numba import jit

File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/numba/__init__.py", line 73, in

from numba.core import config

File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/numba/core/config.py", line 17, in

import llvmlite.binding as ll

File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/llvmlite/binding/__init__.py", line 4, in

from .dylib import *

File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/llvmlite/binding/dylib.py", line 36, in

ffi.lib.LLVMPY_AddSymbol.argtypes = [

File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/llvmlite/binding/ffi.py", line 144, in getattr

cfn = getattr(self._lib, name)

File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/llvmlite/binding/ffi.py", line 136, in _lib

self._load_lib()

File "/Users/juzhihai/videotrans/pyvideotrans/.venv/lib/python3.10/site-packages/llvmlite/binding/ffi.py", line 130, in _load_lib

raise OSError("Could not find/load shared object file") from e

OSError: Could not find/load shared object file
"""

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

Traceback (most recent call last):
File "/Users/juzhihai/videotrans/pyvideotrans/videotrans/task/job.py", line 213, in run

trk.dubbing()

File "/Users/juzhihai/videotrans/pyvideotrans/videotrans/task/_dubbing.py", line 51, in dubbing

self._tts()

File "/Users/juzhihai/videotrans/pyvideotrans/videotrans/task/_dubbing.py", line 221, in _tts

tts.run(

File "/Users/juzhihai/videotrans/pyvideotrans/videotrans/tts/__init__.py", line 346, in run

QwenttsLocal(**kwargs).run()

File "/Users/juzhihai/videotrans/pyvideotrans/videotrans/tts/_base.py", line 136, in run

self._exec()

File "/Users/juzhihai/videotrans/pyvideotrans/videotrans/tts/_qwenttslocal.py", line 53, in _exec

self._new_process(callback=qwen3tts_fun,title=title,is_cuda=self.is_cuda,kwargs=kwargs)

File "/Users/juzhihai/videotrans/pyvideotrans/videotrans/configure/_base.py", line 284, in _new_process

_rs = future.result()

File "/Users/juzhihai/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/concurrent/futures/_base.py", line 458, in result

return self.__get_result()

File "/Users/juzhihai/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result

raise self._exception

OSError: Could not find/load shared object file
TaskCfgTTS(is_cuda=False, uuid='cca2b8bd9e', cache_folder='/Users/juzhihai/videotrans/pyvideotrans/tmp/9861/cca2b8bd9e', target_dir='/Users/juzhihai/videotrans/pyvideotrans/output/tts', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code='zh-cn', target_sub='/Users/juzhihai/Desktop/2026.srt', target_wav='/Users/juzhihai/videotrans/pyvideotrans/output/tts/2026.wav', target_wav_output=None, name='/Users/juzhihai/Desktop/2026.srt', noextname='2026', basename='2026.srt', ext='srt', dirname='/Users/juzhihai/Desktop', shound_del_name=None, tts_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Vivian', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:macOS-15.0-arm64-arm-64bit
version:v3.98
frozen:False
language:zh
root_dir:/Users/juzhihai/videotrans/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

这是由于 macOS 系统缺少 Qwen3-TTS 本地模型运行所需的依赖库 libz.1.dylib 导致的。

  1. 安装 Homebrew(如果尚未安装):
    打开终端,执行以下命令:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. 通过 Homebrew 安装缺失的 zlib 库:
    在终端执行:brew install zlib
  3. 配置动态链接库路径:
    在终端执行:export DYLD_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_LIBRARY_PATH"
    (此命令为临时生效,若需永久生效,请将命令添加到 ~/.zshrc 文件中)。
  4. 重启 pyVideoTrans 软件,再次尝试使用 Qwen3-TTS(本地) 渠道。

如果问题依旧,可能是 Python 环境或 llvmlite 库安装不完整。请尝试在 pyVideoTrans 的虚拟环境中重新安装 llvmlite

  1. 在终端中,导航到 pyVideoTrans 源码目录(例如 /Users/juzhihai/videotrans/pyvideotrans)。
  2. 激活虚拟环境(如果使用 uv,通常位于 .venv 目录)。
  3. 执行:pip uninstall llvmlite -y,然后执行:pip install llvmlite

请查阅相关文档:

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