-
Notifications
You must be signed in to change notification settings - Fork 86
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
Numpy 2.0 support #229
Comments
I started an effort in this direction, but it's very difficult. Will probably need help from some numpy devs. |
See also quaternionic for a pure-python package I wrote that doesn't depend on numpy's C API. |
Now that Numpy 2+ is the official current release, finding a fix becomes urgent. I hope someone is able to help out. I have never done any programming with Numpy API, only use f2py. |
Until there is a solution for numpy 2.0.0 or higher, maybe add |
For me, installing But, yes, I think also adding it to numpy-quaternion directly would be useful. |
Unfortunately, because of how pip versioning works, I believe that only means that anyone with numpy 2 trying to install this package will just get the last version of this package that didn't include the restriction to numpy<2. But FWIW, I've added it now. |
You may be correct about that. Not sure how this can be fixed, there must be a way to modify past versions on PyPI - this would not be the first packages affected by incompatible changes of a dependent package. Rather, that must be the common case. |
In case it helps you, this diff was enough to get quaternion building and tests passing on NumPy 1 and 2:
(This doesn't include any of the setup.py changes, but I think you have them on your numpy2 branch.) |
Oh, thank you very much! I won't get a chance for another week or so, but I'll take a look at this ASAP! |
Finally finished in 2024.0.2, with some crucial help from @hawkinsp. Thanks! |
Describe the bug
Support numpy 2.0.
To Reproduce
Give the following error with numpy 2.0.0rc2:
Expected behavior
A clear and concise description of what you expected to happen and why.
Environment (please complete the following information):
np.version.version
): 2.0.0rc2quaternion.__version__
): 2023.0.3Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: