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

Problem installing GDAL #228

Open
antoninobajeli opened this issue Jan 15, 2020 · 1 comment
Open

Problem installing GDAL #228

antoninobajeli opened this issue Jan 15, 2020 · 1 comment

Comments

@antoninobajeli
Copy link

Hello, I have some problem to configure GDAL in my Python environment.

In the "requirement.txt" I specified "GDAL==2.4.2" and
as pre-condition I configured Docker in order to install the needed system dependencies:
RUN apt-get update && apt-get install -y \ binutils \ gdal-bin \ python-gdal

During the installation process I get the following error:
Building wheel for GDAL (setup.py): started Building wheel for GDAL (setup.py): finished with status 'error' ERROR: Command errored out with exit status 1: command: /env/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-48kodxl1/GDAL/setup.py'"'"'; __file__='"'"'/tmp/pip-install-48kodxl1/GDAL/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-okgsrlrf --python-tag cp37 cwd: /tmp/pip-install-48kodxl1/GDAL/ Complete output (33 lines): WARNING: numpy not available! Array support will not be enabled running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 copying gdal.py -> build/lib.linux-x86_64-3.7
.
.
compilation terminated. error: command "x86_64-linux-gnu-gcc" failed with exit status 1 ERROR: Failed building wheel for GDAL

Is something missing in the base configuration?

thanks in advance.

@nevace
Copy link

nevace commented Apr 29, 2020

I think it has something to do with python 3.7 and the latest version of GDAL. I got it working using the python:3 image which I believe is Python 3.8.

FROM python:3

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

2 participants