From nobody@digitalkingdom.org Thu Apr 19 21:26:53 2007 Received: with ECARTIS (v1.0.0; list lojban-beginners); Thu, 19 Apr 2007 21:26:53 -0700 (PDT) Received: from nobody by chain.digitalkingdom.org with local (Exim 4.63) (envelope-from ) id 1Hekhw-0001G5-G3 for lojban-beginners-real@lojban.org; Thu, 19 Apr 2007 21:26:52 -0700 Received: from ug-out-1314.google.com ([66.249.92.172]) by chain.digitalkingdom.org with esmtp (Exim 4.63) (envelope-from ) id 1Hekhr-0001Fx-E9 for lojban-beginners@lojban.org; Thu, 19 Apr 2007 21:26:52 -0700 Received: by ug-out-1314.google.com with SMTP id 32so776117ugm for ; Thu, 19 Apr 2007 21:26:45 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BPCXfudQG2d+PaFpSchU0SGcry5Vr4pN9qOnk611ijh9M8zMUmH4qJyzoPB8COoRxbcxzZgQTWq7j3o0Ufq9u9juxLEV7o1cPHH35LeplCeWo77WAuJ0LmXb3gf5a9+ufha70LX+JXPLVD5yj7yLWApaMbC5pf797hkdqQdL0X8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jAcvWD9ITG2OXigZl/uhhwhueZdP8snJbJeF9ocVWNsqYRLpIt9ZnC5S73eeYyL6gmpbLvWpTVT41/nJnUgfVuM40zP+LQCTjwvx8CrZrtaH2DPHtEbj3Xb/iidO+cHRDdiJW6Yzn+TsD+qnBj+whk9uIY9weSh2kLVEHlW9KxM= Received: by 10.82.138.6 with SMTP id l6mr4006679bud.1177043205642; Thu, 19 Apr 2007 21:26:45 -0700 (PDT) Received: by 10.82.105.2 with HTTP; Thu, 19 Apr 2007 21:26:45 -0700 (PDT) Message-ID: <702226df0704192126w188a47adh3bbf877b7b442c11@mail.gmail.com> Date: Thu, 19 Apr 2007 22:26:45 -0600 From: "Jon \"Top Hat\" Jones" To: lojban-beginners@lojban.org Subject: [lojban-beginners] Re: BAD thing w/ Parallel (Was: Now what?) In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27379_30485650.1177043205600" References: <702226df0704181521s2a4352d7h9109d0c4edbba67e@mail.gmail.com> <200704191037.26599.colin.wright@denbridgemarine.com> X-Spam-Score: -2.5 X-Spam-Score-Int: -24 X-Spam-Bar: -- X-archive-position: 4325 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-beginners-bounce@lojban.org Errors-to: lojban-beginners-bounce@lojban.org X-original-sender: eyeonus@gmail.com Precedence: bulk Reply-to: lojban-beginners@lojban.org X-list: lojban-beginners ------=_Part_27379_30485650.1177043205600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline The problem was in the file "Lojban Pronunciation.txt"- it had an empty line at the end, which is what caused the error. Deleting that line fixed the problem. As far as the sounds went, that required me to explicitly state the location of the lojban folder- it all works fine now. .uisai It basically just took me looking at the stuff long enough to figure out a solution. The odd thing is, if python numbers arrays like C does, why the el[1] thing works correctly.... I had done a test, adding the line 'print el[1]' after el was created, and it printed the first character of every line in el. If el[1] points to the second.... On 4/19/07, Alex Martini wrote: > > 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 > > > > > > > > > > > > > > > -- -Jon mu'o mi'e .topy'at. Come to the Dot Side! ------=_Part_27379_30485650.1177043205600 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The problem was in the file "Lojban Pronunciation.txt"- it had an empty line at the end, which is what caused the error. Deleting that line fixed the problem.

As far as the sounds went, that required me to explicitly state the location of the lojban folder- it all works fine now.  .uisai

It basically just took me looking at the stuff long enough to figure out a solution.

The odd thing is, if python numbers arrays like C does, why the el[1] thing works correctly.... I had done a test, adding the line 'print el[1]' after el was created, and it printed the first character of every line in el. If el[1] points to the second....

On 4/19/07, Alex Martini <alexjm@umich.edu> wrote:
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
>
>
>
>
>







--
-Jon

mu'o mi'e .topy'at.

Come to the Dot Side! ------=_Part_27379_30485650.1177043205600--