Closed RogerHYang closed 2 months ago
The numpy 2.0 release might mean you have to ensure cython gets run to rebuild C sources. Potentially this can be solved the --no-binary
option in pip install, but I'm not entirely sure if this is exactly the issue.
It looks like numpy 2.0 is not going to play nice with cython and hdbscan here. Figuring out how to make it all work will take some time. In the meantime I've pinned the numpy version as <2 for a new hdbscan release so installing from PyPI (soon) will object to having hdbscan 0.8.37 and numpy 2.0. For other workarounds I would suggest looking to fast_hdbcan which should work with numpy 2.0 right now.
@lmcinnes there should be nothing required except uploading no wheels. I have opened https://github.com/scikit-learn-contrib/hdbscan/pull/644
Sorry, turns out there were some minor code tweaks needed. And there is another issue, but I am not sure what it is, since it doesn't seem to be related to NumPy itself.
Thanks Sebastian and Leland! 🙏
Is there more still needed here?
Or do we just need a release and packages?
screenshot below shows the error in Colab