[postgis-devel] gdal2wktraster 0.1.6d Symbol not found: _CPLDefaultErrorHandler
Jeff Hamann
jeff.hamann at forestinformatics.com
Sun Jul 25 07:28:21 PDT 2010
I've installed wktraster on my OSX 10.6.4 machine and have loaded the extension into a database:
test1=# select * from rpt_versions;
-[ RECORD 1 ]----------+---------------------------------------------------------------------------------------------------------------------------------------
current_database | test1
current_user | postgres
postgres_version | PostgreSQL 8.4.4 on i386-apple-darwin10.4.0, compiled by GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659), 32-bit
postgis_version | POSTGIS="1.5.1" GEOS="3.1.1-CAPI-1.6.0" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.7.3" USE_STATS
wkt_version | 0.1.6d
wkt_version_build_date | 2010-07-12 20:37:11
test1=#
When I attempt to import some data using the gdal2wktraster script, I get the following:
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$
but since I'm not a python guy, I'm not sure how to fix these errors.
Do I need to go into python and submit some commands?
Do I need to compile something (gdal/ogr?) with alternative settings?
Thanks,
Jeff.
Jeff Hamann, PhD
PO Box 1421
Corvallis, Oregon 97339-1421
541-754-2457
jeff.hamann[at]forestinformatics[dot]com
http://www.forestinformatics.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20100725/b90e6589/attachment.html>
More information about the postgis-devel
mailing list