CRITICAL:root:A GDAL API version must be specified.

Open
#98 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
build-system

Research direction

Start with the README's Windows installation guidance and the setup.py path that emits the GDAL API error. Reproduce pip install --user label_maker on the stated native Python 3.6.6 and inspect how the rasterio build receives GDAL_CONFIG or GDAL_VERSION. Done means the documented Windows installation completes without the API-version error.

Written by the indexing model from the issue text.

Description

When I try to install label_maker, with the following commanbd:
pip install --user label_maker
and it stop with the following error:

INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
CRITICAL:root: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.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\o0331\AppData\Local\Temp\pip-install-foil9_5w\rasterio\

I have my GDAL installed in
"C:\Program Files\Python36\Lib\site-packages\GDAL-2.2.4.dist-info"
Not sure how to specify the path. Tried
pip install --user label_maker GDAL_CONFIG="C:\Program Files\Python36\Lib\site-packages\GDAL-2.2.4.dist-info"
but it showed me

Invalid requirement: 'GDAL_CONFIG=C:\Program Files\Python36\Lib\site-packages\GDAL-2.2.4.dist-info'
It looks like a path. File 'GDAL_CONFIG=C:\Program Files\Python36\Lib\site-packages\GDAL-2.2.4.dist-info' does not exist.

My OS is Windows 10 version 1803 and use native Python 3.6.6 installation (without conda).

Dominant language
Python
Stars
471
Forks
106
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/label-maker

All issues in developmentseed/label-maker

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.