Installation problem - using conda install - missing class 'presets'

173 views
Skip to first unread message

Phillip Glau

unread,
Sep 7, 2017, 11:56:05 PM9/7/17
to librosa
I ran the command


conda install -c conda-forge librosa

But when I try running the gallery examples, I get the error:


>>> from presets import Presets
Traceback (most recent call last):
 
File "<stdin>", line 1, in <module>


So obviously 'presets' is missing from my install. I double checked that I can import 


import librosa as _librosa
import librosa.display as _display

And they both seem to import fine. 

Can somebody point me in the direction of getting the 'presets' class. 
My first guess didn't work and I don't see it on the GitHub for librosa, but perhaps I missed it.

conda install -c conda-forge presets

Fetching package metadata ...........
PackageNotFoundError: Packages missing in current channels:

 
- presets

We have searched for the packages in the following channels:

 
- https://conda.anaconda.org/conda-forge/osx-64
 
- https://conda.anaconda.org/conda-forge/noarch
 
- https://repo.continuum.io/pkgs/free/osx-64
 
- https://repo.continuum.io/pkgs/free/noarch
 
- https://repo.continuum.io/pkgs/r/osx-64
 
- https://repo.continuum.io/pkgs/r/noarch
 
- https://repo.continuum.io/pkgs/pro/osx-64
 
- https://repo.continuum.io/pkgs/pro/noarch


Thank you in advance for you help.

Brian McFee

unread,
Sep 8, 2017, 9:17:55 AM9/8/17
to librosa
The examples in the gallery are not necessarily self-contained.  The `presets` module can be installed by pip:

pip install presets

And everything else should work.

Jai Jeffryes

unread,
Jan 1, 2018, 9:51:31 AM1/1/18
to librosa
That did the trick. Thanks, Brian.

Jai
Reply all
Reply to author
Forward
0 new messages