RicherMans / GPV

Repository for our Interspeech2020 general-purpose voice activity detection (GPVAD) paper
https://arxiv.org/abs/2003.12222
GNU General Public License v3.0
142 stars 29 forks source link

ModuleNotFoundError: No module named 'numba.decorators' #2

Closed kovalroma closed 4 years ago

kovalroma commented 4 years ago

Hello, I am trying to run GPV on my Linux. I use venv. Here is my pip list

(project_env) ds@ds-Standard-PC-i440FX-PIIX-1996:~/GPV$ pip list
DEPRECATION: The default format will switch to columns in the future. You can us                                                                                                             e --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.con                                                                                                             f under the [list] section) to disable this warning.
aiocontextvars (0.2.2)
audioread (2.1.8)
certifi (2020.6.20)
cffi (1.14.1)
chardet (3.0.4)
contextvars (2.4)
cycler (0.10.0)
dcase-util (0.2.16)
decorator (4.4.2)
future (0.18.2)
idna (2.10)
immutables (0.14)
joblib (0.16.0)
kiwisolver (1.2.0)
librosa (0.7.1)
llvmlite (0.33.0)
loguru (0.4.0)
matplotlib (3.3.0)
numba (0.50.1)
numpy (1.18.2)
pandas (1.0.3)
Pillow (7.2.0)
pip (9.0.1)
pkg-resources (0.0.0)
pycparser (2.20)
pydot-ng (2.0.0)
pyparsing (2.4.7)
PySoundFile (0.9.0.post1)
python-dateutil (2.8.1)
python-magic (0.4.18)
pytz (2020.1)
PyYAML (5.3.1)
requests (2.24.0)
resampy (0.2.2)
scikit-learn (0.22.2.post1)
scipy (1.4.1)
sed-eval (0.2.1)
setuptools (39.0.1)
six (1.14.0)
SoundFile (0.10.3.post1)
torch (1.5.0)
tqdm (4.43.0)
urllib3 (1.25.10)
validators (0.17.1)

This error I've got when launched the program

(project_env) ds@ds-Standard-PC-i440FX-PIIX-1996:~/GPV$ python3 forward.py -w so                                                                                                             und.mp3
Traceback (most recent call last):
  File "forward.py", line 10, in <module>
    import librosa
  File "/home/ds/GPV/project_env/lib/python3.6/site-packages/librosa/__init__.py                                                                                                             ", line 12, in <module>
    from . import core
  File "/home/ds/GPV/project_env/lib/python3.6/site-packages/librosa/core/__init                                                                                                             __.py", line 123, in <module>
    from .time_frequency import *  # pylint: disable=wildcard-import
  File "/home/ds/GPV/project_env/lib/python3.6/site-packages/librosa/core/time_f                                                                                                             requency.py", line 11, in <module>
    from ..util.exceptions import ParameterError
  File "/home/ds/GPV/project_env/lib/python3.6/site-packages/librosa/util/__init                                                                                                             __.py", line 77, in <module>
    from .utils import *  # pylint: disable=wildcard-import
  File "/home/ds/GPV/project_env/lib/python3.6/site-packages/librosa/util/utils.                                                                                                             py", line 15, in <module>
    from .decorators import deprecated
  File "/home/ds/GPV/project_env/lib/python3.6/site-packages/librosa/util/decora                                                                                                             tors.py", line 9, in <module>
    from numba.decorators import jit as optional_jit
ModuleNotFoundError: No module named 'numba.decorators'

I found that Numba will remove the shim for numba.decorators.jit at 0.50 here so I tried to changed numba in requirements to numba==0.48 and also changed torch to torch==1.5.0, because 1.4.1 was not found. After this It seems all works.

RicherMans commented 4 years ago

Uhh thanks for the notice! I get the same errors btw ( I'm on arch ), but these are on my machine just warnings. I don't think its directly related to the package itself, rather the requirements are to blame. Anything I can do besides an update of the requirements.txt?

kovalroma commented 4 years ago

Well, I am not good python programmer and I couldn't fixed code to work with latest libraries, so my proposition for now just to update requirements.txt .

RicherMans commented 4 years ago

Thanks so I updated the requirements.txt.