-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
AWS EC2 Ubuntu Deep Learning AMI Python gdal Install Problems #4500
Comments
Related to this - #4467 ? |
Maybe? Interestingly, I have a version that installed from a Deep Learning Container from AWS, not the whole machine - and this worked:- FROM 763104351884.dkr.ecr.ap-southeast-2.amazonaws.com/tensorflow-training:1.15.5-cpu-py36-ubuntu18.04
RUN apt-get update --fix-missing && apt-get install -y --no-install-recommends gdal-bin libgdal-dev
RUN apt-get install -y python3-opencv
RUN apt install -y libgl1-mesa-glx
RUN pip3 install --global-option=build_ext --global-option="-I/usr/include/gdal" GDAL==`gdal-config --version`
RUN pip3 install geopandas
RUN pip3 install rasterio
RUN pip3 install affine
RUN pip3 install tqdm keras-tqdm
RUN pip3 install matplotlib
RUN pip3 install opencv-python
RUN pip3 install jupyter
RUN pip3 install ipywidgets
RUN pip3 install joblib
RUN jupyter nbextension enable --py widgetsnbextension |
This looks like a conda setup issue - |
Yes, quite possibly - why I was wondering if someone had seen it ... and knew which one, before I start C hacking. |
Yes, reading the logs it looks like a problem with how AWS are setting up Anaconda with Tensorflow, and not directly related to GDAL packaging in any way. FWIW I've seen a related looking issue with how Azure ML have their anaconda environments set up on notebook VMs - e.g. pytorch comes preinstalled but with missing C++ dependencies and doesn't work, the brute fix there was to uninstall it and reinstall via pip. One problem with this is it's impossible to reproduce without AWS credit / some insight into their image build system. Why are we helping one another fix vendor platform packaging bugs in an open source project's issues? ;p |
Yeah, I agree - I had to install it differently to use. I will see if I can get them to look at it. |
Haven't had an answer yet though! |
Expected behavior and actual behavior.
Expected behaviour:
install gdal for python
Actual behaviour
missing header locations and THROWN eerror
Steps to reproduce the problem.
Start a Ubuntu 16.04 or 18.04 machine and try and install gdal binding for python after system libraries.
Try and install via pip.
More context here:-
https://github.com/RichardScottOZ/AWS-EC2-Deep-Learning-AMI-GDAL-Install-Problems
Anyone seen this before? A quirk of how the AWS machine is set up?
Operating system
Ubuntu 16.04/18,04 64 bit
GDAL version and provenance
2.2.4/3.0.4 version from ubuntugis and ubuntugis-unstable PPA
The text was updated successfully, but these errors were encountered: