Re: strange python scripting error

2009-07-25 Thread Dave Angel
Dennis Lee Bieber wrote: On Sat, 25 Jul 2009 07:18:58 -0400, Dave Angel declaimed the following in gmane.comp.python.general: Another thing I'd point out is that some ftp programs will do this conversion as the file is being sent between a local DOS machine and a Unix machine on the inte

Re: strange python scripting error

2009-07-25 Thread Dave Angel
Mark Tarver wrote: Use dos2unix for conversion of the longer file and try again: http://linux.about.com/od/commands/l/blcmdl1_dos2uni.htm-Hide quoted text - - Show quoted text - That sounds the ticket - but is there anything that runs under Windows to do the trick? M

Re: strange python scripting error

2009-07-25 Thread Mark Tarver
On 25 July, 10:30, Mark Tarver wrote: > On 24 July, 15:45, nn wrote: > > > > > > > On Jul 23, 7:03 pm, Dave Angel wrote: > > > > Mark Tarver wrote: > > > > I have a very strange error.  I have two test python files test.py and > > > > python.py which contain the following code > > > > > #!/usr/b

Re: strange python scripting error

2009-07-25 Thread Mark Tarver
On 24 July, 15:45, nn wrote: > On Jul 23, 7:03 pm, Dave Angel wrote: > > > > > > > Mark Tarver wrote: > > > I have a very strange error.  I have two test python files test.py and > > > python.py which contain the following code > > > > #!/usr/bin/python > > > print "Content-type: text/html" > > >

Re: strange python scripting error

2009-07-24 Thread nn
On Jul 23, 7:03 pm, Dave Angel wrote: > Mark Tarver wrote: > > I have a very strange error.  I have two test python files test.py and > > python.py which contain the following code > > > #!/usr/bin/python > > print "Content-type: text/html" > > print > > print "" > > print "Hello, Linux.com!" > >

Re: strange python scripting error

2009-07-23 Thread Dave Angel
Mark Tarver wrote: I have a very strange error. I have two test python files test.py and python.py which contain the following code #!/usr/bin/python print "Content-type: text/html" print print "" print "Hello, Linux.com!" print "" One file (test.py) works; you call it up and it shows a web pa

Re: strange python scripting error

2009-07-23 Thread Peter Otten
Mark Tarver wrote: > On 23 July, 18:01, Dennis Lee Bieber wrote: >> On Thu, 23 Jul 2009 08:48:46 -0700 (PDT), Mark Tarver >> declaimed the following in >> gmane.comp.python.general: >> >> > The only hint at a difference I can see is that my ftp program says >> > the files are of unequal lengths.

Re: strange python scripting error

2009-07-23 Thread Mark Tarver
On 23 July, 18:01, Dennis Lee Bieber wrote: > On Thu, 23 Jul 2009 08:48:46 -0700 (PDT), Mark Tarver > declaimed the following in > gmane.comp.python.general: > > > The only hint at a difference I can see is that my ftp program says > > the files are of unequal lengths.  test.py is 129 bytes long.

Re: strange python scripting error

2009-07-23 Thread Mark Tarver
On 23 July, 18:01, Dennis Lee Bieber wrote: > On Thu, 23 Jul 2009 08:48:46 -0700 (PDT), Mark Tarver > declaimed the following in > gmane.comp.python.general: > > > I have a very strange error.  I have two test python files test.py and > > python.py which contain the following code > >         >

Re: strange python scripting error

2009-07-23 Thread Peter Otten
Diez B. Roggisch wrote: > Mark Tarver wrote: > >> I have a very strange error. I have two test python files test.py and >> python.py which contain the following code >> >> #!/usr/bin/python >> print "Content-type: text/html" >> print >> print "" >> print "Hello, Linux.com!" >> print "" >> >> O

Re: strange python scripting error

2009-07-23 Thread Richard Brodie
"Diez B. Roggisch" wrote in message news:7crfjof29e4g...@mid.uni-berlin.de... > They have different line-ending-conventions. Not sure if and why that makes > a difference. Depends on your setup. Shells can be a bit dumb about it, so it will likely break simple cgi-style hosting. -bash: ./pyth

Re: strange python scripting error

2009-07-23 Thread Diez B. Roggisch
Mark Tarver wrote: > I have a very strange error. I have two test python files test.py and > python.py which contain the following code > > #!/usr/bin/python > print "Content-type: text/html" > print > print "" > print "Hello, Linux.com!" > print "" > > One file (test.py) works; you call it up

strange python scripting error

2009-07-23 Thread Mark Tarver
I have a very strange error. I have two test python files test.py and python.py which contain the following code #!/usr/bin/python print "Content-type: text/html" print print "" print "Hello, Linux.com!" print "" One file (test.py) works; you call it up and it shows a web page with Hello, Linux