How do I update my API?

Mark blobby Robinson m.1.robinson at herts.ac.uk
Sun Apr 29 12:55:31 EDT 2001


I am trying to write a C extension for a python program. Having just 
upgraded to python 2.1 I find that when I try to import the module I get 
the following error:

WARNING: Python C API version mismatch for module motifExt:
  This Python has API version 1010, module motifExt has version 1007.


I figured I was using an out of date Makefile.pre.in so I found a copy 
of it in the python2.1 source and tried generate a make file using :

make -f Makefile.pre.in boot

but this now generates the following errors:

make[1]: Entering directory `/home/rm3ay/motif/modules'
make[1]: *** No rule to make target 
`/usr/lib/python2.1/config/Makefile', needed by `sedscript'.  Stop.
make[1]: Leaving directory `/home/rm3ay/motif/modules'
make: *** [boot] Error 2


any suggestiongs?

Blobby




More information about the Python-list mailing list