Catching stderr output from graphical apps

Bryan Olson fakeaddress at nowhere.org
Wed Aug 10 21:09:21 CEST 2005


gry at ll.mit.edu wrote:
 > Python 2.3.3, Tkinter.__version__'$Revision: 1.177 $'
 >
 > Hmm, the error window pops up with appropriate title, but contains no
 > text.
 > I stuck an unbuffered write to a log file in ErrorPipe.write and got
 > only one line: Traceback (most recent call last):$
 >
 > Any idea what's wrong?

Darn. Are you on Windoze/Mac/Unix/, and what version?

If you can spare the time, could you please try:


     import errorwindow
     import sys

     sys.stderr.write("Hello\nWorld.\n")

     x = 7 + nosuchvariable


and tell me what happens?

Thanks.
--
--Bryan



More information about the Python-list mailing list