sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40610
[Question #403675]: Using ConfigParser with Sikuli error
New question #403675 on Sikuli:
https://answers.launchpad.net/sikuli/+question/403675
This is my code
import ConfigParser
config = ConfigParser.ConfigParser()
config.readfp('C:\\Users\\ffi1\\Desktop\\cony.ini')
username1 = config.get('user1','username')
username2 = config.get('user2','username')
and this is the confi.ini file
[user1]
username=Guido Van Rossum
ip = 192.168.0.1
machineName=Guido's Machine
system = Ubuntu
[user2]
username = Bob Marley
ip = 192.168.0.1
machineName= Bob's Machine
system = windows 7
I keep on getting this error
Traceback --- error source first line: module ( function ) statement 286: ConfigParser ( readfp ) File "C:\Users\ffi1\Downloads\sikuli\sikulix.jar\Lib\ConfigParser.py", line 430, in _read
and I don't know what it means or how to fix it. Any help is appreciated. Thank you!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.