-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python3 soundfile doesn't work on macOS/M1 #444
Labels
bug
Something isn't working
Comments
ohmtech-rdi
changed the title
Python3 soundfile doesn't work on macOS M1
Python3 soundfile doesn't work on macOS/M1
Jun 11, 2022
Workaround shell session for reference: % brew install libsndfile
...
% brew list libsndfile
...
/opt/homebrew/Cellar/libsndfile/1.1.0/lib/libsndfile.1.dylib
/opt/homebrew/Cellar/libsndfile/1.1.0/lib/libsndfile.dylib
% ls -l /opt/homebrew/Cellar/libsndfile/1.1.0/lib/
total 912
-r--r--r-- 1 raf admin 466656 Jun 12 14:42 libsndfile.1.dylib
lrwxr-xr-x 1 raf admin 18 Mar 27 14:42 libsndfile.dylib -> libsndfile.1.dylib
drwxr-xr-x 3 raf admin 96 Jun 12 14:42 pkgconfig
% mkdir -p /opt/homebrew/lib/python3.9/site-packages/_soundfile_data
% cp /opt/homebrew/Cellar/libsndfile/1.1.0/lib/libsndfile.1.dylib /opt/homebrew/lib/python3.9/site-packages/_soundfile_data/
% python3
Python 3.9.13 (main, May 24 2022, 21:13:51)
[Clang 13.1.6 (clang-1316.0.21.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import soundfile
>>> |
This was referenced Sep 8, 2022
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python3 soundfile doesn't work on macOS M1.
Steps to reproduce
There is no
_soundfile_data
in thesite-packages/
folder.However the SoundFile project is working on a new 0.11 release to address this problem, which details are captured in this issue.
The 0.11 release is still pre-release, with b5 just 9 days ago (relative to the time of this post).
Workarounds
It is possible to install
libsndfile
from brew, and then copy it in the_soundfile_data
folder as described above.Fix
It is not the first time that our dependencies fails to install. We are only using a very small part of
libsndfile
, as we officially only support thewav
format. FurthermoreSoundFile
doesn't support all functions of the library, and we need to access the cue markers later in the project.So one way to solve this would be to make our WAV parser directly in Python to remove this dependency.
The text was updated successfully, but these errors were encountered: