[postgis-devel] gdal2wktraster 0.1.6d Symbol not found: _CPLDefaultErrorHandler
Mateusz Loskot
mateusz at loskot.net
Sun Jul 25 13:40:24 PDT 2010
On Sun, 2010-07-25 at 07:28 -0700, Jeff Hamann wrote:
> Jeff-Hamanns-MacBook-Pro:scripts hamannj$ python gdal2wktraster.py
> Traceback (most recent call last):
> File "gdal2wktraster.py", line 33, in <module>
> from osgeo import gdal
> File
> "/Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/__init__.py", line 21, in <module>
> _gdal = swig_import_helper()
> File
> "/Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/__init__.py", line 17, in swig_import_helper
> _mod = imp.load_module('_gdal', fp, pathname, description)
> ImportError:
> dlopen(/Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/_gdal.so, 2): Symbol not found: _CPLDefaultErrorHandler
> Referenced
> from: /Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/_gdal.so
> Expected in: flat namespace
> in /Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/_gdal.so
> Jeff-Hamanns-MacBook-Pro:scripts hamannj$
Jeff,
It looks to me it's a problem with installation of GDAL/OGR and its
Python bindings.
If you confirm that running this simple test script fails as well:
#! /usr/bin/env python
from osgeo import gdal
I'd suggest to submit a ticket to GDAL (http://trac.osgeo.org/gdal/)
describing how you installed GDAL on your machine.
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net/
More information about the postgis-devel
mailing list