-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
CI workflow failures with numpy>=2.dev0 #1083
Comments
I have a working branche for it: https://github.com/avalentino/PyTables/tree/feature/fix-numpy2-20231112 Unfortunately there are still some test failures. Moreover I see here:
that there could be different solutions to be considered for fixing the "complex" related issues. |
Thanks @avalentino for taking care of this! Since the issue is quite well isolated in that CI job while the rest of workflows and jobs do succeed (including the creation of wheels), and since the issue with b2nd slicing mentioned in #1078 is already fixed in |
OK, for me. Just I would like to point out that I did some work on the numpy2 issue but at the moment I'm not after it due to lack of time. So if anyone want to take over he is very welcome |
Hey, @jarrodmillman pointed out this issue to me as I've recently upgraded scikit-image to work with both NumPy 1.x and 2.0 (see scikit-image/scikit-image#7288). Your are welcome to ping me if you have concrete problems related to that, I'll have a look and see if I can add anything useful. 🤞 |
Thanks @lagru , very appreciated |
NumPy 2.0.0rc1 is released, which means you can do a release that is built against it. A quick note on dependency metadata: |
One issue is the change of complex types:
Any idea how to address this? See: https://numpy.org/devdocs/numpy_2_0_migration_guide.html#complex-types-underlying-type-changes |
I have a work-in-progress branch (https://github.com/avalentino/PyTables/tree/feature/fix-numpy2-20231112). |
https://build.opensuse.org/request/show/1169290 by user mcepl + anag+factory Forwarded request #1169174 from bnavigator - Pin to numpy < 2: gh#PyTables/PyTables#1083 - Clean obsolete python39
Since Nov 8th, workflow runs of CI are failing in job "ubuntu-latest 3.12 numpy>=2.dev0" on
master
(the first such failure here). Since previous runs of that job after PR #1068 was merged with support for NumPy 2 nightlies did succeed, it's possible that some API or behaviour of NumPy changed in the meanwhile, causing the breakage.There are two kinds of errors, one in various tests triggered by errors like "
numpy._core._exceptions._UFuncOutputCastingError: Cannot cast ufunc 'floor_divide' output from dtype('float64') to dtype('uint64') with casting rule 'same_kind'
" (which are found intables/index.py:L629/L625
final_idx32
,L584
initial_append
,L2005
get_chunkmap
, and may be easy to fix with a simple type conversion), the other intest_expression.MixedContainers...
(where some array comparisons fail and may be trickier to fix).Maybe @graingert would be as kind as to have a look at this, since his work on supporting NumPy 2 is recent enough?
Thanks a lot! 🙂
The text was updated successfully, but these errors were encountered: