I'm trying to run Python scripts with a shebang on Ubuntu. When I create a python script
#! /usr/bin/env python
import sys
... and run it I get a shell error:
root@host:/home/user# ./test.py
: No such file or directory
How can I make it work?
Solution: Remove '\r's from line endings with dos2unix.