shebang strange thing...

Gilles Lenfant glenfant at NOSPAM.bigfoot.com
Fri Jun 20 14:41:14 CEST 2003


"Steve McAllister" <nosp at m.needed> a écrit dans le message de news:
bcus6i$1rl$1 at alto.univ-mlv.fr...
> > $ ./myscript.py
> > error : interpreter not found. (!!!)
>
> Ensure your very first line _is_ exactly the one you _see_ , i.e.
> `#!/usr/bin/python\n', without any additional invisible character;
> trailing `\x00\n', for instance, would make you believe your script
> runs fine but does nothing.
>
> I bet bash nerves shall be soothed if you delete then quietly rewrite
> this line.
>
Many thanks to all

This script is a copy from a FAT32 (windows) partition. Emacs carried on
saving silently this file with DOS like end of lines.
A "dos2unix" fixed this.

--Gilles





More information about the Python-list mailing list