-
Notifications
You must be signed in to change notification settings - Fork 890
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
Please port to numpy-2 #1149
Comments
BTW I compiled it with numpy-2.2.1 and it seems it runs fine, at least I didn't observe the startup crash. Maybe if compiled with numpy-2 it can be run with numpy-2? And the crash will occur only if compiled with numpy-2 and run with numpy-1? If this is the case, the numpy dep should be relaxed. |
Hey @yarda, |
Sure, I will check and I will also enable the unit tests during Fedora build process. Could you point me to instructions how to run them all? I tried |
You can execute the tests manually or with PyCharm for example. You can, however, also use the CI Pipeline from GitHub that we have setup for this purpose. |
I used numpy-1: numpy-2: So it isn't compatible, but it isn't so bad. |
numpy-1 warnings:
|
numpy-2 failures:
numpy-2 tracebacks:
numpy-2 warnings:
|
So it seems most problems are float vs double. |
Details of failures:
|
Except of the |
With the following patch:
tests results: 1 failed, 341 passed The patch is far from being optimal any hints for optimization are welcome. Regarding the remaining 1 failure, it's in:
and here I have no idea what's wrong, any hints? If we come up with complete solution, I am OK to create PR. |
Cleaner patch:
|
The proposed patch requires check for numpy version, because it will fail with numpy-1, e.g. something like:
But I am not sure how to write it in cython. |
Thank you very much for you work so far! Do you like to open a pull request? I will add Johannes to this issue for reviewing. |
Yes, I will open PR when I found a solution. There are still two things I need to resolve:
|
I probably resolved the 1., PR will follow. Still fighting with the 2. |
It's related to jopohl#1149 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
The 2. seems to be some problem in the |
The problem seems to be in the |
It's related to jopohl#1149 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
It's related to #1149 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Can we mark this issue as resolved? |
Unfortunately, it isn't resolved yet. There is still numpy-2 related failure of the |
Is your feature request related to a problem?
Please port to numpy-2. Some distros (e.g. Fedora) no more provide numpy<2.
Describe the solution you'd like
The GUI works with numpy-2.
Describe alternatives you've considered
No way to distro package it to fedora-42, because there is no numpy-1
Additional context
numpy-2 migration guide: https://numpy.org/devdocs/numpy_2_0_migration_guide.html
Maybe I could port it myself, but it will take time, so at least reporting it for the RFE to be tracked.
The text was updated successfully, but these errors were encountered: