Skip to content
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

Apple silicon installation has soundfile error #532

Closed
sammlapp opened this issue Sep 8, 2022 · 3 comments
Closed

Apple silicon installation has soundfile error #532

sammlapp opened this issue Sep 8, 2022 · 3 comments

Comments

@sammlapp
Copy link
Collaborator

sammlapp commented Sep 8, 2022

After installing opensoundscape without ffmpeg on my Apple Silicon M1 Pro chip laptop, I got an error about libsndfile not being found during import opensoundscape in python.

OSError: cannot load library '/Users/SML161/miniconda3/envs/opso070/lib/python3.8/site-packages/_soundfile_data/libsndfile.dylib': dlopen(/Users/SML161/miniconda3/envs/opso070/lib/python3.8/site-packages/_soundfile_data/libsndfile.dylib, 0x0002): tried: '/Users/SML161/miniconda3/envs/opso070/lib/python3.8/site-packages/_soundfile_data/libsndfile.dylib' (no such file).  Additionally, ctypes.util.find_library() did not manage to locate a library called '/Users/SML161/miniconda3/envs/opso070/lib/python3.8/site-packages/_soundfile_data/libsndfile.dylib'
@sammlapp
Copy link
Collaborator Author

sammlapp commented Sep 8, 2022

This is related to open issues in python-soundfile
bastibe/python-soundfile#310
ohmtech-rdi/eurorack-blocks#444 (comment)

@sammlapp sammlapp changed the title installation without ffmpeg doesn't work Apple silicon installation has soundfile error Sep 8, 2022
@sammlapp
Copy link
Collaborator Author

The workaround posted here works for me and can be used until there is a fix. It involves copying the libsnfile site-packages files to the location where Python is (incorrectly) looking for them.

@sammlapp
Copy link
Collaborator Author

This is resolved as of the OpenSoundscape v0.7.1 release when using a Python 3.9 environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant