Bad Interpreter

Craig Ringer craig at
Mon Jan 3 15:45:36 EST 2005

On Mon, 2005-01-03 at 12:24 -0800, RajaSrinivasan at 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 runs if i say something like :
> python
> but ./ 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