On 21/08/2011 4:30 AM, Kevin Walzer wrote:
Hi Matteo,
Thanks for the suggestions. I have integrated the win32trace module into
my frozen app. Here is my final code:
...

This appears to be related to the bug logged at
http://bugs.python.org/issue3905. My app makes use of subprocess to
obtain various bits of data that it then parses and displays in its UI.
For what it’s worth, injecting the trace module into my frozen app
causes no output to appear at all in the app itself, and returns the
error above; the trace module seems to trigger the suprocess bug.

Yeah, but as mentioned in that bug, the issue is to do with your app being a "gui" app rather than a console one - you can probably reproduce the same problem wothout py2exe using pythonw.exe instead of python.exe.

Fortunately, it sounds like you can just use subprocess.PIPE and still get at the output.


However, it seems to have no bearing at all on the failure of VBScript
to create a COM object from my application, and the debugging output
logged to my stdout/stderr file did not yield any insight on that.
I investigated whether running the mainloop() in the app might interfere
with the application receiving the COM request from the Windows Script
Host, but commenting out the mainloop only caused the app to crash
(since Tkinter apps require a mainloop to run).
The bottom line of all this investigation is that I am no closer to
understanding why my Tkinter app does not respond to the CreateObject
request from VBS. It appears that those requests simply disappear into a
black hole. It also appears that integrating a GUI toolkit with its own
event loop in Python may not be very practical with a COM server (see
http://trac.wxwidgets.org/ticket/12105 for some other issues with
wxPython and COM). Unfortunately, this means my best option is probably
to move ahead without COM support.

Sadly the Tkinter main loop doesn't play well with many things.

Mark
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to