question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apple M1 installation and usage

See original GitHub issue

Executing pip install SoundFile on an M1, installs just fine using generic wheel:

  Using cached SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB)

But trying to import soundfile shows the libsndfile as missing:

Python 3.9.4 (default, Apr 22 2021, 12:00:49)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import soundfile
Traceback (most recent call last):
  File "...venv/lib/python3.9/site-packages/soundfile.py", line 142, in <module>
    raise OSError('sndfile library not found')
OSError: sndfile library not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "...venv/lib/python3.9/site-packages/soundfile.py", line 162, in <module>
    _snd = _ffi.dlopen(_os.path.join(
OSError: cannot load library '...venv/lib/python3.9/site-packages/_soundfile_data/libsndfile.dylib': dlopen(...venv/lib/python3.9/site-packages/_soundfile_data/libsndfile.dylib, 2): image not found
>>>

Installing the libsndfile through brew, is not picked up either.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:11
  • Comments:29 (18 by maintainers)

github_iconTop GitHub Comments

14reactions
stefan-balkecommented, Feb 8, 2022

Quick workaround for everybody.

Add: export DYLD_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_LIBRARY_PATH"

to your ~/.zshrc.

3reactions
chuma9615commented, Jan 17, 2022

Any news on this release? I’d really like to use this package on my M1 machine 😬

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you need to install Rosetta on your Mac
If you need to install Rosetta on your Mac. Rosetta 2 enables a Mac with Apple silicon to use apps built for a...
Read more >
Tips and Tricks to Set Up Your Apple M1 for Development
Courier's Software Engineer Chris Gradwohl details some tips and tricks around setting up a new Apple M1 machine for development.
Read more >
How to Install Unsupported Development Software on M1 ...
An M1 Mac only has an M1 architecture chip, so you'll have to adapt to M1 architecture if you plan to use it....
Read more >
How to Install Windows 11 on Apple M1 Macs in 2022!
Need Windows 11 but you want to buy an Apple Silicon Mac ? This is the BEST, quickest, and most convenient way to...
Read more >
How to install Windows on M1 Macs - the super-easy way
Although M1 Macs lack support for traditional Boot Camp x86 Windows installations, it's super-easy to install Windows for ARM on your M1 Mac...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found