clcr / pyeo

Python Earth Observation processing chain
GNU General Public License v3.0
94 stars 29 forks source link

gdal import causing errors #78

Closed Calyppe closed 3 years ago

Calyppe commented 3 years ago

Hello,

First of all, apologies if my language is not clear. I am not used to raising issues and discussing development.

When gdal is distributed through osgeo, the statement import gdal does not work, making the entire pyeo package not usable. Is it possible to change the import statement to from osgeo import gdal or use a try and catch structure to account for this situation?

Thank you!

Thingus commented 3 years ago

Hi @Calyppe I'm planning on updating the import statement in the next release to bring the library in line with Gdal 3.x, but there's a few other features I need to finish working on till then. In the meantime, would it be possible for you to pin your gdal version to 2.4.3?

Calyppe commented 3 years ago

Hi @Thingus Thank you for your reply. That's great to know. To be honest, it took me over 3 days to get gdal running properly on my computer, so I would rather not touch it anymore. I made the change locally in my environment. So I can keep working. It just isn't ideal for sharing my work with colleagues. I can also fork the repo and use my copy in the .yml in the meantime. I was not sure whether this issue had been raised before.

Thingus commented 3 years ago

Addressed in latest release