Unfortunately, I have not figured out a pattern to this yet (despite
hours of attempts). Can anyone shed light on why DLLs like win32api,
win32gui, and pythonwin types might fail to load when a py2exe app is
loading, thereby causing a crash? I did change the bundle_files setting
to 3, as recommended by Thomas, which did eliminate the problem I
reported about the Escape key not canceling dialogs in compiled
I have been compiling an app with Python 2.5, sometimes on XP and
sometimes on 32-bit Vista, so platform differences might be a factor.
The source of the problem seems broader than that, however, as the app
sometimes does this when compiled on the same platform. Sometimes, the
error message is about loading a library and sometimes about not finding
an entry point in a library.
Should it matter what order various win32 modules are imported? Should
wx be imported before or after them? Are administrative priveleges on
Vista sometimes required for one of these modules to load?
I tinkered enough with various settings so that the present compilation
of my app seems to work well on the XP platform on which it is currently
compiled. I worry, however, about encountering similar problems the
next time I compile it.
Any tips welcome.
Get latest updates about Open Source Projects, Conferences and News.