#2839 TaskCfg(cache_folder='/Users/liujingling/Desktop/pyvideotrans/tmp/1809/0c2e3f9c95', target_dir='/Users/liujingling/Deskt

240e:380* Posted at: 3 days ago 👁20

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/1809/0c2e3f9c95', 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/1809/0c2e3f9c95/REAL TALK On Testosterone & The Obesity Gene (FTO) With Dr. Dan Reardon of MuscleGenes-1769190731.033362.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='0c2e3f9c95', 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 ]

3 Replies

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

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

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

    brew install libsndfile
  3. After the installation is complete, restart pyVideoTrans and try your task again.

Important Note: The error trace shows remove_noise=True in your TaskCfg. If you don't need the noise removal feature, you can also avoid this error by unchecking the "Noise Removal" option in the main interface before starting the task.

Please refer to the documentation for more information:

无用

错误原因是您的 macOS 系统缺少 libsndfile 库,这是 soundfile Python 包(用于音频处理,如降噪)的必要依赖。

解决方案:

  1. 打开 终端 应用程序。
  2. 运行以下命令安装 libsndfile

    brew install libsndfile
  3. 安装完成后,重启 pyVideoTrans 并重试任务。

临时绕过方法:
错误日志显示 remove_noise=True。如果您不需要降噪功能,可以在主界面取消勾选“降噪”选项,然后重新运行任务。

请查看更多参考文档:

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