You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently installed the clusters plotter and ran into an issue when running hdbscan. When I run the clustering on a set of measurements (e.g., based on blobs.gif), I receive this error:
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
I looked up the error and it probably boils down to this issue. I tried a few of the suggestions from this thread (e.g., rolling numpy back to 1.20.5), but couldn't solve the issue. I currently have numpy 1.21.5 installed.
Edit: It seems that will be solved once the new release of hdbscan is out (apparently it works when installing directly from hdbscan master branch), but I haven't verified this.
The text was updated successfully, but these errors were encountered:
Hi, Johannes @jo-mueller, thanks for reporting! So I just tried to reproduce the error on two laptops but I wasn't successful, the plugin works fine on both machines. But with one laptop, which is quite old, it's a different story since I am creating there an environment with a lower python version (3.8), and lower pyopencl version (2020.1). While with my laptop I always need to install hdbscan via conda prior to installing the plugin, because it always fails to build wheels for hdbscan. I see installing hdbscan via conda was also mentioned as a solution in the issue you linked, which might be why I am not seeing this error. Have you tried installing hdbscan that way?
These are the exact steps I do in case it might be helpful: conda create --name ncp-env python=3.9 conda install -c conda-forge pyopencl python -m pip install "napari[all]" conda install -c conda-forge hdbscan pip install napari-clusters-plotter
I also have numpy 1.21.5 installed in the environment, hdbscan=0.8.27, numba=0.55.0
I recently installed the clusters plotter and ran into an issue when running hdbscan. When I run the clustering on a set of measurements (e.g., based on blobs.gif), I receive this error:
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Here's a screenshot of the setup
and the complete traceback:
I looked up the error and it probably boils down to this issue. I tried a few of the suggestions from this thread (e.g., rolling numpy back to 1.20.5), but couldn't solve the issue. I currently have numpy 1.21.5 installed.
Edit: It seems that will be solved once the new release of hdbscan is out (apparently it works when installing directly from hdbscan master branch), but I haven't verified this.
The text was updated successfully, but these errors were encountered: