Extending Python with C: Cannot find MPI library

John Machin sjmachin at lexicon.net
Thu Jun 19 17:40:43 EDT 2008


On Jun 20, 5:56 am, Jeroen Ruigrok van der Werven <asmo... at in-
nomine.org> wrote:
> -On [20080619 17:11], Spectrum (spectru... at gmail.com) 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



More information about the Python-list mailing list