danioxoli / HotSpotAnalysis_Plugin

A QGIS plugin for hotspot analysis
GNU General Public License v3.0
56 stars 13 forks source link

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

Open mk604mk604 opened 1 month ago

mk604mk604 commented 1 month ago

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'?

mk604mk604 commented 1 month ago

I have upgraded my pysal, however I am now getting this issue

ImportError: cannot import name 'inf' from 'scipy' (C:\PROGRA~1\QGIS33~1.1\apps\Python312\Lib\site-packages\scipy__init__.py)