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

Asked by Q17

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:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Q17 (squery) said :
#1

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

Revision history for this message
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)

Revision history for this message
Q17 (squery) said :
#3

Thanks RaiMan, that solved my question.