On 28/08/11 13:34, Lisi wrote:
On Sunday 28 August 2011 13:01:38 Peter Otten wrote:
Lisi wrote:
Here is the error message:
/usr/local/bin/AddressBook: line 6: syntax error near unexpected token
That's an error message by your shell. You made your script executable, but
forgot to add somethin
Lisi wrote:
For future reference, how would I set about changing the encoding for just one
character or file? I don't really want to change the encoding I use system
wide.
You can set the encoding for the entire source file with an encoding
line like:
# -*- coding: utf-8 -*-
This MUST be
On Sunday 28 August 2011 13:01:38 Peter Otten wrote:
> Lisi wrote:
> > Here is the error message:
> > /usr/local/bin/AddressBook: line 6: syntax error near unexpected token
> > `(' /usr/local/bin/AddressBook: line 6: `name = raw_input("Type the Name
> > - leave blank to finish")'
> >
> > (sorry KMa
> /usr/local/bin/AddressBook: line 6: syntax error near unexpected token `('
> /usr/local/bin/AddressBook: line 6: `name = raw_input("Type the Name - leave
> blank to finish")'
Were you accidentally trying a python 3 tutorial when your machine
only has python 2 installed (or vice versa)?
Alan
Lisi wrote:
> Here is the error message:
> /usr/local/bin/AddressBook: line 6: syntax error near unexpected token `('
> /usr/local/bin/AddressBook: line 6: `name = raw_input("Type the Name -
> leave blank to finish")'
>
> (sorry KMail wrapped it.)
>
> Here is what I typed:
> name = raw_input("Ty
If you copied and pasted the line, it's possible the quote marks are
of the wrong encoding -- try deleting the quote marks and adding them
back.
On Sun, Aug 28, 2011 at 6:34 AM, Lisi wrote:
> Here is the error message:
> /usr/local/bin/AddressBook: line 6: syntax error near unexpected token `('
>
Here is the error message:
/usr/local/bin/AddressBook: line 6: syntax error near unexpected token `('
/usr/local/bin/AddressBook: line 6: `name = raw_input("Type the Name - leave
blank to finish")'
(sorry KMail wrapped it.)
Here is what I typed:
name = raw_input("Type the Name - leave blank to f