sep icon indicating copy to clipboard operation
sep copied to clipboard

sep incompatible with numpy 2.0.0 and Cython 3.0

Open StuartLittlefair opened this issue 7 months ago • 2 comments

We are trying to update our python packages for Numpy 2.0.0 compatibility and have sep as a dependency.

When trying to use sep with numpy 2.0.0 we get the following error:

File sep.pyx:1, in init sep()

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Assuming this was due to conflicts between the installed numpy version and the version sep was compiled against I built sep from scratch (this required changing references to np.int_t in sep.pyx to np.intp_t or np.int32_t - both give the same result).

After recompilation and installation, the error persists. I checked that I was compiling and linking against numpy 2.0.0.

StuartLittlefair avatar Jul 03 '24 16:07 StuartLittlefair