[QGIS-Developer] Import hdbscan issue in QGIS

Ariel Chang juiwen.chang at hcu-hamburg.de
Tue Sep 10 08:08:10 PDT 2019


Hello,

I am building a QGIS plugin and would like to add hdbscan in methods. 
But when I import with OSGEO4W shell it failed at this line:
File 
"C:\OSGeo4W\apps\Python37\lib\site-packages\hdbscan-0.8.22-py3.7-win32.egg\hdbscan_/init/_.py", 
line 1, in
from .hdbscan_ import HDBSCAN, hdbscan
File 
"C:\OSGeo4W\apps\Python37\lib\site-packages\hdbscan-0.8.22-py3.7-win32.egg\hdbscan\hdbscan_.py", 
line 21, in
from ._hdbscan_linkage import (single_linkage,
ImportError: DLL load failed: The specified module could not be found.

When I use QGIS python console it somehow failed at another line:
File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 737, in /import
mod = /builtin_import(name, globals, locals, fromlist, level)
File 
"C:\OSGeo4W\apps\Python37\lib\site-packages\hdbscan-0.8.22-py3.7-win32.egg\hdbscan_/init//.py", 
line 1, in
from .hdbscan/ import HDBSCAN, hdbscan
File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 737, in _import
mod = /builtin_import(name, globals, locals, fromlist, level)
File 
"C:\OSGeo4W\apps\Python37\lib\site-packages\hdbscan-0.8.22-py3.7-win32.egg\hdbscan\hdbscan/.py", 
line 21, in
from ._hdbscan_linkage import (single_linkage,
File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 737, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: DLL load failed: The specified module could not be found.

I am using QGIS 3.8.2 and windows 7, python 3.7.0 32 bit on win32
I installed hdbscan 0.8.22 manually via python setup.py install

Any suggestions will be grateful, cheers.

Ariel

-- 


-- 
*M.Sc. Juiwen Chang (Ariel) *
Research Associate
HafenCity University Hamburg | g2lab - Lab for Geoinformatics and 
Geovisualization
Überseeallee 16 | room 4.125 | 20457 Hamburg | Germany
Tel.: +49 (0)40 42827 4568 | email: _juiwen.chang at hcu-hamburg.de_
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190910/447b906f/attachment-0001.html>


More information about the QGIS-Developer mailing list