bmcfee / resampy

Efficient sample rate conversion in python
https://resampy.readthedocs.io
ISC License
253 stars 36 forks source link

Incompatible with latest numba #77

Closed mutiann closed 2 years ago

mutiann commented 3 years ago

When using resampy 0.2.2 with numba 0.51 or 0.52, error of "TypeError: 'NoneType' object is not callable" will randomly and occasionally occur inside resample_f when calling resampy.resample. It works if I downgrade to numba 0.39.

bmcfee commented 3 years ago

That's strange. The latest librosa test builds pass without issue, and use numba 0.51 and resampy 0.2.2.

Relevant log: https://travis-ci.com/github/librosa/librosa/jobs/483493735#L819

Without a full log and environment dump, this will be impossible for me to debug. My hunch is that there's an old, cached resampy build in your environment that's gumming things up. Have you tried uninstalling and reinstalling resampy after upgrading numba?

mutiann commented 3 years ago

The exception is thrown from numba when launching resample_f (which is a JIT decorated function). I actually tried re-installing resampy but it doesn't help. I will upload some dump when I reproduce the issue.

bmcfee commented 3 years ago

@mutiann any update on this?