[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lojban-beginners] Re: BAD thing w/ Parallel (Was: Now what?)



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