By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,831 Members | 1,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,831 IT Pros & Developers. It's quick & easy.

My Python error...

P: n/a
Basically I have Mac OS X 10.4.11 and I've got python 2.5.
When I go to TextEdit and type in something like
#!/usr/bin/env python
print 2+2
and save it as
Then I go to terminal and cd my way to the dir that the script source
is in and type:
And the output is:
File "", line 1
SyntaxError: Non-ASCII character '\xfe' in file on
line 1, but no encoding declared; see
for details
What does this mean? And how do I make it work again?
Thanks for reading
Aug 3 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.