[Image-SIG] Python C API mismatch

Terry Hancock Terry Hancock <hancock@ipac.caltech.edu>
Thu, 15 Nov 2001 17:28:27 -0800 (PST)


I've seen this a few times lately:

WARNING: Python C API version mismatch for module _imaging:
  This Python has API version 1010, module _imaging has version 1009.

I think I understand what it means, but how serious
is it?  If not serious, can I make it go away?

I guess this means that the imaging module identifies
itself as using the 1009 API, and the newer Python
(2.1.1) recognizes the difference.  Therefore, I would
expect that recompiling alone would not be enough --
I'd have to find and change the reference to the API.

Is there a good resource to use to find out what API
changes were made and is there any quick way to figure
out whether a given piece of code will be broken by
such a change? It sounds like someone has put some
thought into this, and it would be nice to know how
to use it.

Thanks!

------------------------------------------------------
* Terry Hancock -- Science Software Support  -- IPAC *
* hancock@ipac.caltech.edu                           *
------------------------------------------------------