Python problems between Linux and Windows

If you get:

No such file or directory

when running a valid Python script under Linux, you may have bad line endings. It's not Python's fault, because BASH (or whatever shell you use) can't understand the command "Python^M".

An explanation and fix available here.


Written by Andrew Ittner in misc on Sat 28 August 2004. Tags: python