where should I look for sys.stderr output?

Steve Canfield stevecanfield at yahoo.com
Mon May 12 20:52:25 EDT 2003


Gerhard Häring <gh at ghaering.de> wrote in message news:<slrnbbveob.15s.gh at haering.opus-gmbh.net>...
> Steve Canfield <stevecanfield at yahoo.com> wrote:
> > Okay- this probably seems like a really dumb question, but I've been
> > stuck on it for a little while now...
> > 
> > I have a MoinMoin wiki that I've been playing with. Somehow, I broke
> > the attach file function. When I click on the "Attach File" link, I
> > get a SyntaxError: invalid syntax page. The offending line is:
> >  text = ' print >>sys.stderr, "save_drawing: tainted path \'%s\',
> > aborting!" % filename\012'
> > 
> > How do I figure out where sys.stderr messages end up? This is running
> > on a RedHat 7.3 machine.
> 
> In the log file of your web server?
> 
> /var/log/apache/error.log or some such.

I never did find where the stderr is being written to, but I did find
my problem. My /usr/bin/python was version 1.52 and the MoinMoin
package was expecting version 2.2. I changed this and the MoinMoin
stuff works fine now, but a bunch of the Python system administration
stuff tools are broken now. :(

I'm leaving it as is for now because I don't feel like figuring out
which version of python each script needs.




More information about the Python-list mailing list