danioxoli / HotSpotAnalysis_Plugin

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

Pysal error #60

Closed firmanghazali25 closed 3 years ago

firmanghazali25 commented 3 years ago

Hi everyone. Recently, I installed HotSpotAnalysis_Plugin in QGIS3, but I found "AttributeError: module 'pysal' has no attribute 'common'". How to fix this error?. Thank you.

danioxoli commented 3 years ago

Hello,

this error is due to a wrong version of PySAL installed. Currently, the published plugin works with PySAL 1.14 while the PySAL has been updated to version 2. You have two chance:

1) Remove PySAL and force a new installation by specifying PySAL 1.14.

2) (Suggested, at least give a try) - Uninstall the plugin from QGIS and install the plugin version supporting PySAL 2 using its zip file that you can download from here: https://github.com/danioxoli/HotSpotAnalysis_Plugin/archive/qgis3pysal2.zip

Best

pnogas67 commented 3 years ago

Hi , I just tryed the zip and get the error message:

ModuleNotFoundError: No module named 'pysal.explore.esda'

My versions are:

Versão do Python: 3.7.7 (default, Sep 22 2020, 10:25:18) [Clang 12.0.0 (clang-1200.0.32.2)] Versão do QGIS: 3.16.0-Hannover Hannover, 4af1cbfb97 Any suggestions? Thanks, PN

Hello,

this error is due to a wrong version of PySAL installed. Currently, the published plugin works with PySAL 1.14 while the PySAL has been updated to version 2. You have two chance:

1. Remove PySAL and force a new installation by specifying PySAL 1.14.

2. (Suggested, at least give a try) - Uninstall the plugin from QGIS and install the plugin version supporting PySAL 2 using its zip file that you can download from here: https://github.com/danioxoli/HotSpotAnalysis_Plugin/archive/qgis3pysal2.zip

Best

danioxoli commented 3 years ago

Hello,

this looks again connected to the installed version of Pysal in QGIS.

You can check the actual version of Pysal directly from the Python console of QGIS by typing:

import pysal print(pysal.__version__)

The requested Pysal version for the plugin in the zip file is:

2.0.0

If you are using the plugin version available from the QGIS plugin repository, Pysal version have to be:

1.14

Best,

pnogas67 commented 3 years ago

I am using pysal 2.2.0. Is forecasted any review of the plugin :) thx, PN

On Thu, Feb 18, 2021 at 12:55 PM DOxoli notifications@github.com wrote:

Hello,

this looks again connected to the installed version of Pysal in QGIS.

You can check the actual version of Pysal directly from the Python console of QGIS by typing:

import pysal print(pysal.version)

The requested Pysal version for the plugin in the zip file is:

2.0.0

Best,

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/danioxoli/HotSpotAnalysis_Plugin/issues/60#issuecomment-781324099, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7E6RNUK6DSED6I6EM2ZBLS7UE5LANCNFSM4WKLQS6Q .

--

Pedro Nogueira (GMAIL)

Home: http://evunix.uevora.pt/~pmn Ph: +351 266 745301 Economic Geology (PhD) Departamento de Geociências da Universidade de Évora

http://goog_46339544

danioxoli commented 3 years ago

Unfortunately, I had and I will have really few time in the next future to go further with the development...

It is planned the migration of the master branch to Pysal 2 to try closing the gap with the advances of the external plugin dependencies (not really easy to keep track of changes in each version of Pysal). Furthermore, many Python distributions, including Anaconda, still provide version 1.4 by default on some channel and therefore many users would face the opposite issue.

If you need to run LISA I suggest having a look at https://geodacenter.github.io. You would have a bit limited interoperability of outputs but still is a very nice tool to start without programming.

Daniele