Internal Server Error

todd_gruben at my-deja.com todd_gruben at my-deja.com
Fri Oct 6 08:59:03 EDT 2000


I am using Apache/1.3.12 and developing a simple
cgi python app. The script simply prints Content-
type: text/plain followed by a couple of line
feeds then I call a method that is actaully
a "swigged" share c library method.  For some
reason the browser returns a Internal server
error and the log file prints the following
message.

[Thu Oct 5 19:49:23 2000][error][client
192.168.0.7] Premature end of script
headers: /home/httpd/cgi-bin/CreateUser.py


The script is this ..
#!/usr/bin/python
import uuid
print "Content-type: text/plain\n\n"
print "Hello\n"
a = uuid.newid()
print a

Note: this script runs fine from the command
line.  I suspenct it is not finding the uuid
module, which is a c program.

Anybody have any ideas?

-Todd


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list