← Back to team overview

sikuli-driver team mailing list archive

[Question #631108]: .csv excel file reading Error in sikuli

 

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

Hi friend I am new for Sikuli 
I want to read excel file so, i save Excel File in .csv format(CSV Comma delimited) 
and 

my code is

 
import csv
out = open('C:/Users/e592134/Desktop/New folder/example1.csv' , 'rb')
data = csv.reader(out)
    data=[row[1] for row in data]
print(data[0])
print(data[1])
print(data[2])

and I got ERROR as bellow

[error] stopped
[error] an error occurs at line 4
[error] error message;
syntax Error: <"mismatched input '' expecting EOF"", <'C:\\Users\\h224834\\Appdata\\Local\\Temp\\sikuli-tmp158639032712181619.py',4, 4, '  data=[row[1]] for row in data]\n'>>


please help.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.