From: Michele P. <mic...@un...> - 2006-01-13 11:30:52
|
Hi list, first of all, excuse me if this isn't a real wx error, but I see that wx say me an error not py2exe, so I wrote here... (and py2exe in CC) I have a big problem with a my application where I want to create a standalone exe. This problem happen only on win9x systems, but not with 2k and xp... I use py2exe with the bundlefiles option with the 2 value and zipfile option set to None/somezipfile.zip I receive to distinct errors if I use the splash screen (before the frame), or directly the frame without splash: with splash screen: File "app.py", line 4836, in main File "wx\_core.pyo", line 7668, in __init__ File "wx\_core.pyo", line 7320, in _BootstrapApp File "app.py", line 4820, in OnInit File "app.py", line 4758, in __init__ File "wx\_windows.pyo", line 831, in __init__ wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ..\..\src\m sw\window.cpp(574): can't set focus to invalid window without: File "wx\_windows.pyo", line 566, in CreateToolBar wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ..\..\src\msw\control.cpp(162): CreateWindowEx("ToolbarWindow32", flags=52008900, ex=00000000) failed Here is some code that reproduce this error (not exactly the same, but always generate an error on execute): ######test.py: import wx def main(): app = wx.PySimpleApp() wx.InitAllImageHandlers() frame = wx.Frame(None) frame.Centre() frame.Show(True) app.SetTopWindow(frame) app.MainLoop() if __name__ == "__main__": main() ######create_exe.py from distutils.core import setup import py2exe import sys if not 'py2exe' in sys.argv: sys.argv.append('py2exe') options = {"py2exe": {"compressed": 0, "optimize": 2, "packages": ["encodings"], "bundle_files": 2, #comment here and all work } } program = {"script": "test.py", } setup( author= "None", name = "Test", options = options, windows = [program], zipfile = "lib/libraries.zip", #try to change this to None ) Can someone help me? Thanks! System: python 2.3 wx 2.6.2.1 os that generate the exe: win2k os error: 9x, me |