New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
effects.pitch_shift example throws an error #1681
Comments
The examples on the other effects throw errors also. |
This looks like a duplicate of #1675 to me. We didn't quite get to the bottom of the issue there, but i believe the original poster did resolve it by reinstalling numba. I still think this an upstream issue for us, but it might be helpful if you could take a look through the discussion on #1675 to see if anything there is helpful in getting a more specific diagnosis. |
Yes that worked thank you! Numpy was the problem for me. After reinstalling it, the numpy version became I'll leave the issue open unless you want to close it. |
Cool, thanks for confirming! Let's leave this open for now, though i expect there's nothing to be done from our side. I think there must be a strange interaction happening in our dependencies that is somehow not being detected by our (minimum version pin) test suite. |
Ok, I did a bit more digging, and i think it might actually be down to a couple of issues specific to numpy 1.22(.2). The following are listed in the 1.22.3 release notes, and might be to blame:
As far as I can tell, these PRs fix some regressions introduced somewhere between 1.20.3 (our minimum required / tested) and 1.22.2, and both are related to ufunc behavior. |
Did a bit of digging today, and was able to reproduce the failure with numpy. Here's a summary of how it fares on different numpies (all other dependencies fixed: numba 0.55.2, llvmlite 0.38.1).
I think this confirms the above diagnosis. Probably the thing to do is update the package recipe to avoid |
Describe the bug
A clear and concise description of what the bug is.
numpy.core._exceptions._UFuncNoLoopError: ufunc '_phasor_angles' did not contain a loop with signature matching types <class 'numpy.dtype[float32]'> -> None
To Reproduce
Run the example from https://librosa.org/doc/main/generated/librosa.effects.pitch_shift.html
Example:
Using local files doesn't work either.
Expected behavior
What should happen is that the example should work.
Software versions*
The text was updated successfully, but these errors were encountered: