import librosa error ?
See original GitHub issuehi,
On linux after
pip3 install librosa
I import the librosa ups the bug
Python 3.5.2
>>> import librosa
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/librosa/__init__.py", line 12, in <module>
from . import core
File "/usr/local/lib/python3.5/dist-packages/librosa/core/__init__.py", line 123, in <module>
from .time_frequency import * # pylint: disable=wildcard-import
File "/usr/local/lib/python3.5/dist-packages/librosa/core/time_frequency.py", line 11, in <module>
from ..util.exceptions import ParameterError
File "/usr/local/lib/python3.5/dist-packages/librosa/util/__init__.py", line 77, in <module>
from .utils import * # pylint: disable=wildcard-import
File "/usr/local/lib/python3.5/dist-packages/librosa/util/utils.py", line 1825, in <module>
def __shear_dense(X, factor=+1, axis=-1):
File "/usr/local/lib/python3.5/dist-packages/numba/decorators.py", line 179, in wrapper
disp.enable_caching()
File "/usr/local/lib/python3.5/dist-packages/numba/dispatcher.py", line 571, in enable_caching
self._cache = FunctionCache(self.py_func)
File "/usr/local/lib/python3.5/dist-packages/numba/caching.py", line 614, in __init__
self._impl = self._impl_class(py_func)
File "/usr/local/lib/python3.5/dist-packages/numba/caching.py", line 349, in __init__
"for file %r" % (qualname, source_path))
RuntimeError: cannot cache function '__shear_dense': no locator available for file '/usr/local/lib/python3.5/dist-packages/librosa/util/utils.py'
how to solve it ? thx
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Troubleshooting — librosa 0.10.0.dev0 documentation
it is because the librosa.display submodule needs to be imported explicitly in librosa versions earlier than 0.10. This is because matplotlib is an...
Read more >Unable to import librosa - Stack Overflow
i installed librosa again still receiving this error while importing it. requesting help to import librosa! guvectorize() missing 1 required ...
Read more >Problem with importing librosa on Jupyter notebook
I'm having trouble with importing librosa on Jupyter notebook. I'm pretty sure I installed it correctly. All the other library imports work but ......
Read more >Error Import Librosa OSError - Databricks Community
I have installed the library via PyPI on the cluster. When we import the package on notebook, getting the following error. import librosa....
Read more >ModuleNotFoundError: No module named 'librosa' in Python
The Python "ModuleNotFoundError: No module named 'librosa'" occurs when we forget to install the librosa module before importing it or install ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How does this problem happen? Any solution ? I meet the same problem on librosa 0.8
(1) install miniconda3: https://docs.conda.io/en/latest/miniconda.html (2) create a conda environment:
conda env create -n myfirstenv
(3) activate environment:source activate myfirstenv
(4) install librosa:conda install -c conda-forge librosa