Sikuli Xlrd - IndexError ( index out of range: 1)

Asked by Jp17 on 2017-07-06

Hi,

I have a xls spreadsheet and I have some data under column 1 and 2. The first two line of script worked but there is an error message saying: [error] IndexError ( index out of range: 1 )

var1 = first_sheet.cell_value(0,0) #works
var2 = first_sheet.cell_value(0,1) # works
var3 = first_sheet.cell(1,0).value #error

Can someone please tell me why is showing this error?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2017-07-07
Last query:
2017-07-07
Last reply:
2017-07-06
Jp17 (jlin17) said : #1

Just to add I want to read other values from cell under column 1 and 2.

Best RaiMan (raimund-hocke) said : #2

pls. consult the docs.

without having looked there, I guess just logically:

var3 = first_sheet.cell_value(1, 0)

Jp17 (jlin17) said : #3

Thanks RaiMan, that solved my question.