← Back to team overview

sikuli-driver team mailing list archive

[Question #224359]: Not able to copy text into an existing excel file using python code in sikuli

 

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

dir_xlrd = "C:\\Program Files\\Sikuli X\\libs\\xlrd1-1.0.0"
if not dir_xlrd in sys.path:sys.path.append(dir_xlrd)
dir_xlwt = "C:\\Program Files\\Sikuli X\\libs\\xlwt-0.7.2\\xlwt-0.7.2"
if not dir_xlwt in sys.path:sys.path.append(dir_xlwt)
dir_xlutils = "C:\\Program Files\\Sikuli X\\libs\\xlutils-1.5.2"
if not dir_xlutils in sys.path:sys.path.append(dir_xlutils)
import xlrd1
import xlwt
import xlutils
rb = xlrd1.open_workbook("D:\\SAMPLE.xls",formatting_info=True)
wb = xlutils.copy(rb)
ws = wb.get_sheet(1)
ws.write(1,4,"I'm only changing cell A1")
wb.save("D:\\SAMPLE.xls")

we are getting error as "No module named copy". Please help

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