question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

import librosa error ?

See original GitHub issue

hi, 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:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
thesbycommented, Jul 27, 2020

How does this problem happen? Any solution ? I meet the same problem on librosa 0.8

1reaction
lostanlencommented, Oct 31, 2019

(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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found