[Discussion] Remove Error ModuleNotFoundError: No module named 'numba.decorators'
See original GitHub issueHello, I’ve had a problem with spleeter, installed with pip. Fortunately this was quite an easy fix. Error says :
Traceback (most recent call last):
File "D:\Program Files\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "D:\Program Files\Python\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Program Files\Python\Python37\lib\site-packages\spleeter\__main__.py", line 58, in <module>
entrypoint()
File "D:\Program Files\Python\Python37\lib\site-packages\spleeter\__main__.py", line 54, in entrypoint
main(sys.argv)
File "D:\Program Files\Python\Python37\lib\site-packages\spleeter\__main__.py", line 40, in main
from .commands.separate import entrypoint
File "D:\Program Files\Python\Python37\lib\site-packages\spleeter\commands\separate.py", line 15, in <module>
from ..separator import Separator
File "D:\Program Files\Python\Python37\lib\site-packages\spleeter\separator.py", line 23, in <module>
from librosa.core import stft, istft
File "D:\Program Files\Python\Python37\lib\site-packages\librosa\__init__.py", line 12, in <module>
from . import core
File "D:\Program Files\Python\Python37\lib\site-packages\librosa\core\__init__.py", line 125, in <module>
from .time_frequency import * # pylint: disable=wildcard-import
File "D:\Program Files\Python\Python37\lib\site-packages\librosa\core\time_frequency.py", line 11, in <module>
from ..util.exceptions import ParameterError
File "D:\Program Files\Python\Python37\lib\site-packages\librosa\util\__init__.py", line 77, in <module>
from .utils import * # pylint: disable=wildcard-import
File "D:\Program Files\Python\Python37\lib\site-packages\librosa\util\utils.py", line 15, in <module>
from .decorators import deprecated
File "D:\Program Files\Python\Python37\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'
So just go and modify this file : (D:\Program Files\Python)Python37\lib\site-packages\librosa\util\decorators.py and change in the import numba.decorators
to numba.core.decorators
because it changed names 😃
Save and launch spleeter and voilà.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:24
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Import librosa gives "no module named numba.decorators ...
My solution was to use google colaboratory as it didn't give me any error when importing librosa. Share.
Read more >No module named 'numba.decorators'
As you can see, I do: pip install librosa -- python -- import librosa, but it's not happy. There's an error: ModuleNotFoundError: No...
Read more >numba
A Just-In-Time Compiler for Numerical Functions in Python. Numba is an open source, NumPy-aware optimizing compiler for Python sponsored by Anaconda, ...
Read more >Numba 0.55.0 RC1 - Announcements
Numba 0.55.0rc1 announcement Hi all, On behalf of the Numba community, ... numpy.distutils.misc_util as np_misc ModuleNotFoundError: No module named 'numpy' ...
Read more >目录
numba #2707: Fix regression: cuda test submodules not loading properly in runtests ... Lowering numpy scalar functions different than math module.
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 Free
Top 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
Fixed with:
@angristan yes reverting to an old numba (<=0.48.x) could work but I had only errors when installing them @athpap Go where python 3.6.x or 3.7.x is installed, then lib, site-packages, librosa, util, and open decorators.py with notepad, notepad++, python ide or basically any text programm and change between
from
import
,numba.decorators
tonumba.core.decorators
. then save and you can use spleeter.