Re: [Tutor] Can't find error :-(

2011-08-28 Thread Alan Gauld
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

Re: [Tutor] Can't find error :-(

2011-08-28 Thread Steven D'Aprano
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

Re: [Tutor] Can't find error :-(

2011-08-28 Thread Lisi
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

Re: [Tutor] Can't find error :-(

2011-08-28 Thread R. Alan Monroe
> /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

Re: [Tutor] Can't find error :-(

2011-08-28 Thread Peter Otten
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

Re: [Tutor] Can't find error :-(

2011-08-28 Thread James Thornton
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 `(' >

[Tutor] Can't find error :-(

2011-08-28 Thread Lisi
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