ozak / georasters

GeoRasters is a Python module that provides a fast and flexible tool to work with GIS raster files.
GNU General Public License v3.0
198 stars 36 forks source link

pip install georasters fails on GDAL #55

Closed kkava closed 4 years ago

kkava commented 4 years ago

It seems like GDAL has changed and this package needs to be updated to account for that. A bit of digital decay has occurred. Or maybe someone can suggest a workaround for me? Thanks!

To recreate: Windows 10 powershell / pip install georaster

ERROR: Command errored out with exit status 1:
 command: 'c:\python\python37-64\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'X:\\Temp\\pip-install-zce_47at\\fiona\\setup.py'"'"'; __file__='"'"'X:\\Temp\\pip-install-zce_47at\\fiona\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'X:\Temp\pip-install-zce_47at\fiona\pip-egg-info'
     cwd: X:\Temp\pip-install-zce_47at\fiona\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

kkava commented 4 years ago

On further inspection it seems like I have to first install GDAL which cannot be done through pip. If that is the case this issue can just be closed, because I haven't done that (and don't really want to - I like my code to remain as distributable and accessible as possible). Thanks again, Kava

ozak commented 4 years ago

Indeed you need GDAL, but I think that is inescapable if you are doing GIS. So that should not be a major limitation in general. Luckily, conda makes it easy to share your code and your setup to ensure it works.

kkava commented 4 years ago

Hi Ömer,

thanks for the reply. I ended up finding the data I needed in a text file, so I didn't have to try to deal with the inner workings of the geotiff file. I'm working with the data from SEDAC, containing population distributions, to model the spread of covid-19. It's pretty interesting.

-Kava

On Wed, Apr 1, 2020, 3:13 PM Ömer Özak notifications@github.com wrote:

Indeed you need GDAL, but I think that is inescapable if you are doing GIS. So that should not be a major limitation in general. Luckily, conda makes it easy to share your code and your setup to ensure it works.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ozak/georasters/issues/55#issuecomment-607240893, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4PDNPDFMG3HLLPQAFL27TRKM4W7ANCNFSM4LYWUNDA .