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.

sndfile not found on os x

See original GitHub issue

yosemite 10.10.2

$ python
Python 2.7.9 |Continuum Analytics, Inc.| (default, Dec 15 2014, 10:37:34) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
>>> import pysoundfile as sf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/software/anaconda/envs/devpype/lib/python2.7/site-packages/pysoundfile.py", line 240, in <module>
    _snd = _ffi.dlopen('sndfile')
  File "/software/anaconda/envs/devpype/lib/python2.7/site-packages/cffi/api.py", line 121, in dlopen
    lib, function_cache = _make_ffi_library(self, name, flags)
  File "/software/anaconda/envs/devpype/lib/python2.7/site-packages/cffi/api.py", line 493, in _make_ffi_library
    backendlib = _load_backend_lib(backend, libname, flags)
  File "/software/anaconda/envs/devpype/lib/python2.7/site-packages/cffi/api.py", line 481, in _load_backend_lib
    raise OSError("library not found: %r" % (name,))
OSError: library not found: 'sndfile'

and the sndfile binaries and libraries are all available.

$ snd<TAB>
sndfile-cmp           sndfile-deinterleave  sndfile-metadata-get  sndfile-regtest       
sndfile-concat        sndfile-info          sndfile-metadata-set  sndfile-salvage       
sndfile-convert       sndfile-interleave    sndfile-play          

and

$ ls /usr/local/Cellar/libsndfile/1.0.25/
AUTHORS         INSTALL_RECEIPT.json    bin         share
COPYING         NEWS            include
ChangeLog       README          lib

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
sumitrathore1313commented, Sep 11, 2018

install this sudo apt-get install libsndfile1

0reactions
mgeiercommented, Apr 14, 2015

Great, thanks a lot! I’m closing this …

Read more comments on GitHub >

github_iconTop Results From Across the Web

sndfile not found on os x · Issue #118 · bastibe/python-soundfile
Can you please show the contents of /usr/local/Cellar/libsndfile/1.0.25/lib/ ? I don't know how this works on OSX, but on Linux, you can add ......
Read more >
MacOS brew install libsndfile but still not found - Stack Overflow
For some reason, brew did not put libsndfile.h into either of the locations you suggested, but I found it at /opt/homebrew/Cellar/libsndfile/1.1 ...
Read more >
libsndfile - Homebrew Formulae
libsndfile. Install command: brew install libsndfile. C library for files containing sampled sound. https://libsndfile.github.io/libsndfile/.
Read more >
Install libsndfile on Mac OSX
Press Command+Space and type Terminal and press enter/return key. · Now, copy/paste and run this command to make brew command available inside ...
Read more >
libsndfile : Frequently Asked Questions - GitHub Pages
On Linux/Unix/MacOS X, what's the best way of detecting the presence of libsndfile? ... codec where no source code or documentation is available...
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