Movatterモバイル変換


[0]ホーム

URL:


How do I update my API?

Neil Schemenauernas at python.ca
Sun Apr 29 13:29:45 EDT 2001


Mark blobby Robinson wrote:> 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.This means your module was compiled for an older version ofPython.> 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 2This error means that /usr/lib/python2.1/config/Makefile ismissing and it is needed.  Did you install Python 2.1 in/usr/lib?  If so, that file should have been installed.  If not,something is wrong with your 2.1 installation.  Perhaps youinstalled a packaged version that did not include the developmentfiles.  Neil


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp