From: Mick O'D. <mic...@am...> - 2010-07-07 15:56:30
|
Hi, We have an issue with an application - it works fine from the command line, and in general works fine when built into an exe with py2exe, until we try to quit the application. At that point it hangs and has to be killed via the task manager. It provides a message that seems to imply that the WX app is receiving a message before it has been created/after it has been killed: wx._core.PyNoAppError: The wx.App object must be created first! Traceback (most recent call last): File "wx\lib\buttons.pyc", line 274, in OnPaint File "wx\_gdi.pyc", line 4804, in __init__ By (painful...) process of elimination we are able to determine the single line in our app which causes the issue - it is: from nevow import appserver Even with no calls or use of the appserver (i.e. with simply this one line above added) the quit problem exists. Just to emphasize, this works fine with no error messages (and no unusual debug logs etc) when run from the command line. We had seen something similar with the MySQLDB library and with some probing that time were able to see that the deprecated 'sets' module which it used seemed to be causing the issue. In that case we were able to use a later version which did not use sets and the problem went away. In this case there is no later version of Nevow and we are reluctant to start messing around with it's internal code. Is anyone else aware of this issue and are there any existing workarounds that we might use? Thanks in advance! Mick |