Open Ricksanchez000 opened 1 year ago
hdbscan==0.8.31 does indeed fix the problem.
I believe this is [a known issue with HDBSCAN for which a new version was released that hopefully resolved the issue. I also just checked Pypi and saw that a minute ago a new version of HDBSCAN was released. That might just solve the issue.
yeah, thank you so much, I just updated my scikit-learn along with HDBSCAN, and it works again, so happy because it's one of the important topic modeling models I used for my dissertation :)
Glad to hear that it works again. If you run into any other issues, feel free to reach out!
Mine got fixed at 0.8.32 v.
Mine got fixed by using HDBSCAN 0.8.33, earlier it was 0.8.29
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv class="ansi-yellow-fg"> error: subprocess-exited-with-error
× Building wheel for hdbscan (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [168 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/hdbscan copying hdbscan/validity.py -> build/lib.linux-x86_64-cpython-310/hdbscan copying hdbscan/init.py -> build/lib.linux-x8664-cpython-310/hdbscan copying hdbscan/hdbscan.py -> build/lib.linux-x86_64-cpython-310/hdbscan copying hdbscan/robust_singlelinkage.py -> build/lib.linux-x86_64-cpython-310/hdbscan copying hdbscan/prediction.py -> build/lib.linux-x86_64-cpython-310/hdbscan copying hdbscan/plots.py -> build/lib.linux-x86_64-cpython-310/hdbscan copying hdbscan/flat.py -> build/lib.linux-x86_64-cpython-310/hdbscan creating build/lib.linux-x86_64-cpython-310/hdbscan/tests copying hdbscan/tests/test_prediction_utils.py -> build/lib.linux-x86_64-cpython-310/hdbscan/tests copying hdbscan/tests/init.py -> build/lib.linux-x86_64-cpython-310/hdbscan/tests copying hdbscan/tests/test_hdbscan.py -> build/lib.linux-x86_64-cpython-310/hdbscan/tests copying hdbscan/tests/test_flat.py -> build/lib.linux-x86_64-cpython-310/hdbscan/tests copying hdbscan/tests/test_rsl.py -> build/lib.linux-x86_64-cpython-310/hdbscan/tests running buildext /tmp/pip-build-env-ymbqos4/overlay/lib/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-2wkh6f67/hdbscan_d9282b91d1024c7d897cc0e02360a19f/hdbscan/_hdbscan_tree.pyx tree = Parsing.p_module(s, pxd, full_module_name) Compiling hdbscan/_hdbscan_tree.pyx because it changed. [1/1] Cythonizing hdbscan/_hdbscan_tree.pyx building 'hdbscan._hdbscan_tree' extension creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/hdbscan gcc -pthread -B /opt/conda/compilercompat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/include -fPIC -O2 -isystem /opt/conda/include -fPIC -I/opt/conda/include/python3.10 -I/tmp/pip-build-env-ymbqos4/overlay/lib/python3.10/site-packages/numpy/core/include -c hdbscan/_hdbscan_tree.c -o build/temp.linux-x86_64-cpython-310/hdbscan/_hdbscantree.o In file included from /tmp/pip-build-env-ymbqos4/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1969, from /tmp/pip-build-env-ymbqos4/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /tmp/pip-build-env-ymbqos4/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:4, from hdbscan/_hdbscantree.c:1097: /tmp/pip-build-env-ymbqos4/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^
~~ gcc -pthread -B /opt/conda/compiler_compat -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/opt/conda/lib -Wl,-rpath-link,/opt/conda/lib -L/opt/conda/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/opt/conda/lib -Wl,-rpath-link,/opt/conda/lib -L/opt/conda/lib build/temp.linux-x86_64-cpython-310/hdbscan/_hdbscan_tree.o -o build/lib.linux-x86_64-cpython-310/hdbscan/_hdbscan_tree.cpython-310-x8664-linux-gnu.so /tmp/pip-build-env-ymbqos4/overlay/lib/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-2wkh6f67/hdbscan_d9282b91d1024c7d897cc0e02360a19f/hdbscan/_hdbscan_linkage.pyx tree = Parsing.p_module(s, pxd, full_module_name)note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for hdbscan ERROR: Could not build wheels for hdbscan, which is required to install pyproject.toml-based projects WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv class="ansi-yellow-fg"> WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv class="ansi-yellow-fg">
Hi, I meet this problem today ,not sure what happened, I can run the same code yesterday, and today just keep meeting this problem with hdbscan , can you please help me with it?