Skip to content

Comments

Fixed ModuleNotFoundError: No module named 'numba.decorators'#75

Open
SamuelLarkin wants to merge 1 commit intojik876:masterfrom
SamuelLarkin:dev
Open

Fixed ModuleNotFoundError: No module named 'numba.decorators'#75
SamuelLarkin wants to merge 1 commit intojik876:masterfrom
SamuelLarkin:dev

Conversation

@SamuelLarkin
Copy link

Hi,
I got the following error message trying python train.py --help

Traceback (most recent call last):
  File "../train.py", line 16, in <module>
    from meldataset import MelDataset, mel_spectrogram, get_dataset_filelist
  File "/gpfs/fs1/nrc/ict/others/u/sam037/tts/hifi-gan.git/meldataset.py", line 7, in <module>
    from librosa.util import normalize
  File "/home/sam037/.conda/envs/hifi-gan-TTS/lib/python3.8/site-packages/librosa/__init__.py", line 12, in <module>
    from . import core
  File "/home/sam037/.conda/envs/hifi-gan-TTS/lib/python3.8/site-packages/librosa/core/__init__.py", line 125, in <module>
    from .time_frequency import *  # pylint: disable=wildcard-import
  File "/home/sam037/.conda/envs/hifi-gan-TTS/lib/python3.8/site-packages/librosa/core/time_frequency.py", line 11, in <module>
    from ..util.exceptions import ParameterError
  File "/home/sam037/.conda/envs/hifi-gan-TTS/lib/python3.8/site-packages/librosa/util/__init__.py", line 77, in <module>
    from .utils import *  # pylint: disable=wildcard-import
  File "/home/sam037/.conda/envs/hifi-gan-TTS/lib/python3.8/site-packages/librosa/util/utils.py", line 15, in <module>
    from .decorators import deprecated
  File "/home/sam037/.conda/envs/hifi-gan-TTS/lib/python3.8/site-packages/librosa/util/decorators.py", line 9, in <module>
    from numba.decorators import jit as optional_jit
ModuleNotFoundError: No module named 'numba.decorators'

A quick google search reveals that numba removed the decorators module with version 0.50 and simply pinning the version to numba==0.48 fixes the issue.

Create a conda environment

conda create --name hifi-gan-TTS  python=3.8
conda activate hifi-gan-TTS
conda install --channel pytorch pytorch=1.4.0
pip install -r requirements.txt

@kaveenkumar
Copy link

thanks for correcting the numba version and ordering the requirements.txt.
Approved!

naoh16 added a commit to okayama-abelab/hifi-gan that referenced this pull request Dec 2, 2023
- Fixed ModuleNotFoundError: No module named 'numba.decorators' (jik876#75)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants