GeezerVison is showing github.com — CI workflow failures with numpy>=2.dev0 · Issue #1083 · PyTables/PyTables
CI workflow failures with numpy>=2.dev0 #1083DescriptionSince 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 in tables/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 in test_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! 🙂 Reacted by Jarrod Millman Activityavalentino commented on Nov 22, 2023 ivilata commented on Nov 23, 2023 ContributorAuthor More actions 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 master, I think I'll go ahead and create a PR for a new release v3.9.2. 🙂 avalentino commented on Nov 23, 2023 OK, for me.
Please go on with your PR
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 Reacted by Ivan Vilata-i-Balaguer lagru commented on Mar 1, 2024 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. 🤞 avalentino commented on Mar 1, 2024 Thanks @lagru , very appreciated rgommers commented on Apr 2, 2024 NumPy 2.0.0rc1 is released, which means you can do a release that is built against it.
A quick note on dependency metadata: oldest-supported-numpy should be replaced by numpy>=2.0.0rc1 in the [build-system] table in pyproject.toml. That'll yield wheels that are compatible with 1.x and 2.x. maxnoe commented on Apr 16, 2024 One issue is the change of complex types:
src/utils.c: In function ‘create_ieee_complex64’:
src/utils.c:768:30: error: request for member ‘real’ in something not a structure or union
768 | H5Tinsert(complex_id, "r", HOFFSET(npy_complex64, real), float_id);
| ^~~~~~~
src/utils.c:769:30: error: request for member ‘imag’ in something not a structure or union
769 | H5Tinsert(complex_id, "i", HOFFSET(npy_complex64, imag), float_id);
| ^~~~~~~
src/utils.c: In function ‘create_ieee_complex128’:
src/utils.c:793:30: error: request for member ‘real’ in something not a structure or union
793 | H5Tinsert(complex_id, "r", HOFFSET(npy_complex128, real), float_id);
| ^~~~~~~
src/utils.c:794:30: error: request for member ‘imag’ in something not a structure or union
794 | H5Tinsert(complex_id, "i", HOFFSET(npy_complex128, imag), float_id);
| ^~~~~~~
src/utils.c: In function ‘create_ieee_complex192’:
src/utils.c:825:30: error: request for member ‘real’ in something not a structure or union
825 | H5Tinsert(complex_id, "r", HOFFSET(npy_complex192, real), float_id);
| ^~~~~~~
src/utils.c:826:30: error: request for member ‘imag’ in something not a structure or union
826 | H5Tinsert(complex_id, "i", HOFFSET(npy_complex192, imag), float_id);
| ^~~~~~~
src/utils.c: In function ‘create_ieee_complex256’:
src/utils.c:857:30: error: request for member ‘real’ in something not a structure or union
857 | H5Tinsert(complex_id, "r", HOFFSET(npy_complex256, real), float_id);
| ^~~~~~~
src/utils.c:858:30: error: request for member ‘imag’ in something not a structure or union
858 | H5Tinsert(complex_id, "i", HOFFSET(npy_complex256, imag), float_id);
| ^~~~~~~
Any idea how to address this?
See: https://numpy.org/devdocs/numpy_2_0_migration_guide.html#complex-types-underlying-type-changes avalentino commented on Apr 16, 2024 maxnoe commented on Jun 18, 2024 @avalentino Numpy 2.0 is released, the minimum we need to do is to make a fast release that pins numpy < 2.0a0 so that users don't get a broken setup from pip install tables.
That should have happened already. avalentino commented on Jul 19, 2024
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|