Open StuartLittlefair opened 3 months ago
note that I was able - after carefully checking my environment - to get sep to work with numpy and Cython 3.0.
I needed to change all uses of np.int_t
in sep.pyx
with np.int32_t
. I also had to install with python setup.py build_ext; python setup.py install
.
@StuartLittlefair if it's at all helpful for you, I forked sep
a while back to try and implement some of the outstanding bug fixes - the current version (v1.3.5, https://github.com/PJ-Watson/sep-pjw) should be a drop-replacement for sep
, and is now compatible with Numpy 2.0.
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:
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
insep.pyx
tonp.intp_t
ornp.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.