Problem with the iPython notebook, maybe an installation error

875 views
Skip to first unread message

Subhash Gubba

unread,
Nov 18, 2014, 7:38:34 PM11/18/14
to lib...@googlegroups.com
Hi there - I'm trying to run through the demo code, however it's having an issue with the librosa install.
I have already tried cloning the repo, using pip install, and building from source. Does anybody have a solution?

Thanks.
i get errors like this:

librosa/core.py:26: UserWarning: Could not import scikits.samplerate. Falling back to scipy.signal
  'Falling back to scipy.signal')

and


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-5a7dbe456d93> in <module>()
      6 
      7 # Librosa for audio
----> 8 import librosa
      9 
     10 # matplotlib for displaying the output

ImportError: No module named librosa


Brian McFee

unread,
Nov 19, 2014, 9:11:07 AM11/19/14
to lib...@googlegroups.com
The latter error indicates that librosa is not installed (or not in your python path).  Did you see that message after installing with pip, or after cloning the repo?

In general, I recommend sticking to the pip install rather than cloning, unless you plan to do active development on the code (or need the latest development snapshot for some reason).


The first message (samplerate) is a warning, not an error.  Everything will work properly, but certain operations -- resampling, CQT, time stretching and pitch shifting -- will not be as fast as they could be.  To fix it, you need to install libsamplerate (also available in debian/ubuntu via apt-get), and then install scikits.samplerate from pip.
Reply all
Reply to author
Forward
0 new messages