openforis / sepal

Geographical Data Processing in the Cloud
https://sepal.io/
MIT License
203 stars 45 forks source link

No module named '_gdal_array' #245

Open dfguerrerom opened 1 year ago

dfguerrerom commented 1 year ago

As it was reported in https://github.com/sepal-contrib/sepal_smfm_biota/issues/42, there is a problem related to gdal, I've been doing some test in my test-venv, and apparently, this is happening because the installation is done using a cached wheel, is there a way to rebuild the wheels or to clean the cache? so the venvs can use a clean one?

dfguerrerom commented 1 year ago

I'm just copying and adding some comments regarding GDAL installation that were set in the sepal_biota issue tracker.

The issue there was that gdal couldn't find "gdal_array" module, and the reason is explained below:

To give a prompt I've decided to modify our forked version of biota and use rasterio to open images and return the Numpy array, it's been done here https://github.com/dfguerrerom/biota/commit/64286f4f627082135d5445cddf257a16be082b9b.