← Back to team overview

sikuli-driver team mailing list archive

[Question #263782]: Help needed for getting xlrd to work

 

New question #263782 on Sikuli:
https://answers.launchpad.net/sikuli/+question/263782

I'm having difficulties to get xlrd to work in Sikuli. Advice needed!

Here are the versions I tried:

- SikuliX 1.0.1
- xlrd 0.9.3 (couldn't get 0.7.1 to work either). The link of xlrd1 on the faq #2208 page is broken, so I couldn't try xlrd1
- Windows 7

Here is my installation:
- download the xlrd package
- unzip it into the folder SikuliX\Lib
- use the following statements in my Sikuli script

dir_xlrd = "D:\\SikuliX\\Lib\\xlrd-0.9.3\\xlrd"
if not dir_xlrd in sys.path: sys.path.append(dir_xlrd)
import xlrd
book = xlrd.open_workbook("D:\\Sikuli\\Excel\\sample.xls"

Note that the xlrd folder contains the __init__.py file.

The script failed on the open_workbook line. The error message is 

[error] AttributeError ( 'module' object has no attribute 'open_workbook' )

Any idea where I did wrong? Thanks!


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.