newbie script

Alex Martelli aleax at aleax.it
Thu Sep 25 10:03:55 EDT 2003


ataraxia2500 wrote:

> hey Ed,
> I get that weird error when I tried to run the little loop, this is what
> it says:
> 
> sys:1: DeprecationWarning: Non-ASCII character '\xa0' in file myloop.py on
> line 3, but no encoding declared; see http://www.python.org/peps
> pep-0263.html for details
>   File "myloop", line 3
>     os.system('/home/joe/src/myprog/myprog')
>     ^
> SyntaxError: invalid syntax
> 
> does it mean anything to you?

Sure!  You have a weird character, of hex code A0, somewhere on your
line 3.  How it got there, I dunno.  Anyway, what you need to do is
remove it -- a good editor should be able to show you exactly where
it is, otherwise just use a small Python script to find that out.


Alex





More information about the Python-list mailing list