Unicode error with excel

Asked by vinod kulkarni

I am using sikuli version, SikuliX -1.0rc3(r905) , when i try to open an excel file, get the below errors:

[error] Stopped
[error] Error message: UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 29-31: truncated \xXX

Script used was:-

dir_xlrd = "C:\Program Files\Sikuli X\lib\xlrd"
if not dir_xlrd in sys.path: sys.path.append(dir_xlrd)
import xlrd

book = xlrd.open_workbook(r"D:\vinod\abc.xls")

Please advise

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

try this: put the xlrd folder in a folder that does not contain blanks in the path

Can you help with this problem?

Provide an answer of your own, or ask vinod kulkarni for more information if necessary.

To post a message you must log in.