#3606 TaskCfgTTS(is_cuda=False, uuid='184e8594f6', cache_folder='/Users/juzhihai/videotrans/pyvideotrans/tmp/11072/184e8594f6'

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:
......
, 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='184e8594f6', cache_folder='/Users/juzhihai/videotrans/pyvideotrans/tmp/11072/184e8594f6', 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. 安装 Homebrew:如果尚未安装,请打开终端并执行以下命令安装 Homebrew(macOS 包管理器):

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

    安装完成后,根据终端提示将 Homebrew 添加到环境变量。

  2. 安装缺失的库:在终端中执行以下命令安装 zlib 库:

    brew install zlib
  3. 创建符号链接:安装后,可能需要为 libz 创建符号链接。在终端中执行以下命令:

    sudo ln -sf /opt/homebrew/opt/zlib/lib/libz.1.dylib /opt/homebrew/lib/libz.1.dylib

    此命令将 Homebrew 安装的 libz.1.dylib 链接到错误日志中系统查找的路径 (/opt/homebrew/lib/libz.1.dylib)。

  4. 重启软件:完成上述步骤后,重启 pyVideoTrans 并重试 Qwen3-TTS(本地) 配音。

如果问题依旧,请尝试使用其他配音渠道(如 Edge-TTS)作为临时替代方案。

请查阅相关文档:

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