Bad Interpreter
Simon John
simoninusa2001 at yahoo.co.uk
Mon Jan 3 16:02:32 EST 2005
RajaSriniva... at hotmail.com wrote:
> 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?
sounds like you've been editting the script on a windows machine, and
it's inserted it's evil linefeeds.
on the unix machine run 'dos2unix sock.py', or load sock.py into vi and
remove the ^M characters
More information about the Python-list
mailing list