py2exe: dynamic module does not define init function

Alex Martelli aleax at aleax.it
Mon Sep 22 10:49:22 EDT 2003


Alessandro Crugnola *sephiroth* wrote:

>> The message is telling you that audiere.dll does NOT define the
>> mandatory function named 'initaudiere' which it should absolutely
>> define to allow the "import audiere" statement.  If the import
>> works fine outside of a py2exe'd environment but fails in the
>> latter then I suspect you may be getting the "wrong" DLL in the
>> second case (e.g. maybe you didn't copy audiere.dll to the
>> directory in which py2exe's tweaked import expects to find it).
> 
> Thanks Alex for the reply, but if the audiere.dll has been copied in the
> dist/app/ directory (the one with the .exe) doesn't it mean that py2exe
> find it? Maybe i have to copy manually the dll ?
> 

If audiere.dll is in the right directory, and it has the
initaudiere function in it, your behaviour is rather mysterious.
Perhaps you have some other file of the same name on your
machine and import is picking up THAT file instead (under
py2exe only) -- just guessing, of course.


Alex





More information about the Python-list mailing list