#3311 OSError: cannot load library '/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages

2405:4803* Posted at: 2 days ago 👁25

System Error (None): None:
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/soundfile.py", line 267, in

_snd = _ffi.dlopen('sndfile')

File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/cffi/api.py", line 150, in dlopen

lib, function_cache = _make_ffi_library(self, name, flags)

File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/cffi/api.py", line 834, in _make_ffi_library

backendlib = _load_backend_lib(backend, libname, flags)

File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/cffi/api.py", line 829, in _load_backend_lib

raise OSError(msg)

OSError: ctypes.util.find_library() did not manage to locate a library called 'sndfile'

During handling of the above exception, another exceptio
......
snd = _ffi.dlopen(_os.path.join(
File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/cffi/api.py", line 150, in dlopen

lib, function_cache = _make_ffi_library(self, name, flags)

File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/cffi/api.py", line 834, in _make_ffi_library

backendlib = _load_backend_lib(backend, libname, flags)

File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/cffi/api.py", line 829, in _load_backend_lib

raise OSError(msg)

OSError: cannot load library '/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib': dlopen(/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib, 0x0002): tried: '/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib' (no such file), '/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib' (no such file). Additionally, ctypes.util.find_library() did not manage to locate a library called '/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib'
"""

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

Traceback (most recent call last):
File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/videotrans/util/ListenVoice.py", line 17, in run

tts.run(

File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/videotrans/tts/__init__.py", line 343, in run

QwenttsLocal(**kwargs).run()

File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/videotrans/tts/_base.py", line 136, in run

self._exec()

File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/videotrans/tts/_qwenttslocal.py", line 61, in _exec

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

File "/Users/dominh/Desktop/video_automation/new_pyvideotrans/videotrans/configure/_base.py", line 287, in _new_process

_rs = future.result()

File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/_base.py", line 458, in result

return self.__get_result()

File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result

raise self._exception

OSError: cannot load library '/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib': dlopen(/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib, 0x0002): tried: '/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib' (no such file), '/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib' (no such file). Additionally, ctypes.util.find_library() did not manage to locate a library called '/Users/dominh/Desktop/video_automation/new_pyvideotrans/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib'


=
system:macOS-26.3-arm64-arm-64bit
version:v3.97
frozen:False
language:en
root_dir:/Users/dominh/Desktop/video_automation/new_pyvideotrans
Python: 3.10.10 (v3.10.10:aad5f6a891, Feb 7 2023, 08:47:40) [Clang 13.0.0 (clang-1300.0.29.30)]

1 Replies

This error occurs because the libsndfile library is missing on your macOS system. The soundfile Python package, which is required by the Qwen-TTS (local) channel, depends on this system library.

Solution Steps:

  1. Install libsndfile using Homebrew. Open your terminal and run the following command:

    brew install libsndfile

    This will install the necessary library system-wide.

  2. Restart pyVideoTrans. After the installation is complete, close and restart the pyVideoTrans application.

Additional Context:
This is a common dependency issue when using the Qwen-TTS (local) channel on macOS via source code deployment. The error log indicates the software is trying to load libsndfile.dylib but cannot find it. The Homebrew package manager is the standard way to install such system libraries on macOS.

Please refer to the relevant documentation:

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