FAQ  •  Register  •  Login

IndexError: list index out of range (*solved*)

<<

oblo

Posts: 58

Joined: Tue Jul 12, 2011 5:23 pm

Post Fri Aug 05, 2011 10:34 pm

IndexError: list index out of range (*solved*)

Hi all

I'm trying to compile a piece of code but I get the following output:

zxb.exe my_program.bor --org=27000 --heap-size=1024 -t -B -
Traceback (most recent call last):
File "zxb.py", line 312, in <module>
File "zxb.py", line 246, in main
File "zxbtrad.pyc", line 316, in traverse
File "zxbtrad.pyc", line 1035, in traverse
File "zxbtrad.pyc", line 316, in traverse
File "zxbtrad.pyc", line 1040, in traverse
File "zxbtrad.pyc", line 316, in traverse
File "zxbtrad.pyc", line 1035, in traverse
File "zxbtrad.pyc", line 316, in traverse
File "zxbtrad.pyc", line 1035, in traverse
File "zxbtrad.pyc", line 316, in traverse
File "zxbtrad.pyc", line 1035, in traverse
IndexError: list index out of range

What does it means? I'm using 1.2.8s715 version

Cheers
<<

boriel

Site Admin

Posts: 1147

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Aug 05, 2011 11:12 pm

Re: IndexError: list index out of range

This looks like a compiler bug. :!: Please send my your code by email, to test it.
<<

oblo

Posts: 58

Joined: Tue Jul 12, 2011 5:23 pm

Post Sat Aug 06, 2011 5:29 am

Re: IndexError: list index out of range

Sent. I'm re-checking the code with the last part I added; maybe I'll find something.

Cheers
<<

LCD

Posts: 507

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Sat Aug 06, 2011 12:11 pm

Re: IndexError: list index out of range

"Traceback (most recent call last)" can be probably caused by trying to write file to the output directory which is write protected by the system (Like C: on Windows 7).
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

oblo

Posts: 58

Joined: Tue Jul 12, 2011 5:23 pm

Post Sat Aug 06, 2011 5:06 pm

Re: IndexError: list index out of range

That's the error that BorIDE gaves me but the directory is the same as always (not C:, of course) so I thought that couldn't be the problem. Then, I tried to compiled directly from command line... and that's what I found.

Cheers
<<

boriel

Site Admin

Posts: 1147

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Aug 06, 2011 10:19 pm

Re: IndexError: list index out of range

Confirmed: It was a bug (now fixed). Please, download version 1.2.8s718 here:
http://www.boriel.com/wiki/en/index.php ... IC:Archive :roll:
<<

oblo

Posts: 58

Joined: Tue Jul 12, 2011 5:23 pm

Post Sun Aug 07, 2011 9:15 am

Re: IndexError: list index out of range (*solved*)

Glad to ear it :) Downloading...

Cheers

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO