Open jo-mueller opened 1 year ago
Can this pin be removed now? NumPy 1.23 is not supported per SPEC-0 and is incompatible with other packages (e.g. latest zarr).
hey @ziw-liu, thanks for catching this, I'm pretty sure that it should not cause a problem but let me test it first! It will definitely be removed in the overhaul that we are working on atm but I thinks it's a good idea to update it in the current version as well.
Hi,
I was just testing some things and noticed that the UMAP was not functional in a fresh devbio-napari installation.
To reproduce
I create some sample data with this code:
When you select the UMAP algoithm in the dropwdown, al the features in the features list and click on
run
, nothing happends, whereas tSNE and PCA work. When using the debugger to step through the code, I found that this line throws an error:The error comes from numba:
"SystemError: initialization of _internal failed without raising an exception"
. The error has been described here, with a possible fix being to downgrade numpy to 1.23.5.Doing
mamba install numpy==1.23.5
in my environment fixed the issue for me.Possible fix
Pinning numpy to `numpy<1.24.0´ could do the trick, although I don't like pinning numpy. he problem has been observed in quite a few packages, though.