[python-win32] Recurring DLL error with py2exe
Werner F. Bruhin
werner.bruhin at free.fr
Thu Aug 25 16:06:05 CEST 2011
On 08/25/2011 03:02 PM, Jacob Kruger wrote:
> Thought this problem was specific to pyaudiere, but now got same thing when tried to test using py2exe on a very small, test wxPython app to make sure it was worth focusing on this in terms of GUI's etc., but it again tells me the same thing.
> Typed in following command line code using sort of standard setup.py file that works on other things like my mapData IF engine, but did change the name of the .py file it should process:
> python setup.py py2exe
> The last 2 lines rendered in that window are then the following:
> *** finding dlls needed ***
> error: MSVCP90.dll: No such file or directory
> That specific DLL gets copied quite easily into the relevant subfolder of the dist folder when I run a similar command for my much larger, but, I suppose, simpler, mapData app, since that one doesn't try to import libraries/modules like piaudiere or wxPython as such.
> Any thoughts on what could really be happening here, or should I try sort out reinstalling windows7 or something...?
py2exe is getting confused on this DLL for some reason, you just need to
dll_excludes = ['libgdk-win32-2.0-0.dll', 'libgobject-2.0-0.dll',
'tcl84.dll', 'tk84.dll', 'MSVCP90.dll', 'mswsock.dll', 'powrprof.dll']
Additional information for wxPython and py2exe can be found on the wiki
More information about the python-win32