earthlab/earthpy

A potentail issue with GDAL ON windows

lwasser opened this issue · 1 comments

Requirement already satisfied: requests in c:\hostedtoolcache\windows\python\3.8.6\x64\lib\site-packages (from earthpy==0.9.2) (2.25.0)
Collecting geopandas
  Downloading geopandas-0.8.1-py2.py3-none-any.whl (962 kB)
Collecting fiona
  Downloading Fiona-1.8.18.tar.gz (1.3 MB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\hostedtoolcache\windows\python\3.8.6\x64\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-install-gr_c79wa\\fiona_2ca5e720cfbe4209820b6f4ce67c6dda\\setup.py'"'"'; __file__='"'"'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-install-gr_c79wa\\fiona_2ca5e720cfbe4209820b6f4ce67c6dda\\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 'C:\Users\runneradmin\AppData\Local\Temp\pip-pip-egg-info-5gpnkxh0'
         cwd: C:\Users\runneradmin\AppData\Local\Temp\pip-install-gr_c79wa\fiona_2ca5e720cfbe4209820b6f4ce67c6dda\
    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.
Error: Process completed with exit code 1.

this is just a note to circle back on this. this could be happening because on a pip based install we know we might have gdal and spatial dependency issues but i want to record it in case it's something bigger.... for the time being i've turned off the windows build for linting and docs but what is happening in this build is hte package is being installed using pip install -e . so i should try to install on a windows machine before moving forward to see what happens.

i wondering if @nkorinek fix to install gdal 2 (specifically to install from conda forge) would fix this