lmcinnes / umap

Uniform Manifold Approximation and Projection
BSD 3-Clause "New" or "Revised" License
7.39k stars 803 forks source link

Numpy 1.24 removes long, causes import error #1064

Open gh-byounggreenwald opened 11 months ago

gh-byounggreenwald commented 11 months ago

Hello!

Numpy finally removed the deprecated np.long object from version 1.24.0, so importing umap-learn dies when it gets to that step of the object definitions.

I can confirm a rollback to numpy version 1.23.5 solves the problem, but it would be nice to not be pegged to a version of numpy if possible.

Thanks!

PS: for those googling, the error is AttributeError: module 'numpy' has no attribute 'long'