In the book Raspberry Pi User Guide which is where I've learned my initial Python from, it gave directions on making the hello world script executable, so that it could be run using
This did indeed work. However, when I tried that on my own script (which is a bit more than a simple print - it has imports, creates an object that it dels at the end, and calls functions in that object), trying to execute it after marking it as executable with chmod gives:
: No such file or directory
What have I done wrong or overlooked? The imports are only to sys, time and one file in the same directory.
(It does include
at the start.)