Hi,
Trying my hand with Python but have had a small hiccup.
Reading  'A byte of Python' and created helloworld.py as directed.

#!/usr/bin/python
# filename : helloworld.py
print 'Hello World'

At the terminal prompt cd to the file location and run from the prompt.

p...@grumpy:~/projects/python$ python helloworld.py
Hello World

All fine.

Then I tried the following as described in the tutorial and get the 
following error

p...@grumpy:~/projects/python$ chmod a+x helloworld.py
p...@grumpy:~/projects/python$ ./helloworld.py
bash: ./helloworld.py: /usr/bin/python^M: bad interpreter: No such file 
or directory

The permissions are: rwxr-xr-x.

Any help appreciated
Phil

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to