Re: Python script error when using print

2010-04-06 Thread Pierre Quentel
On 6 avr, 20:14, "Albert W. Hopkins" wrote: > On Tue, 2010-04-06 at 08:38 -0700, Robbie wrote: > > Hi all, > > > So, I'm trying to use Python with an apache2 server to create some web > > pages.  The web server is configured and seems to work correctly, but > > only with a certain type of script.

Re: Python script error when using print

2010-04-06 Thread Albert W. Hopkins
On Tue, 2010-04-06 at 08:38 -0700, Robbie wrote: > Hi all, > > So, I'm trying to use Python with an apache2 server to create some web > pages. The web server is configured and seems to work correctly, but > only with a certain type of script. > > For instance, this script works fine > > #!/usr/

Re: Python script error when using print

2010-04-06 Thread superpollo
Robbie ha scritto: Hi all, So, I'm trying to use Python with an apache2 server to create some web pages. The web server is configured and seems to work correctly, but only with a certain type of script. For instance, this script works fine #!/usr/bin/env python def index(): s = "Hello Wor

Python script error when using print

2010-04-06 Thread Robbie
Hi all, So, I'm trying to use Python with an apache2 server to create some web pages. The web server is configured and seems to work correctly, but only with a certain type of script. For instance, this script works fine #!/usr/bin/env python def index(): s = "Hello World" return s But

Re: Script Error

2006-12-22 Thread Pyenos
"Forced_Ambitions" <[EMAIL PROTECTED]> writes: > Guys any suggestions ? > > Could it be because of a MS patch or something as i believe i had some > patching on the windows box i was running this script on. > > > Forced_Ambitions wrote: > > > Hi Guys, > > > > I am facing a problem with a scrip

Re: Script Error

2006-12-22 Thread Justin Ezequiel
ie.Navigate ('URL') ie.SetTextBox(username,'txtUserId',0) not sure but shouldn't you be waiting for navigate to actually finish loading the page before setting fields? see the ie.Busy or ie.readyState properties/methods -- http://mail.python.org/mailman/listinfo/python-list

Re: Script Error

2006-12-21 Thread Forced_Ambitions
Guys any suggestions ? Could it be because of a MS patch or something as i believe i had some patching on the windows box i was running this script on. Forced_Ambitions wrote: > Hi Guys, > > I am facing a problem with a script that i had written to automate > opening a website and signing on to

Script Error

2006-12-18 Thread Forced_Ambitions
Hi Guys, I am facing a problem with a script that i had written to automate opening a website and signing on to it. It was running fine for a long time but all of a sudden it has stopped progressing beyond opening the URL. I ran the code line by line on the pythonwin's IDE and it ran fine but when

Re: cgi script error

2006-01-19 Thread Fredrik Lundh
Ron Griswold wrote: > I'm getting the following error from my web server (httpd on linux): > "malformed header from script. Bad header=: htmllib.cgi > It gives the same complaint if I've got openDocument and/or openHead > uncommented. The script is executing otherwise the error wouldn't show > up

cgi script error

2006-01-19 Thread Ron Griswold
Hi Folks,   I’m getting the following error from my web server (httpd on linux): “malformed header from script. Bad header=: htmllib.cgi   The script I’m running is a Python script as follows:   #!/usr/bin/python   def openDocument( ):     print "";   def openHTML( ):

Re: Premature script error

2005-06-09 Thread Peter Hansen
Jatinder Singh wrote: > I am running a CGI Programme. > which is throwing Premature script error for some inputs. > I have checked and couldn't fig out the problem. > Even error log is empty. > Can anybody help me out of this or can I use try except to catch the Error and &

Premature script error

2005-06-09 Thread Jatinder Singh
I am running a CGI Programme. which is throwing Premature script error for some inputs. I have checked and couldn't fig out the problem. Even error log is empty. Can anybody help me out of this or can I use try except to catch the Error and how? plz get back soon .Its urgent -- Regards, Jat