#2048 OSError: cannot load library '/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/_soun

104.28* Posted at: 7 hours ago 👁7

Traceback (most recent call last):
File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/soundfile.py", line 267, in

_snd = _ffi.dlopen('sndfile')

File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/cffi/api.py", line 150, in dlopen

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

File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/cffi/api.py", line 834, in _make_ffi_library

backendlib = _load_backend_lib(backend, libname, flags)

File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.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 exception occurred:

Traceback (most recent call last):
File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/videotrans/mainwin/_main_win.py", line 75, in _set_Ui_Text

from videotrans import VERSION, recognition, tts

File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/videotrans/tts/__init__.py", line 26, in

from videotrans.tts._vits import VitsCNEN

File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/videotrans/tts/_vits.py", line 16, in

import soundfile as sf

File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/soundfile.py", line 276, in

_snd = _ffi.dlopen(_os.path.join(

File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/cffi/api.py", line 150, in dlopen

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

File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/cffi/api.py", line 834, in _make_ffi_library

backendlib = _load_backend_lib(backend, libname, flags)

File "/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/cffi/api.py", line 829, in _load_backend_lib

raise OSError(msg)

OSError: cannot load library '/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib': dlopen(/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib, 0x0002): tried: '/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib' (no such file), '/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.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 '/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90/.venv/lib/python3.10/site-packages/_soundfile_data/libsndfile.dylib'


=
system:macOS-26.2-arm64-arm-64bit
version:v3.90
frozen:False
language:en
root_dir:/Volumes/NV3000 1TB Netac/Voice/pyvideotrans-3.90
Python: 3.10.18 (main, Sep 18 2025, 19:32:33) [Clang 20.1.4 ]

1 Replies

The error indicates that the libsndfile library is missing on your macOS system. This is a required dependency for the soundfile Python package, which pyVideoTrans uses for audio processing.

To fix this, you need to install libsndfile using Homebrew.

  1. Open the Terminal application.
  2. Run the following command to install the library:

    brew install libsndfile
  3. After the installation completes, restart pyVideoTrans.

This issue is covered in the "MacOS / Linux 用户 (源码部署)" section of the documentation, which states that Mac users need to run brew install libsndfile as part of the setup.

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions