Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   cgi script (http://www.velocityreviews.com/forums/t693342-cgi-script.html)

golu 08-02-2009 06:11 AM

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

Carl Banks 08-02-2009 07:14 AM

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

Piet van Oostrum 08-02-2009 06:31 PM

Re: cgi script
 
>>>>> golu <bhardwajjayesh7@gmail.com> (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 <piet@cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org


All times are GMT. The time now is 01:12 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.