C API mismatch with 2.0

John J. Lee phrxy at csv.warwick.ac.uk
Mon Dec 11 08:00:34 EST 2000

On Sun, 10 Dec 2000, Fredrik Lundh wrote:

> John J. Lee wrote:
> > I compiled Michael Miller's _tableio.c (the C extension bit of TableIO.py)
> > on windows using cygwin (with Robert Kern's help), and got the following
> > warning about the C API.  I used the python20.lib from the same
> > distribution of python 2.0 that I'm trying to import TableIO into.
> >
> > Can somebody tell me what's going on?  Where did this API version number
> > come from for _tableio?
> API version 1007 is 1.5.2, version 1009 is 2.0.
> looks like you failed to recompile (or install) the module.  to
> see which file you're loading, use:
> >>> import _tableio
> >>> print _tableio.__file__

Yes, I'm certainly loading the right file.  I've never compiled it (or
installed a binary of it) before, so I certainly compiled it.  The module
doesn't seem to be working properly - I've used it on unix before with, if
not the exact same file, at least one of the same format.

I presume the problem is that I compiled it with Paul Sokolovsky's patched
1.5.2 headers.  Is this still necessary to compile with gcc on windows,
and if so, are there patched 2.0 headers around?  Paul doesn't have any on
his page.


More information about the Python-list mailing list