Closed Tadusko closed 1 month ago
Hi, thank you so much for your interest in our work.
I have tried again with a totally new virtual environment. PyGRF can be installed and imported successfully without Matplotlib. I also looked into the file moran.py and did not see such a line of code: from matplotlib import colors. Could you be more specific with the issue you ran into? I am not sure whether it is because of different package versions.
Thanks, Kai
Hi Kai and thanks for the response!
I looked into it a bit and it seems that matplotlib was added to moran.py in the latest version, 2.6. It's in the current source – more specifically, it seems there's a new function called_explore_local_moran
where the colors are used (the diffs are here.
I installed pygrf in a fresh venv and then started running one of the example notebooks. My Python version is 3.12 and the ESDA version installed with pygrf is 2.6. Maybe this makes a difference?
Hi Tatu,
Thank you so much for checking this problem! I also looked into it again. It is indeed because of the new version of ESDA 2.6, which requires Matplotlib as a dependency. I have added a section "Potential issues and solutions" on the GitHub repository page to explain a bit about this issue in case other researchers may also run into this problem.
Thanks again for pointing out this issue! Please let us know if you have any further questions or there are any new issues with this package.
Kai
Hi! Thank you for an interesting package and work.
I installed the package in a new venv. However, it throws a
ModuleNotFoundError
when trying to import PyGRF due to matplotlib missing. More specifically, it seemsMoran
function inESDA
isfrom matplotlib import colors
. Matplotlib seems to be an optional dependency for ESDA, which is perhaps why it is not installed here.Installing matplotlib fixes the error and the rest of the notebook ran smoothly.
Below is the error dump: