Can't use xlrd

Asked by Luan on 2019-09-14

I am running on sikuli 1.3 IDE.

When I try:
import xlrd
book = xlrd.open_workbook("C:\\Users\\Luan\\Desktop\\myfile.xlsx")

I get this error message:
[error] script [ teste ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "C:\Users\Luan\AppData\Local\Temp\Sikulix_1163514701\sikuli-3059982452821972468.py", line 2, in <module> book = xlrd.open_workbook("C:\\Users\\Luan\\Desktop\\myfile.xlsx") File "C:\Users\Luan\AppData\Roaming\Sikulix\Lib\xlrd\__init__.py", line 408, in open_workbook bk = xlsx.open_workbook_2007_xml( File "C:\Users\Luan\AppData\Roaming\Sikulix\Lib\xlrd\xlsx.py", line 791, in open_workbook_2007_xml x12sheet.process_stream(zflo, heading) File "C:\Users\Luan\AppData\Roaming\Sikulix\Lib\xlrd\xlsx.py", line 528, in own_process_stream self_do_row(elem) File "C:\Users\Luan\AppData\Roaming\Sikulix\Lib\xlrd\xlsx.py", line 722, in do_row assert tvalue is not None AssertionError

Any idea on how to solve this?
for e in sys.path: print e returns

C:\Users\Luan\Desktop\teste.sikuli
C:\Users\Luan\AppData\Roaming\Sikulix\Lib
C:\Users\Luan\Downloads\New folder\Lib
C:\Users\Luan\Downloads\New folder\sikulix.jar\Lib
__classpath__
__pyclasspath__/

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Luan
Solved:
2019-09-16
Last query:
2019-09-16
Last reply:
Luan (luancvieira) said : #1

Issue solved.