From nobody@digitalkingdom.org Thu Apr 19 20:39:29 2007 Received: with ECARTIS (v1.0.0; list lojban-beginners); Thu, 19 Apr 2007 20:39:29 -0700 (PDT) Received: from nobody by chain.digitalkingdom.org with local (Exim 4.63) (envelope-from ) id 1Hejy4-0000J7-Iv for lojban-beginners-real@lojban.org; Thu, 19 Apr 2007 20:39:28 -0700 Received: from smtp.mail.umich.edu ([141.211.14.82] helo=hellskitchen.mr.itd.umich.edu) by chain.digitalkingdom.org with esmtp (Exim 4.63) (envelope-from ) id 1Hejy0-0000Iy-Fw for lojban-beginners@lojban.org; Thu, 19 Apr 2007 20:39:28 -0700 Received: FROM [141.213.221.81] (bursley-221-81.reshall.umich.edu [141.213.221.81]) BY hellskitchen.mr.itd.umich.edu ID 462835AE.2FB72.27789 ; 19 Apr 2007 23:38:22 -0400 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <200704191037.26599.colin.wright@denbridgemarine.com> References: <702226df0704181521s2a4352d7h9109d0c4edbba67e@mail.gmail.com> <200704191037.26599.colin.wright@denbridgemarine.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Alex Martini Subject: [lojban-beginners] Re: BAD thing w/ Parallel (Was: Now what?) Date: Thu, 19 Apr 2007 23:38:19 -0400 To: lojban-beginners@lojban.org X-Spam-Score: -2.6 X-Spam-Score-Int: -25 X-Spam-Bar: -- X-archive-position: 4323 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-beginners-bounce@lojban.org Errors-to: lojban-beginners-bounce@lojban.org X-original-sender: alexjm@umich.edu Precedence: bulk Reply-to: lojban-beginners@lojban.org X-list: lojban-beginners I would check that (a) the file for the pronunciation doesn't have any errors in it and (b) that the code for finding it is right -- as it is a special case in the python version or Parallel. The lessons it assumes are on folders Lojban_### but the pronunciation isn't. If all else fails, you could make pronunciation behave like lesson 0 and take out the special case for when you choose level zero. mu'o mi'e .aleks. On Apr 19, 2007, at 5:37 AM, Colin Wright wrote: > > > On Wednesday 18 April 2007 23:21, Jon "Top Hat" Jones wrote: >> I can fix the problem with playing the sounds easily, the problem I'm >> having that I can't figure out is why it gets a fatal error when >> it tries >> to read in the 'Lojban Pronunciation.txt' file. >> >> That's what this error is all about: >> >> Traceback (most recent call last): >> File "parallel03.py", line 373, in ? >> main() >> File " parallel03.py", line 269, in main >> storage,level=store() >> File "parallel03.py", line 231, in store >> if el[1]=="+": >> IndexError: string index out of range >> >> Anyone with python knowledge help me out? > > Speaking with knowledge only of Python, and not of the program > you're using, > the error that you get is saying that the variable "el", which > appears to be > a string, does not have a character at location 1. Since the > numbering of > sequence objects starts at 0, that means that the contents of the > variable > "el" is of length 0 or 1. > > Hope that helps. > > -- > Dr C.D.Wright, Director of Innovation and Engineering > Denbridge Marine Limited, Cammell Lairds Waterfront Park, > Campbeltown Road, Birkenhead, Wirral, Merseyside, CH41 9HP. > > Tel: +44 (0)151 649 4080 > Fax: +44 (0)870 051 8953 > Mob: +44 (0)7980 57 22 96 > > > > >