#3620 OSError: Could not find/load shared object file

202.8* Posted at: 16 hours ago 👁18

系统错误 (None):None:
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/Users/juzhihai/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/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/pyvideotrans/.venv/lib/python3.10/site-packages/llvmlite/binding/libllvmlite.dylib, 0x0006): Library not loaded: @rpath/libc++.1.dylib
Referenced from: /Users/juzhihai/pyvideotrans/.venv/lib/python3.10/si
......
ack (most recent call last):
File "/Users/juzhihai/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/concurrent/futures/process.py", line 246, in _process_worker

r = call_item.fn(*call_item.args, **call_item.kwargs)

File "/Users/juzhihai/pyvideotrans/videotrans/process/tts_fun.py", line 34, in qwen3tts_fun

from qwen_tts import Qwen3TTSModel

File "/Users/juzhihai/pyvideotrans/.venv/lib/python3.10/site-packages/qwen_tts/__init__.py", line 21, in

from .inference.qwen3_tts_model import Qwen3TTSModel, VoiceClonePromptItem

File "/Users/juzhihai/pyvideotrans/.venv/lib/python3.10/site-packages/qwen_tts/inference/qwen3_tts_model.py", line 29, in

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

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

from .tokenizer_25hz.modeling_qwen3_tts_tokenizer_v1 import Qwen3TTSTokenizerV1Model

File "/Users/juzhihai/pyvideotrans/.venv/lib/python3.10/site-packages/qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py", line 33, in

from .vq.speech_vq import WhisperEncoderVQ, XVectorExtractor

File "/Users/juzhihai/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/pyvideotrans/.venv/lib/python3.10/site-packages/librosa/filters.py", line 52, in

from numba import jit

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

from numba.core import config

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

import llvmlite.binding as ll

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

from .dylib import *

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

ffi.lib.LLVMPY_AddSymbol.argtypes = [

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

cfn = getattr(self._lib, name)

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

self._load_lib()

File "/Users/juzhihai/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/pyvideotrans/videotrans/util/ListenVoice.py", line 16, in run

tts.run(

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

QwenttsLocal(**kwargs).run()

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

self._exec()

File "/Users/juzhihai/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/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


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

3 Replies

这是由于 macOS 系统缺少 llvmlite 库所依赖的 libc++.1.dylib 动态链接库文件,导致 Qwen-TTS(本地) 配音渠道初始化失败。

  1. 安装缺失的系统库:在终端中执行以下命令,通过 Homebrew 安装 libc++

    brew install libc++
  2. 重新安装 llvmlite:安装系统库后,需要重新安装 llvmlite Python 包以确保其正确链接。

    uv pip uninstall llvmlite -y
    uv pip install llvmlite
  3. 重启软件:完成上述步骤后,重新启动 pyVideoTrans。

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

请查阅相关文档:

(base) juzhihai@juzhihaideMacBook-Pro pyvideotrans % brew install libc++
Warning: No available formula with the name "libc++". Did you mean libcss, libcsv, libcue, libclc, libcec, libcds, libcdr, libccd or libcap?
==> Searching for similarly named formulae and casks...
==> Formulae
libcss ✔ libcsv libcue libclc libcec libcds libcdr libccd

To install libcss ✔, run:
brew install libcss ✔
(base) juzhihai@juzhihaideMacBook-Pro pyvideotrans % uv pip uninstall llvmlite -y
uv pip install llvmlite
error: unexpected argument '-y' found

tip: to pass '-y' as a value, use '-- -y'

Usage: uv pip uninstall [OPTIONS]

For more information, try '--help'.
Audited 1 package in 4ms
(base) juzhihai@juzhihaideMacBook-Pro pyvideotrans % uv pip uninstall llvmlite -- -y
error: Failed to parse: -y
Caused by: Expected package name starting with an alphanumeric character, found -
-y
^
(base) juzhihai@juzhihaideMacBook-Pro pyvideotrans %

这是由于 macOS 系统缺少 llvmlite 库所依赖的 libc++.1.dylib 动态链接库文件,导致 Qwen-TTS(本地) 配音渠道初始化失败。

  1. 安装缺失的系统库:在终端中执行以下命令,通过 Homebrew 安装 libc++。
    brew install llvm
    (注意:libc++ 通常作为 llvm 的一部分提供,直接安装 llvm 即可。)
  2. 重新安装 llvmlite:安装系统库后,需要重新安装 llvmlite Python 包以确保其正确链接。
    uv pip uninstall llvmlite
    uv pip install llvmlite
  3. 重启软件:完成上述步骤后,重新启动 pyVideoTrans。

如果问题依旧,可以尝试暂时使用其他配音渠道(如 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