Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import librosa gives "no module named numba.decorators", how to solve?

Tags:

python

librosa

I installed librosa, and now im trying to import it

import librosa

This throws me this error for some reason

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Asish nayak\AppData\Local\Programs\Python\Python38-32\lib\site-packages\librosa\__init__.py", line 12, in <module>
    from . import core
  File "C:\Users\Asish nayak\AppData\Local\Programs\Python\Python38-32\lib\site-packages\librosa\core\__init__.py", line 125, in <module>
    from .time_frequency import *  # pylint: disable=wildcard-import
  File "C:\Users\Asish nayak\AppData\Local\Programs\Python\Python38-32\lib\site-packages\librosa\core\time_frequency.py", line 11, in <module>
    from ..util.exceptions import ParameterError
  File "C:\Users\Asish nayak\AppData\Local\Programs\Python\Python38-32\lib\site-packages\librosa\util\__init__.py", line 77, in <module>
    from .utils import *  # pylint: disable=wildcard-import
  File "C:\Users\Asish nayak\AppData\Local\Programs\Python\Python38-32\lib\site-packages\librosa\util\utils.py", line 15, in <module>
    from .decorators import deprecated
  File "C:\Users\Asish nayak\AppData\Local\Programs\Python\Python38-32\lib\site-packages\librosa\util\decorators.py", line 9, in <module>
    from numba.decorators import jit as optional_jit
ModuleNotFoundError: No module named 'numba.decorators'

Why am i getting this error even after installing the library?

like image 419
Asish Nayak Avatar asked Jul 11 '20 16:07

Asish Nayak


1 Answers

You have to install numbra version 0.48 because of a bug, run

pip install numba==0.48

Librosa Issue on Github

like image 95
DownloadPizza Avatar answered Sep 21 '22 00:09

DownloadPizza