_PyImport_FixupExtension Error
Mark Hammond
MarkH at ActiveState.com
Tue Nov 7 18:12:29 EST 2000
Ron Clarke wrote:
> I received the following error message when trying to import a Windows DLL
> built with the necessary Python methods (I thought!) via py_cpp:
>
> Traceback (most recent call last):
> File "D:\Python20\Pythonwin\pywin\framework\scriptutils.py", line 301, in
> RunScript
> exec codeObject in __main__.__dict__
> File "E:\PythonScripts\BK\bkdotest.py", line 11, in ?
> DoMain()
> File "E:\PythonScripts\BK\bkdotest.py", line 7, in DoMain
> import bkdo
> SystemError: _PyImport_FixupExtension: module bkdo not loaded
It means that your module code either doesn't have a line similar to:
module = Py_InitModule("bkdo", bkdo_functions);
Or that the string you are passing is not "bkdo" - it must be the same
name as your module.
Mark.
More information about the Python-list
mailing list