I'm new to both GDAL and Linux. I have installed GDAL on my Linux mint PC. I am able to use regular GDAL commands in the terminal, but when I use python based commands,such as gdal_calc.py
I get the following error:
Traceback (most recent call last):
File "/usr/bin/gdal_calc.py", line 51, in <module>
from osgeo import gdal
File "/usr/lib/python2.7/dist-packages/osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "/usr/lib/python2.7/dist-packages/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: /usr/lib/x86_64-linux-gnu/libspatialite.so.7: undefined symbol: freexl_version
I get the same error when I try from osgeo import gdal
in a Python session. I am presuming that this has something to do with the locations of the gdal python scripts, or something related to spatialite (although I am not sure what spatialite has to do with this command). I also have QGIS and PostGIS installed, which presumably could cause some conflicts.
I have searched numerous sources, but can't find the cause of this error. I wonder if someone might be able to point me in the right direction.
import gdal
in a python session?