Importing Librosa(to implement feature extraction) giving error

Viewed 12

I was using a code to implement feature extraction, for which I planned to use the library librosa, and I get an error right in the section of the program where I imported librosa:

import librosa
import soundfile
import os, glob, pickle
import numpy as np
from sklearn.model_selection import train_test_split 

The error I'm getting is as follows:

TypeError                                 Traceback (most recent call last)
<ipython-input-2-dac119f5a9d3> in <module>
      1 #Import All Important Libraries
----> 2 import librosa
      3 import soundfile
      4 import os, glob, pickle
      5 import numpy as np

C:\om\lib\site-packages\librosa\__init__.py in <module>
    207 # And all the librosa sub-modules
    208 from ._cache import cache
--> 209 from . import core
    210 from . import beat
    211 from . import decompose

C:\om\lib\site-packages\librosa\core\__init__.py in <module>
      4 
      5 from .convert import *  # pylint: disable=wildcard-import
----> 6 from .audio import *  # pylint: disable=wildcard-import
      7 from .spectrum import *  # pylint: disable=wildcard-import
      8 from .pitch import *  # pylint: disable=wildcard-import

C:\om\lib\site-packages\librosa\core\audio.py in <module>
     10 import numpy as np
     11 import scipy.signal
---> 12 import resampy
     13 
     14 from numba import jit

C:\om\lib\site-packages\resampy\__init__.py in <module>
      5 from .version import version as __version__
      6 from . import filters
----> 7 from .core import *

C:\om\lib\site-packages\resampy\core.py in <module>
      9 from .filters import get_filter
     10 
---> 11 from .interpn import resample_f_s, resample_f_p
     12 
     13 __all__ = ["resample", "resample_nu"]

C:\om\lib\site-packages\resampy\interpn.py in <module>
     71 
     72 
---> 73 @guvectorize(
     74     "(n),(m),(p),(p),(),()->(m)",
     75     nopython=True,

TypeError: guvectorize() missing 1 required positional argument: 'signature'

How do I fix this error related to the guvectorize function seen here? Or is there any other method around this? Any help will be much appreciated, thanks.

0 Answers
Related