#8318 System Error (None): NoneTraceback (most recent call last):

36.232**4 Posted at: 2 hours ago

System Error (None): None
Traceback (most recent call last):
File "/Users/kent/Documents/Codex/tools/pyvideotrans/.venv/lib/python3.10/site-packages/soundfile.py", line 267, in

_snd = _ffi.dlopen('sndfile')

File "/Users/kent/Documents/Codex/tools/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/kent/Documents/Codex/tools/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/kent/Documents/Codex/tools/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/kent/Documents/Codex/to
......
829, in _load_backend_lib

raise OSError(msg)

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

trk=[TransCreate]: uuid='93b5366b8d', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: /Users/kent/Downloads/我跟总裁划清界限,她说我在考验她/。-1.mp4,
输出结果保存到文件夹: /Users/kent/Downloads/输出测试/。-1-mp4,
临时文件夹: /Users/kent/Documents/Codex/tools/pyvideotrans/tmp/59720/93b5366b8d
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Eric(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕 , precent=18, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=129933


=
system:macOS-26.6.2-arm64-arm-64bit
version:v4.16
frozen:False
language:zh_CN
root_dir:/Users/kent/Documents/Codex/tools/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 macOS 源码部署环境下缺少 libsndfile 系统库导致的。soundfile 模块在对齐阶段(_rate.py)被加载,但它无法定位系统的 sndfile 动态库。

解决方案:

  1. 打开终端,执行安装命令:

    brew install libsndfile
  2. 安装完成后,重新执行 uv sync 确保 soundfile 依赖完整:

    uv sync
  3. 在同一个终端会话中重新启动软件:

    uv run sp.py
另外,如果 brew 安装后仍然报同样错误,可尝试强制重新安装 Python 端绑定:uv pip install --force-reinstall soundfile,然后重启软件。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource