Carl Karsten wrote: > Paul McNett wrote: >> Carl Karsten wrote: >>> Paul McNett wrote: >>>> Carl Karsten wrote: >>>>> I ran the app wizard, built an app. >>>>> ran buildwin.bat, built an exe. >>>>> ran the exe, got an error dialog: >>>>> "Errors occurred" "See the logfile "....webtest.exe.log" for details (OK)" >>>> Did the app run or no? >>> It ran. (well, opening form came up and I closed it.) >> Ok, well that's something! :) >> >> >>>>> webtest.exe.log - 2 bytes: 0a0d >>>> CRLF >>>> >>>> Try editing buildwin.bat to take away the --bundle option from the >>>> setup.py call. I had to do that and never researched what the problem >>>> was (wasn't a problem last year). >>> I got 7 of these: >>> >>> --------------------------- >>> webtest.exe - Unable To Locate Component >>> --------------------------- >>> This application has failed to start because MSVCP71.dll was not found. >>> Re-installing the application may fix this problem. >> You need to distibute msvcp71.dll yourself (just grab it from your >> windows/system32 directory if you don't feel the need to get it >> officially from Microsoft). > > found it, put it in system32, no more "Unable To Locate" messages, now back to > > --------------------------- > Errors occurred > --------------------------- > See the logfile > 'C:\DOCUME~1\josh\dabodev\daboide\wizards\APPWIZ~1\webtest\dist\webtest.exe.log' > > for details > > and only crlf in the .log... > > Got an exe that works so I can see if it is my box, or can you try mine? >
OK, a little progress. this worked fine: http://www.py2exe.org/index.cgi/Tutorial so I followed the instructions and started making my own setup.py. I can make an exe from both a appwiz app and my app using the following: # setup.py from distutils.core import setup import py2exe setup(console=['webtest.py'], options={"py2exe": {"packages": ["wx.gizmos", "wx.lib.calendar", "wx.lib.masked"], "optimize": 2, "excludes": ["Tkconstants","Tkinter","tcl", "_imagingtk", "PIL._imagingtk", "ImageTk", "PIL.ImageTk", "FixTk"]}} ) When I run on the box the exe was built on, I see the form pop up, then disappear and this error is on the console: Traceback (most recent call last): File "webtest.py", line 60, in <module> File "dabo\ui\uiwx\dForm.pyo", line 870, in __init__ File "dabo\ui\uiwx\dForm.pyo", line 43, in __init__ File "dabo\ui\uiwx\dFormMixin.pyo", line 73, in __init__ File "dabo\ui\uiwx\dPemMixin.pyo", line 185, in __init__ File "dabo\ui\uiwx\dForm.pyo", line 69, in _afterInit File "dabo\ui\uiwx\dFormMixin.pyo", line 120, in _afterInit File "dabo\ui\uiwx\dPemMixin.pyo", line 299, in _afterInit File "ui\FrmEvents.pyo", line 29, in afterInit File "dabo\biz\dBizobj.pyo", line 37, in __init__ File "dabo\dObject.pyo", line 141, in _initProperties File "biz\Events.pyo", line 11, in initProperties File "dabo\biz\dBizobj.pyo", line 1511, in _setDataSource File "dabo\biz\dBizobj.pyo", line 1488, in _getCurrentCursor File "dabo\biz\dBizobj.pyo", line 146, in createCursor AttributeError: 'Events' object has no attribute 'dbapiCursorClass' If I run on a clean box, I don't even get the form, just: Your wxPython installation was not built correctly. Please make sure that the following required libraries have been built: wx wx.stc wx.lib.foldpanelbar wx.gizmos wx.lib.calendar wx.lib.masked wx.lib.buttons I am going to try to build a setup for something like SimpleFormWithControls.py and then maybe appRecipes. but first I need to eat. If anyone has anything that works, I would like to see a copy of the setup.py. Carl K _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/%(messageid)s
