GDAL image not found error

This post is more of a reminder to myself if I ever run into this issue again. If it helps someone else who runs into this issue, that’s even better.

We are a science heavy shop and most of our users write programs using Python. To help maintain a consistent environment we install Anaconda Python for our users to use. This way the programming environment is contained in the Anaconda environment and if anything breaks it’s easy enough to trash the Anaconda folder and start all over.

One of my users created a Python Env installing Python 3.5 so he could move from Python 2.7 to 3.5. When he went to use GDAL, specifically the gdalwarp command, he got the following error: image not found. After repeated creations of new environments and a couple uninstalls I found some info on stackoverflow that helped. It seems the version of gdal installed by Anaconda was 2.0.0 and not compatible with the newer versions of python. After running the following command he was able to use GDAL and gdalwarp commands without issue.

conda install -c conda-forge gdal=2.1.3