[gdal-dev] GDAL Import Error with Anaconda

Kristine Lister listerkristine at gmail.com
Tue Oct 29 13:12:38 PDT 2019


Hi everyone,

I've been running into a new issue with installing GDAL in docker
containers using anaconda. I get the following error when trying to import
gdal in python:

Traceback (most recent call last):
  File "georeference_rasters2.py", line 5, in <module>
    from osgeo import gdal
  File "/azureml-envs/azureml_e9a775e324129d22aa5680cb26b4a846/lib/python3.6/site-packages/osgeo/__init__.py",
line 21, in <module>
    _gdal = swig_import_helper()
  File "/azureml-envs/azureml_e9a775e324129d22aa5680cb26b4a846/lib/python3.6/site-packages/osgeo/__init__.py",
line 17, in swig_import_helper
    _mod = imp.load_module('_gdal', fp, pathname, description)
  File "/azureml-envs/azureml_e9a775e324129d22aa5680cb26b4a846/lib/python3.6/imp.py",
line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/azureml-envs/azureml_e9a775e324129d22aa5680cb26b4a846/lib/python3.6/imp.py",
line 342, in load_dynamic
    return _load(spec)ImportError: libpoppler.so.76: cannot open
shared object file: No such file or directory


I install the following packages in the docker container using conda:

RUN conda install -c conda-forge numpy pandas poppler rasterio gdal rasterstats
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20191029/d92a2775/attachment-0001.html>


More information about the gdal-dev mailing list