#3607 TaskCfgTTS(is_cuda=False, uuid='9b3c110592', cache_folder='/Users/juzhihai/videotrans/pyvideotrans/tmp/11374/9b3c110592'

61.221* Posted at: 1 day ago 👁23

配音阶段出错 [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/libc++.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='9b3c110592', cache_folder='/Users/juzhihai/videotrans/pyvideotrans/tmp/11374/9b3c110592', 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 ]

3 Replies

这是由于 macOS 系统上 Qwen3-TTS(本地) 渠道依赖的 llvmlite 库缺少必要的动态链接库 libc++.1.dylib 导致的。

  1. 临时解决方案(推荐):更换配音渠道。Qwen3-TTS(本地) 在 macOS 上依赖复杂,容易出错。建议改用其他配音渠道,例如:

    • 免费渠道Edge-TTS(免费)
    • 本地渠道:如果必须使用本地模型,可尝试部署并配置 F5-TTSGPT-SoVITSCosyVoice 等外部服务,然后在软件中配置其 API 地址使用。
  2. 尝试修复环境(不保证成功)

    • 确保已通过 Homebrew 安装了完整的开发环境:打开终端,执行 brew install llvm libc++
    • 重新创建 Python 虚拟环境:在 pyVideoTrans 源码目录下,删除现有的 .venv 文件夹,然后重新执行 uv sync 安装依赖。
    • 如果问题依旧,说明 Qwen3-TTS 的依赖在您的 macOS 架构(Apple Silicon)或特定版本上存在兼容性问题,建议放弃使用此渠道。

鉴于软件版本已是 v3.98,排除了旧版本已知的 Qwen-TTS 问题。此错误属于特定系统环境下第三方库的依赖缺失,最直接的解决方法是更换配音渠道。

请查阅相关文档:

如何删除现有的 .venv 文件夹

在 macOS/Linux 系统上,通过终端命令删除 .venv 文件夹。请按以下步骤操作:

  1. 打开终端。
  2. 使用 cd 命令导航到您的 pyVideoTrans 源码目录。根据您的日志,路径是 /Users/juzhihai/videotrans/pyvideotrans。命令示例:cd /Users/juzhihai/videotrans/pyvideotrans
  3. 确认当前目录下存在 .venv 文件夹,可以使用 ls -la 命令查看。
  4. 执行删除命令:rm -rf .venv。此命令会强制递归删除整个 .venv 目录,操作不可逆。
  5. 删除完成后,重新安装依赖:uv sync

请注意,此操作会完全移除当前的 Python 虚拟环境及其所有已安装的包。之后需要重新运行 uv sync 来构建环境。

请查阅相关文档:

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