C wrapper

Sheldon shejo284 at gmail.com
Tue Nov 7 21:10:26 CET 2006


Farshid Lashkari skrev:

> Sheldon wrote:
> > Can anyone give me some idea as to what this error means?
> >
> > "ImportError: dynamic module does not define init function "
> >
> > I am new at this and there is still a lot to learn.
> >
> > Any help is appreciated,
>
> Take a look at the documentation for creating extension modules,
> especially the following page:
>
> http://docs.python.org/ext/methodTable.html
>
> "The initialization function must be named initname(), where name is the
> name of the module, and should be the only non-static item defined in
> the module file"
>
> -Farshid

This function is there and is called init_mymodule() but I have other
functions that are not static.
Could this be the cause?

/Sheldon




More information about the Python-list mailing list