Go Back   Velocity Reviews > Newsgroups > Python
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Python - cgi script

 
Thread Tools Search this Thread
Old 08-02-2009, 07:11 AM   #1
Default cgi script


Hi,
i started learning cgi few days ago in python and everything went
fine until i started getting the follwing error
"
The server encountered an internal error and was unable to complete
your request. Either the server is overloaded or there was an error in
a CGI script.

If you think this is a server error, please contact the webmaster. "
i am using apache on xampp. plz help


golu
  Reply With Quote
Old 08-02-2009, 08:14 AM   #2
Carl Banks
 
Posts: n/a
Default Re: cgi script
On Aug 1, 11:11*pm, golu <bhardwajjaye...@gmail.com> wrote:
> Hi,
> i started learning cgi few days ago in python and everything went
> fine *until i started getting the follwing error
> "
> The server encountered an internal error and was unable to complete
> your request. Either the server is overloaded or there was an error in
> a CGI script.



Your script has a syntax error. (You forgot a colon or something like
that.)

If you can, try to run the file directly from a Python interpreter to
see where the error is.


Carl Banks


Carl Banks
  Reply With Quote
Old 08-02-2009, 07:31 PM   #3
Piet van Oostrum
 
Posts: n/a
Default Re: cgi script
>>>>> golu <> (g) wrote:

>g> Hi,
>g> i started learning cgi few days ago in python and everything went
>g> fine until i started getting the follwing error
>g> "
>g> The server encountered an internal error and was unable to complete
>g> your request. Either the server is overloaded or there was an error in
>g> a CGI script.


>g> If you think this is a server error, please contact the webmaster. "
>g> i am using apache on xampp. plz help


Putting the following in your script might help as it will show the
exception trace in your browser (if it gets that far, that is).


import cgitb
cgitb.enable()

--
Piet van Oostrum <>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email:


Piet van Oostrum
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
script error chgontve Software 0 07-07-2009 11:56 PM
perl expect script for telnet vinayaka gv General Help Related Topics 0 10-11-2007 01:07 PM
help with master page and java script alain23 Software 0 09-20-2007 06:02 AM
asp.net - Client side script not recognized for the usercontrol sara_23apr Software 1 09-27-2006 06:10 PM
scarface poster made out of entire script JimRibs@gmail.com DVD Video 0 11-13-2005 09:20 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46