Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dobedobedo opened this issue Jul 27, 2018 · 3 comments
Open

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

dobedobedo opened this issue Jul 27, 2018 · 3 comments

Comments

@dobedobedo
Copy link

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).

@robmarkcole
Copy link

Any solution?

@drewbo
Copy link
Contributor

drewbo commented Oct 9, 2018

There might be more help in the rasterio repo for this type of error. Rasterio isn't finding the gdal install/config and can't finish the setup

@Twenty3hree
Copy link

Twenty3hree commented Aug 15, 2019

There might be more help in the rasterio repo for this type of error. Rasterio isn't finding the gdal install/config and can't finish the setup

I encountered the same issue, can u tell me whether it fixed or there is any solutions? Thx
@drewbo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants