Poissonfish/GRID

GRID doesn't work anymore

Opened this issue · 2 comments

Hi! thank you for the great software that I have been using for a while now to build my plots. Sadly I have changed my local configuration to test deep learning frameworks in python and R and I had to change python version. Since then, I was not able to run the package anymore. I tried almost everything but errors keep popping up at different steps depending on the attempt (I am on Windows 11 pro):

  • conda with python 3.11.6
  • system python 3.10.11
  • QGIS python 3.12.5
  • WSL with python 3.12.4
  • On virtual environments of all sort (conda, venv) or outside virtual envs.
    I would say that the attempt that allowed me to go farther in the process was the QGIS one, where I was able to run the program correctly but it crashed for a numpy problem ("Can't parse 'center'. Sequence item with index 0 has a wrong type), likely linked to an obsolete numpy version (1.26.4) that is required by other packages installed. Since I don't want to destroy my QGIS installation I stopped there. Given the results, I would say it's a GDAL problem on Windows (the only place where it worked was QGIS that ships with a version of GDAL that must work).

Could you please provide a configuration (python, gdal, rasterio versions, virtual environments yes or not) that is working for you on Windows so that I can at least try to replicate it?

Best regards

Thank you for your feedback. I need to check it on my computer later this week or over the weekend to reproduce the problem you described. If you have a chance before then, maybe also provide the complete error message (which line in which .py script) to help identify the root causes. Thanks!

Hi @lorenzoascari, I apologize for the delay in addressing this issue. Thank you for providing such a detailed description of your environment. You are correct; there is a typing issue with NumPy that another user has reported. I am currently pushing a fix to the new version within minutes.

I created a fresh environment on both Windows and Mac using the following scripts, and both setups are functioning properly:

conda create -n myenv python==3.11
conda install gdal
conda install rasterio
python -m pip install photo-grid

Please let me know if the issue persists.