Coming from Perl

Richie Hindle richie at entrian.com
Thu Sep 13 09:48:46 EDT 2007


[Amer]
> Can you or anyone see anything in the posted code that might be the 
> cause?

> #!/usr/bin/python
> import cgitb; cgitb.enable(display=0, logdir=".")
> import sys
> sys.stderr = sys.stdout
> print "Content-Type: text/html"
> print

My guess would be that you don't have cgitb in your server environment, or
that you have a bogus one.  Rearrange things like this:

#!/usr/bin/python
print "Content-Type: text/html"
print
import sys
sys.stderr = sys.stdout
import cgitb; cgitb.enable(display=0, logdir=".")

-- 
Richie Hindle
richie at entrian.com



More information about the Python-list mailing list