You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing librosa in python2.7 runs into this error:
import librosa
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/librosa/init.py", line 11, in
from . import cache
ImportError: cannot import name cache
It's been suggested elsewhere to install the package using conda /Anaconda or clone and install the repository to solve this issue, but in my particular working conditions I need to install it via pip.
Checking the source code, I've managed to make it work by modifying line 49 in cache.py from:
if self.cachedir is not None and self.level >= level:
to
if self.location is not None and self.level >= level:
Does this make any sense?
Thanks!
The text was updated successfully, but these errors were encountered:
The cachedir/location issue #729 has already been fixed #730, and will be included in the 0.6.2 release. The discussion in #729 and #732 describes how to work around the problem.
Importing librosa in python2.7 runs into this error:
import librosa
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/librosa/init.py", line 11, in
from . import cache
ImportError: cannot import name cache
It's been suggested elsewhere to install the package using conda /Anaconda or clone and install the repository to solve this issue, but in my particular working conditions I need to install it via pip.
Checking the source code, I've managed to make it work by modifying line 49 in cache.py from:
if self.cachedir is not None and self.level >= level:
to
if self.location is not None and self.level >= level:
Does this make any sense?
Thanks!
The text was updated successfully, but these errors were encountered: