[ELGIS] RE: GDAL python bindings and libspatialite

Hatzopoulos, Nikolaos hatzopou at chapman.edu
Wed Aug 24 02:46:51 EDT 2011


if you hit python
and you are in python mode

enter:
from osgeo import gdal


you will see the error
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib64/python2.4/site-packages/osgeo/__init__.py", line 24, in ?
    import _gdal
ImportError: /usr/lib64/libspatialite.so.2: undefined symbol: sqlite3_clear_bindings

this means the libraries are not loading properly and there must be something wrong in
libspatialite.so 

--Nikos
________________________________________
From: Mathieu Baudier [mbaudier at argeo.org]
Sent: Tuesday, August 23, 2011 11:42 PM
To: Hatzopoulos, Nikolaos
Cc: Adrian Bartel (AR); el at lists.osgeo.org
Subject: Re: [ELGIS] RE: GDAL python bindings and libspatialite

> same error to me
>
> it seems that libspatialite is not compiled right

Can you please send a call which fails?

With ELGIS 5 Stable I have this:

[mbaudier at alma ~]$ gdal_merge.py
No input files selected.
Usage: gdal_merge.py [-o out_filename] [-of out_format] [-co NAME=VALUE]*
                     [-ps pixelsize_x pixelsize_y] [-tap] [-separate]
[-q] [-v] [-pct]
                     [-ul_lr ulx uly lrx lry] [-n nodata_value] [-init
"value [value...]"]
                     [-ot datatype] [-createonly] input_files
                     [--help-general]


More information about the el mailing list