[Tutor] /usr/bin/env problem
Neil Schemenauer
nas@python.ca
Fri Jun 6 17:11:09 2003
Neil Hodge wrote:
> I have two python scripts in the same directory, with the same
> permissions, both with the standard line:
>
> #!/usr/bin/env python
>
> at the top. One runs, one doesn't. One bombs with the error:
>
> /usr/bin/env: No such file or directory
My only theory is that there are "weird" characters in the first one
(e.g. a DOS line ending). You could check by running:
$ head -1 script.py | od -c
Try deleting the line and adding it back by hand. HTH,
Neil