HS2 icon indicating copy to clipboard operation
HS2 copied to clipboard

Version 0.3.100 fails at import

Open alejoe91 opened this issue 2 years ago • 3 comments

Hi guys, the new version fails at import in the spikeinterface tests with:

import herdingspikes as hs
../../../test_env/lib/python3.8/site-packages/herdingspikes/__init__.py:4: in <module>
    from herdingspikes.hs2 import HSDetection, HSClustering
../../../test_env/lib/python3.8/site-packages/herdingspikes/hs2.py:7: in <module>
    from .detection_localisation.detect import detectData
__init__.pxd:[19](https://github.com/SpikeInterface/spikeinterface/runs/5673855336?check_suite_focus=true#step:11:19)9: in init herdingspikes.detection_localisation.detect
    ???
E   ValueError: numpy.ndarray has the wrong size, try recompiling. Expected 88, got 96

You can check the full log here

alejoe91 avatar Mar 24 '22 12:03 alejoe91

Finally found the likely problem: pip is using a cached wheel on your system and there is a numpy incompatibility that breaks the install. You can try using the --no-cache-dir option with pip. It also seems to break with older version of numpy<1.22.

mhhennig avatar May 10 '22 10:05 mhhennig

FWIW, this is now compounding with the removal of np.bool, which causes herdingspikes to fail (at least in the SI test run) for numpy versions 1.24 and above. So users with new SI installs will need to manually downgrade their pip to 1.22(.4?) to get HS working.

jonahpearl avatar Jul 21 '23 16:07 jonahpearl

Ok thanks, will check!

mhhennig avatar Jul 21 '23 16:07 mhhennig