Search code examples
pythonanacondagdal

osgeo has an import error libspatialite


I have been using osgeo to deal with geotiffs. I was trying to change projections for one of my geotiffs, and I wasn't getting a correct return from

proj.ImportFromEPSG(3857)

This was because I installed osgeo with anaconda, and it did not come with the GDAL_DATA. I had GDAL installed on my unix system anyway, so I found the GDAL_DATA and created an environmental variable.

Somehow, in doing all of this, I have broken osgeo. I now get:

ImportError: /usr/lib/libspatialite.so.7: undefined symbol: GEOSDelaunayTriangulation_r

I have libspatialite installed, and I haven't really found anyone else having this issue. I have uninstalled and reinstalled gdal (i.e. osgeo) through anaconda a few times without success. Any ideas?


Solution

  • This seems to fix the ImportError issue,

    conda install --yes -c https://conda.binstar.org/jgomezdans gdal=1.11.0