CGI and logging module
peter at monicol.co.uk
Fri Nov 19 12:10:25 CET 2004
This was a Columbus Egg. The version of Python Apache used had reverted to
2.2.2 after a recent system failure. The version used for console logins was
2.3.4. I'll contact my ISP :-). Thanks for all the help.
"Peter Mott" <peter at monicol.co.uk> wrote in message
news:419d0a70$0$221$bed64819 at news.gradwell.net...
>I am using:
> Python 2.3.4 (#2, Nov 14 2004, 18:06:48)
> [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
> with Apache/1.3.26. The following script causes an Internal Server Error
> (with nothing in the Apache error logs AFAIK):
> import logging
> print "Content-type: text/html\n\n"
> print "<html><head><title></title></head><body><h1>OK</h1>"""
> print "</body></html>"
> The same script with the import statement commented out works as expected.
> Has anyone encountered this? I have googled without success.
More information about the Python-list