stuck on first example!

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Mon Feb 11 19:32:07 EST 2002


----- Original Message -----
From: "Flavian Hardcastle" <deathtospam43423 at altavista.com>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Monday, February 11, 2002 5:12 PM
Subject: Help: stuck on first example!


> The example at http://www.devshed.com/Server_Side/Python/CGI/page3.html is
> supposed to produce the text in my browser "Hello, Python", but it doesn't
> do a thing.
>
> Instead, using the Xitami personal server, I get the error
>
> >Internal error: your request was unsuccessful
> >Cannot create CGI process - program not found
>
> Here is the text of the example...
>
> #!/usr/bin/python

Change this line to point to your Python interpreter.  Xitami requires an
extra space; using Python 2.2, the line would be:

    #! c:\python22\python.exe

Add a -u at the end for unbuffered output (recommended):

    #! c:\python22\python.exe -u

The rest of your script looks good.






More information about the Python-list mailing list