[Tutor] /usr/bin/env problem
Lloyd Kvam
pythontutor@venix.com
Tue Jun 3 19:22:02 2003
If you move files between unix and windows the line marks could be mangled.
I suspect that your problem file has cr/lf (\r\n) characters marking the
lines. Change the lines to end with lf (\n) only and you should be OK.
Neil Hodge wrote:
> All:
>
> 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
>
> In addition, running:
>
> /usr/bin/env python
>
> at the command line works fine. Anyone else run into this? Thanks.
>
> Neil
>
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358
voice: 603-443-6155
fax: 801-459-9582