Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail with ModuleNotFoundError: No module named 'hdbscan._hdbscan_linkage' #501

Open
TheChymera opened this issue Oct 12, 2021 · 3 comments

Comments

@TheChymera
Copy link

I'm currently working on packaging your software for Gentoo Linux, and it seems to install fine (no errors, import hdbscan works), but the tests fail.

This is the full build and test log https://ppb.chymera.eu/072aa2.log
Any idea what I might be doing wrong?

@JanRhoKa
Copy link

Did you find a solution to this issue, as I'm having the same problem trying to write a new test function?

@TheChymera
Copy link
Author

@JanRhoKa I have not :( the parts of the package which I need (used as a lib by tridesclous) seem to work, though...

@JanRhoKa
Copy link

I have found a solution:

Create env

conda create -yn hdbscan-dev -c conda-forge python=3.8 ipython ipykernel numpy pandas cython
conda activate hdbscan-dev

Tried to install setup.py with python setup.py develop but that resulted in some errors (fixed below)

#Error: Microsoft Visual C++ 14.0 is required
Fix for Microsoft Visual C++
Download and install package into the folder of the newly created hdbscan-dev env (anaconda3\envs\hdbscan-dev)

Again tried to run setup.py develop
#ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Fix for the Value Error

conda uninstall numpy 
y
conda config --env --add channels conda-forge
conda install numpy

After that the setup.py can be developed.

Install
python setup.py develop

All of this was done on windows 10 using the PyCharm 2021.2.3 terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants