SegAnyGAussians icon indicating copy to clipboard operation
SegAnyGAussians copied to clipboard

cannot import name 'coo_array' from 'scipy.sparse'

Open Luoyoooo opened this issue 1 year ago • 3 comments

Dear author, when I run to python saga_gui.cpy, I get an error called ImportError: cannot import name 'coo_ array' from 'scipy. sparse' Can you tell me where I didn't do it right? Thank you very much

Luoyoooo avatar Sep 06 '24 07:09 Luoyoooo

Hi. What is your version of Scipy? I guess this is caused by the version mismatch. You can try to update it.

Jumpat avatar Sep 07 '24 08:09 Jumpat

This is a compatibility issue because it seems that the coo_array feature requires scipy >= 1.8.0 (as stated here). However, this version of scipy also requires python >= 3.8, which is not compatible with the overall environment settings.

To resolve this, I personally downgrade to hdbscan = 0.8.19 using the following command:

conda install -c conda-forge hdbscan=0.8.19

And for your reference I have scipy=1.7.3 and scikit-learn =0.20.4 and this combination works for me.

SleepTight-Cat avatar Nov 23 '24 17:11 SleepTight-Cat

You can download hdbscan==0.8.24 directly from anaconda.org, install it locally with the command conda install --use-local hdbscan-0.8.24-py37hc1659b7_0.tar.bz2, and then I'll be able to run saga_gui.py

Wspiron avatar Sep 03 '25 08:09 Wspiron