[Tutor] Python, C, Swig, and mismatched API's

Isaac Hall hall at ouhep1.nhn.ou.edu
Thu Oct 23 15:24:42 EDT 2003


Hi folks.
Recently the powers that be decided that we needed to upgrade the version 
of python running here at work.  This had the side effect of causing a 
couple of my programs to print out some error messages I have not seen 
before, most notably one that says:

RuntimeWarning: Python C API version mismatch for module 
l3xmonitor_util_modulec: This Python has API version 1011, module 
l3xmonitor_util_modulec has version 1010.

Now, I didnt write the code that it is complaining about...someone else 
did, but my programs depend heavily on this little module, which from 
looking at the code was written in C++, and used some implementation of 
the swig program.  My question then is: what is causing the problem? Swig? 
the python.h file that gets loaded into the C++ code, or something else 
altogether?

--So Far-- this has not caused any problems, but when people that need to 
run this code fire it up and see any kind of error messages, they always 
shoot me an email, and after the 100th one, Im getting a little annoyed 
with it.

Thanks

Ike Hall

-- 




More information about the Tutor mailing list