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.

[Discussion] Remove Error ModuleNotFoundError: No module named 'numba.decorators'

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Reactions:24
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

39reactions
angristancommented, Jun 12, 2020

Fixed with:

pip install numba==0.43.0
pip install llvmlite==0.32.1
9reactions
hashblencommented, Jun 13, 2020

@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 to numba.core.decorators. then save and you can use spleeter.

Read more comments on GitHub >

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

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