Ivan Kelber Ivan Kelber - 1 month ago 13
Python Question

Error Installing Scikits.audiolab

I'm trying to install scikits.audiolab with pip. I read this post, however, it looks like that user's problem was that they hadn't installed numpy. I can replicate their trace by uninstalling numpy and running

pip install scikits.audiolab
. The trace that I get when I have numpy is:

numpy.distutils.system_info.NotFoundError: sndfile (http://www.mega-nerd.com/libsndfile/) library not found.
Directories to search for the libraries can be specified in the
site.cfg file, in section [sndfile].

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/p8/tbdq1bmx54d68dftpx9_p6qr0000gn/T/pip-build-vuIg71/scikits.audiolab/


Everything I've found about this error points me to downloading scikits.audiolab from pypi and running
python setup.py install
which is apparently "statically linked to libsndfile." But when I follow those instructions I get the nearly the same error:

numpy.distutils.system_info.NotFoundError: sndfile (http://www.mega-nerd.com/libsndfile/) library not found.
Directories to search for the libraries can be specified in the
site.cfg file, in section [sndfile].


Running
pip -V
returns
pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)


Running
python --version
returns
Python 2.7.12


Anyone that can point me in the right direction would be a true hero.

Answer Source

It turns out that I was missing libsndfile. I stumbled onto Python audiolab install, unable to install (or find) libsndfile on Mac OSX which provided fantastic directions that worked like a charm. I also have homebrew so apparently brew install libsndfile would have worked also. After this I was able to install scikits.audiolab with pip install scikits.audiolab