scikit-learn-contrib / hdbscan

A high performance implementation of HDBSCAN clustering.
http://hdbscan.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
2.81k stars 506 forks source link

Error when install HDBScan on dreamhosts #589

Closed allanckw closed 1 year ago

allanckw commented 1 year ago

Hi, I am using python 3.9.16 and just finished development on an app using BerTopic which has HDBScan as a dependency

I have a dreamhosts subscription to which I want to deploy my solution on shared hosting, but I cannot install HDBScan with the following error:

    File "/tmp/pip-build-env-mgui5ccg/overlay/lib/python3.9/site-packages/numpy/core/__init__.py", line 48, in <module>
      raise ImportError(msg)
  ImportError:

  IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

  Importing the numpy C-extensions failed. This error can happen for
  many reasons, often due to issues with your setup or how NumPy was
  installed.

  We have compiled some common reasons and troubleshooting tips at:

      https://numpy.org/devdocs/user/troubleshooting-importerror.html

  Please note and check the following:

    * The Python version is: Python3.9 from "/home/alanderc/opt/python-3.9.16/bin/python3"
    * The NumPy version is: "1.19.3"

  and make sure that they are the versions you expect.
  Please carefully study the documentation linked above for further help.

  Original error was: /tmp/pip-build-env-mgui5ccg/overlay/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so: failed to                                                                                                              map segment from shared object

Note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for hdbscan Failed to build hdbscan ERROR: Could not build wheels for hdbscan, which is required to install pyproject.toml-based projects [end of output]

Is this a permission issue or is there something I am missing?? My numpy is 1.24.2 identical to my dev machine

allanckw commented 1 year ago

fixed it by install Cython and installing hdbscan manually without PIP