sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28287
Re: [Question #254612]: sikulix remote server with jython start error:[error] ImagePath: addImagePath: not valid: /
Question #254612 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254612
Description changed to:
i download the latest sikuli 1.1.0 beta4 and setup;
Environment Variables is like this:
JAVA_HOME C:\Program Files (x86)\Java\jdk1.7.0_05
CLASSPATH F:\SikuliX\1.1.0\sikulixapi.jar;.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
JYTHONPATH C:\jython2.5.3\Lib;C:\jython2.5.3\sikulixapi.jar\Lib
while i Integration sikulix with robotframework (Remote Library), when
start Remote Server,I got this error message:
[error] ImagePath: addImagePath: not valid: /
[error] ImagePath: addImagePath: not valid: /
Robot Framework remote server at 127.0.0.1:8270 starting.
but,the robotframework can still connect the server and call this keyword(click_object) remotely sucessfully;
i don't know,why i got this error message?
i start remote server by this command: jython sikuliServer.py
sikuliServer.py source is like this:
import sys
from robotremoteserver import RobotRemoteServer
from org.sikuli.script import *
class SikuliRemoteLibrary:
def __init__(self):
self.SS = Screen()
self.PT = Pattern()
def _wait(self,imgFile,timeOut,similarity):
self.PT = Pattern(imgFile)
self.PT = self.PT.similar(float(similarity))
self.SS.wait(self.PT,float(timeOut))
def click_object(self, imgFile, timeOut, similarity):
try:
self._wait(imgFile, timeOut, similarity)
self.SS.click(imgFile)
except FindFailed, err:
raise AssertionError("Cannot click [" + imgFile + "]")
if __name__ == '__main__':
SRL = SikuliRemoteLibrary()
RobotRemoteServer(SRL, *sys.argv[1:])
how to resolve this error message ? thank you so much
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.