#2840 TaskCfg(cache_folder='/Users/liujingling/Desktop/pyvideotrans/tmp/3000/2ad6085391', target_dir='/Users/liujingling/Deskt

206.237* Posted at: 3 days ago 👁18

ASR Error [faster-whisper (Local)] System Error (None): None
Traceback (most recent call last):
File "/Users/liujingling/Desktop/pyvideotrans/.venv/lib/python3.10/site-packages/soundfile.py", line 267, in

_snd = _ffi.dlopen('sndfile')

File "/Users/liujingling/Desktop/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/liujingling/Desktop/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/liujingling/Desktop/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 exception occurred:

Traceback (most recent call last):
File "/Users/liujingling/Desktop/pyvideotrans/videotrans/task/job.py", line 113, in run

trk.recogn()

File "/Users/liujingling/Desktop/pyvideotrans/videotrans/task/_speech2text.py", line 70, in recogn

from ._remove_noise import run_remove

File "/Users/liujingling/Desktop/pyvideotrans/videotrans/task/_remove_noise.py", line 15, in

import soundfile as sf

File "/Users/liujingling/Desktop/pyvideotrans/.venv/lib/python3.10/site-packages/soundfile.py", line 276, in

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

File "/Users/liujingling/Desktop/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/liujingling/Desktop/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/liujingling/Desktop/pyvideotrans/.venv/lib/python3.10/site-packages/cffi/api.py", line 829, in _load_backend_lib

raise OSError(msg)

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

TaskCfg(cache_folder='/Users/liujingling/Desktop/pyvideotrans/tmp/3000/2ad6085391', target_dir='/Users/liujingling/Desktop/pyvideotrans/output/recogn', remove_noise=True, is_separate=False, detect_language='en', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='/Users/liujingling/Desktop/pyvideotrans/output/recogn/REAL TALK On Testosterone & The Obesity Gene (FTO) With Dr. Dan Reardon of MuscleGenes.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='REAL TALK On Testosterone & The Obesity Gene (FTO) With Dr. Dan Reardon of MuscleGenes', shibie_audio='/Users/liujingling/Desktop/pyvideotrans/tmp/3000/2ad6085391/REAL TALK On Testosterone & The Obesity Gene (FTO) With Dr. Dan Reardon of MuscleGenes-1769191623.2064152.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=0, model_name='large-v3', split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='/Users/liujingling/Downloads/REAL TALK On Testosterone & The Obesity Gene (FTO) With Dr. Dan Reardon of MuscleGenes.mp4', basename='REAL TALK On Testosterone & The Obesity Gene (FTO) With Dr. Dan Reardon of MuscleGenes.mp4', ext='mp4', dirname='/Users/liujingling/Downloads', shound_del_name=None, uuid='2ad6085391', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:macOS-26.2-arm64-arm-64bit
version:v3.91
frozen:False
language:en
root_dir:/Users/liujingling/Desktop/pyvideotrans
Python: 3.10.18 (main, Jul 11 2025, 22:25:58) [Clang 20.1.4 ]

1 Replies

The error is caused by a missing libsndfile library on your macOS system. This library is required for the soundfile module, which is used for audio processing (e.g., noise removal).

To fix this, you need to install libsndfile using Homebrew. Open your Terminal and run the following command:

brew install libsndfile

After the installation is complete, restart pyVideoTrans and try the task again. The error should be resolved.

If you do not have Homebrew installed, you can install it first by running:

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

Please refer to the documentation for more information:

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

Similar issues already exist