On Dec 5, 2004, at 00:53, Cullen Newsom wrote:
Hello List,
Here is my Error: hello.py: line 1: print: command not found Here is my cat hello.py: <cat hello.py> [EMAIL PROTECTED]:~> cat hello.py #!/usr/bin/python
print "Hello, world!"
[EMAIL PROTECTED]:~> </cat hello.py>
I know this is a Linux question (or SuSE question) as much as a python question, but I do not think there is a more appropriate place to ask this question, and hopefully it will help save someone some time and frustration, especially since a person new to Python might well believe it to be a problem with Python. Anyone know the proper thing to set, or change? Thanks.
Cullen
How are you running your script? Are you doing a basic "python Hello.py", or have you set Hello.py to +x and are you relying on the first line to tell the script where the Python interpreter is?
If it's answer #2, you should try replacing your first line with "#!/usr/bin/env python" , and see what happens.
-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting and sweating as you run through my corridors... How can you challenge a perfect, immortal machine?"
_______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor