Problem with HotSpot Analysis - ImportError: cannot import name 'Local_Spatial_Pearson' from 'esda.lee' (C:\PROGRA~1\QGIS33~1.1\apps\Python312\Lib\site-packages\esda\lee.py). Did you mean: 'Spatial_Pearson'? #93
I have installed pysal and lee and esda but I am still having this error occur in QGIS 3.38.
ImportError: cannot import name 'Local_Spatial_Pearson' from 'esda.lee' (C:\PROGRA~1\QGIS33~1.1\apps\Python312\Lib\site-packages\esda\lee.py). Did you mean: 'Spatial_Pearson'?
Traceback (most recent call last):
File "C:\PROGRA~1/QGIS33~1.1/apps/qgis/./python\qgis\utils.py", line 426, in _startPlugin
plugins[packageName] = package.classFactory(iface)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/cleve/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis__init.py", line 34, in classFactory
from .hotspot_analysis import HotspotAnalysis
File "C:\PROGRA~1/QGIS33~1.1/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/cleve/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 39, in
from pysal.explore.esda.getisord import *
File "C:\PROGRA~1/QGIS33~1.1/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA~1\QGIS33~1.1\apps\Python312\Lib\site-packages\pysal\explore\esda\init__.py", line 16, in
from esda.lee import Spatial_Pearson, Local_Spatial_Pearson
ImportError: cannot import name 'Local_Spatial_Pearson' from 'esda.lee' (C:\PROGRA~1\QGIS33~1.1\apps\Python312\Lib\site-packages\esda\lee.py). Did you mean: 'Spatial_Pearson'?
I have installed pysal and lee and esda but I am still having this error occur in QGIS 3.38.
ImportError: cannot import name 'Local_Spatial_Pearson' from 'esda.lee' (C:\PROGRA~1\QGIS33~1.1\apps\Python312\Lib\site-packages\esda\lee.py). Did you mean: 'Spatial_Pearson'?
Traceback (most recent call last): File "C:\PROGRA~1/QGIS33~1.1/apps/qgis/./python\qgis\utils.py", line 426, in _startPlugin plugins[packageName] = package.classFactory(iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/cleve/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis__init.py", line 34, in classFactory from .hotspot_analysis import HotspotAnalysis File "C:\PROGRA~1/QGIS33~1.1/apps/qgis/./python\qgis\utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/cleve/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 39, in from pysal.explore.esda.getisord import * File "C:\PROGRA~1/QGIS33~1.1/apps/qgis/./python\qgis\utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\PROGRA~1\QGIS33~1.1\apps\Python312\Lib\site-packages\pysal\explore\esda\init__.py", line 16, in from esda.lee import Spatial_Pearson, Local_Spatial_Pearson ImportError: cannot import name 'Local_Spatial_Pearson' from 'esda.lee' (C:\PROGRA~1\QGIS33~1.1\apps\Python312\Lib\site-packages\esda\lee.py). Did you mean: 'Spatial_Pearson'?