newbie script
ataraxia2500
messageboardfan1 at yahoo.com
Thu Sep 25 10:30:18 EDT 2003
<posted & mailed>
Alex Martelli wrote:
> 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
this is my line 3: os.system('/home/joe/src/myprog/myprog')
I even tried os.system('ls /') as line 3 and I still sot the same ascii
error;
More information about the Python-list
mailing list