Fatal Python error with Py_InitModule (Python 2.3)
andrew_ellem at hotmail.com
Mon Aug 25 05:38:49 CEST 2003
I'm using Python embedded in my app, and I've run into problems creating my
modules. I'm using Python version 2.3 compiled with MSVC .NET (not 2003).
When I call Py_InitModule I get the message:
"Fatal Python error: Interpreter not initialized (version mismatch?)"
However, Python does seem to be initialized. Py_IsInitialized() returns 1,
can PyImport_Import() and I can run scripts successfully from my program.
I'm not sure what I could be doing wrong, all the information I've found
indicates that the above message comes from incompatible version (not using
debug version, etc), but I don't see how that would be the problem in my
since I can run normal scripts.
Does anyone have an idea what might be the problem?
Protect your PC - get McAfee.com VirusScan Online
More information about the Python-list