Bad Interpreter
Craig Ringer
craig at postnewspapers.com.au
Mon Jan 3 15:45:36 EST 2005
On Mon, 2005-01-03 at 12:24 -0800, RajaSrinivasan at hotmail.com wrote:
> I have seen some previous messages about such a problem. I have this
> problem but it is not clear what the solution really was.
>
> I am running FC2, python 2.3.3
>
> the script i have sock.py runs if i say something like :
>
> python sock.py
>
> but ./sock.py results in a :bad interpreter error
> how do i troubleshoot something like this?
You probably have Windows-style line endings in the file. The kernel
sees the ^M at the end of the line and gets all confused.
--
Craig Ringer
More information about the Python-list
mailing list