py2exe: dynamic module does not define init function

Gerhard Häring gh at ghaering.de
Mon Sep 22 17:30:13 CEST 2003


Alessandro Crugnola *sephiroth* wrote:
> [...] audiere.dll and .pyd are in my DLL python folder [...]

Name your extension module other than the DLL you wrap with it. E. g.

pyaudiere.pyd => audiere.dll or
_audiere.pyd  => audiere.dll

Anything else is creating real or potential problems you'd want to avoid.

In your case I'm pretty sure Python tries to load "audiere.dll", which 
of course doesn't export the initaudiere module initialization function, 
so you get the error you, uhm, get :-)

-- Gerhard





More information about the Python-list mailing list