sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45593
[Bug 1744895] [NEW] [1.1.1] runScript: parameters should be allowed to be everything, not only strings
Public bug reported:
I met below error when try to use sys.argv[] on sikuli IDE 1.1.1
I am try to parse below array to another script in IDE
Settings.DebugLogs=True
pt1=("25","225")
pt2=("25","235")
pt3=("127.5","25")
mylist=(pt1,pt2,pt3)
print mylist
runScript("D:/KT_Work/Sikuli/tempTest.sikuli",mylist)
and "D:/KT_Work/Sikuli/tempTest.sikuli" is as
myList=sys.argv[1]
print sys.argv[1]
but error display as
[error] Error caused by: Traceback (most recent call last): File
"D:\KT_Work\Sikuli\5xx.sikuli\5xx.py", line 24, in <module>
runScript("D:/KT_Work/Sikuli/tempTest.sikuli",pt1) File
"D:\KT_Work\Sikuli1.1.1\NewSikuli\sikulix.jar\Lib\sikuli\Sikuli.py",
line 559, in runScript TypeError: run(): 2nd arg can't be coerced to
String[]
What is the error?
** Affects: sikuli
Importance: High
Assignee: RaiMan (raimund-hocke)
Status: Fix Committed
** Changed in: sikuli
Status: New => Fix Committed
** Changed in: sikuli
Importance: Undecided => High
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 1.1.2
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1744895
Title:
[1.1.1] runScript: parameters should be allowed to be everything, not
only strings
Status in Sikuli:
Fix Committed
Bug description:
I met below error when try to use sys.argv[] on sikuli IDE 1.1.1
I am try to parse below array to another script in IDE
Settings.DebugLogs=True
pt1=("25","225")
pt2=("25","235")
pt3=("127.5","25")
mylist=(pt1,pt2,pt3)
print mylist
runScript("D:/KT_Work/Sikuli/tempTest.sikuli",mylist)
and "D:/KT_Work/Sikuli/tempTest.sikuli" is as
myList=sys.argv[1]
print sys.argv[1]
but error display as
[error] Error caused by: Traceback (most recent call last): File
"D:\KT_Work\Sikuli\5xx.sikuli\5xx.py", line 24, in <module>
runScript("D:/KT_Work/Sikuli/tempTest.sikuli",pt1) File
"D:\KT_Work\Sikuli1.1.1\NewSikuli\sikulix.jar\Lib\sikuli\Sikuli.py",
line 559, in runScript TypeError: run(): 2nd arg can't be coerced to
String[]
What is the error?
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1744895/+subscriptions
Follow ups