[Gdal-dev] support for python 2.5.1

Frank Warmerdam warmerdam at pobox.com
Mon Jul 2 12:39:31 EDT 2007


John Cartwright wrote:
> Thanks Howard and Frank for your prompt replies.  I've found that 
> although the compile works fine, but when I try to use the gdal python 
> bindings, I get the following:
> 
> /extra/contrib/lib/python2.5.1/site-packages/gdal.py:191: 
> RuntimeWarning: Python C API version mismatch for module _gdal: This 
> Python has API version 1013, module _gdal has version 1012.
>  import _gdal
> 
> 
> I've had the same experience on both RHEL 3, and Mac OS X 10.4.  Can you 
> tell from the above what I might be doing wrong?
>
John,

Generally speaking this means that the gdal bindings were built against
a different version of python than you are using to load it.  Is there
any chance you have more than one python installed on these systems?

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list