On Jun 20, 5:56 am, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED] nomine.org> wrote: > -On [20080619 17:11], Spectrum ([EMAIL PROTECTED]) wrote: > > > ImportError: dynamic module does not define init function > > Might be it's looking, but not finding, something like crti.S or the likes, > the C runtime files that specify stuff like _init and _fini. >
No, it means what it says. The OP seems to have stumbled past all the hurdles imposed by using the mpicc compiler and by his C code calling other code. Now he needs to put in the glue code so that his blahblah.so acts like a Python module that defines a python function. He (inter alia) needs to read http://docs.python.org/ext/ext.html -- starting at the beginning, not at the section that addresses the init function. HTH, John -- http://mail.python.org/mailman/listinfo/python-list