[Image-SIG] Python C API mismatch

John Hunter jdhunter@ace.bsd.uchicago.edu
Fri, 16 Nov 2001 08:00:01 -0600


>>>>> "Terry" == Terry Hancock <hancock@ipac.caltech.edu> writes:

    Terry> I've seen this a few times lately: WARNING: Python C API
    Terry> version mismatch for module _imaging: This Python has API
    Terry> version 1010, module _imaging has version 1009.

I sometimes get this when I compile a module as root, who doesn't
have /usr/local/bin/python in the PATH, and then run it as a normal
user, who does.  On my system, /usr/bin/python is an earlier version
than /usr/local/bin/python.

One solution is to make /usr/local/bin/python available to root when
you compile the module.

John Hunter