Hi,
I'm trying to port Salome (http://www.salome-platform.org/) to OSX. I have the
problem that SWIG wrapped modules don't work. They fail with:
Fatal Python Error: Interpreter not initialized (version mismatch?)
A web search brought hints about linking against the wrong Python but I'm
sure I link agains fink python and I run fink python. I can use gdb to step
into the module init code:
SWIGEXPORT(void) SWIG_init(void) {
static PyObject *SWIG_globals = 0;
static int typeinit = 0;
PyObject *m, *d;
int i;
if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
/* Fix SwigMethods to carry the callback ptrs when needed */
SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types,
swig_types_initial);
m = Py_InitModule((char *) SWIG_name, SwigMethods);
The Py_InitModule call does not succeed. It fails in PyInitModule4
(modsupport.c) at the Py_IsInitialized test.
The Python version is 2.4.2 and the SWIG version 1.3.24.
Any hints?
Cheers, Torsten
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig