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 failed with: No module named 'hdbscan._hdbscan_linkage' #613

Open
plaume8 opened this issue Oct 14, 2023 · 0 comments
Open

Tests failed with: No module named 'hdbscan._hdbscan_linkage' #613

plaume8 opened this issue Oct 14, 2023 · 0 comments

Comments

@plaume8
Copy link

plaume8 commented Oct 14, 2023

Installed the hdbscan package from scratch as follows:

  • on: ubuntu 22.04
  • python: 3.10.13
  • installation procedure:
wget https://github.com/scikit-learn-contrib/hdbscan/archive/master.zip
unzip master.zip
rm master.zip
cd hdbscan-master
pip install -r requirements.txt
python setup.py install
  • installed packages in conda:
Package       Version
------------- -------
Cython        0.29.36
hdbscan       0.8.33
joblib        1.3.2
nose          1.3.7
numpy         1.26.0
pip           23.2.1
scikit-learn  1.3.1
scipy         1.11.3
setuptools    68.0.0
threadpoolctl 3.2.0
wheel         0.41.2

When executing python -m nose -s hdbscan:

Finished processing dependencies for hdbscan==0.8.33
(DS) root@LSND-base:~/code/hdbscan-master# python -m nose -s hdbscan
Traceback (most recent call last):
  File "/root/miniconda3/envs/DS/lib/python3.10/site-packages/nose/loader.py", line 417, in loadTestsFromName
    module = self.importer.importFromPath(
  File "/root/miniconda3/envs/DS/lib/python3.10/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/root/miniconda3/envs/DS/lib/python3.10/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/root/miniconda3/envs/DS/lib/python3.10/imp.py", line 245, in load_module
    return load_package(name, filename)
  File "/root/miniconda3/envs/DS/lib/python3.10/imp.py", line 217, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 719, in _load
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/code/hdbscan-master/hdbscan/__init__.py", line 1, in <module>
    from .hdbscan_ import HDBSCAN, hdbscan
  File "/root/code/hdbscan-master/hdbscan/hdbscan_.py", line 20, in <module>
    from ._hdbscan_linkage import (
ModuleNotFoundError: No module named 'hdbscan._hdbscan_linkage'

Thank you for your support and effort!

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

1 participant