[gdal-dev] can't import osgeo or gdal in python

William Kyngesburye woklist at kyngchaos.com
Mon Sep 20 20:57:27 EDT 2010


On Sep 17, 2010, at 11:30 AM, Jeff Hamann wrote:

> 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
> >>> 
> 


hmmm, Jeff, how are you getting an egg?  From what I can understand of the makefiles, it doesn't install an egg by default, and you have to make that separately with "make egg", and even then I don't know if that will be installed by "make install".

I wonder if you have previously installed the GDAL-python extension by another method (installing the egg), which is then overriding your install from source.  And whichever GDAL it was expecting to find is not present any more.

Do you have this folder:

/Library/Python/2.6/site-packages/osgeo/


-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.




More information about the gdal-dev mailing list