Yet Another Python Web Programming Question

Sells, Fred fred at adventistcare.org
Tue Jul 12 09:53:28 EDT 2005


FWIW there's  "dos2unix" program that fixes this on most systems.

-----Original Message-----
From: Bill Mill [mailto:bill.mill at gmail.com]
Sent: Monday, July 11, 2005 11:55 AM
To: Daniel Bickett
Cc: python-list at python.org
Subject: Re: Yet Another Python Web Programming Question


> Python using CGI, for example, was enough for him until he started
> getting 500 errors that he wasn't sure how to fix.

A common error is that python cgi files need line endings to be in
unix text file format, not windows text file format (\n instead of
\r\n) [1]. Why this is, I don't know, but it causes a lot of errors
for windows folks. I'm a frequent linux/windows switcher, and it's
caused me no end of troubles - if you're getting "premature end of
script headers" in your apache error logs, this may be your problem.

Peace
Bill Mill
bill.mill at gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list

---------------------------------------------------------------------------
The information contained in this message may be privileged and / or
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender
immediately by replying to this message and deleting the material from any
computer.
---------------------------------------------------------------------------



More information about the Python-list mailing list