Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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.

like image 917
Ivan Kelber Avatar asked Dec 24 '22 23:12

Ivan Kelber


2 Answers

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

like image 145
Ivan Kelber Avatar answered Dec 31 '22 13:12

Ivan Kelber


Solved the problem on Ubuntu 16.04 by installing the libsndfile1-dev package

sudo apt-get install libsndfile1-dev
like image 34
UserK Avatar answered Dec 31 '22 12:12

UserK