Unable to launch sikuli command from Ansible

Asked by sudha S Chikkaraddi on 2018-10-10

I am trying to launch the sikuli command "java -jar /root/Downloads/sikulix.jar -r /root/samplesikuli.sikuli" through the ansible playbook. the command is taken as the task in the playbook which is run through the command attribute.

The command runs on the remote server when run through the command line.But it fails in the above case

Error:

FAILED! => {"changed": true, "cmd": "java -jar /root/Downloads/sikulix.jar -r /root/samplesikuli.sikuli", "delta": "0:00:17.252117", "end": "2018-10-10 10:43:53.592569", "msg": "non-zero return code", "rc": 1, "start": "2018-10-10 10:43:36.340452", "stderr": "", "stderr_lines": [], "stdout": "[error] script [ /root/samplesikuli.sikuli ] stopped with error in line 3\n[error] FindFailed ( 1539080401202.png: (87x37) in S(0)[0,0 1024x768] E:Y, T:3.0 )", "stdout_lines": ["[error] script [ /root/samplesikuli.sikuli ] stopped with error in line 3", "[error] FindFailed ( 1539080401202.png: (87x37) in S(0)[0,0 1024x768] E:Y, T:3.0 )"]}

I have also tried giving the full path of the images in the .py file.

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-10-10
Last reply:
2018-10-10
RaiMan (raimund-hocke) said : #1

--- [error] FindFailed ( 1539080401202.png: (87x37) in S(0)[0,0 1024x768] E:Y, T:3.0 )"]
... means, that the image is not seen on the primary screen in that moment

Can you help with this problem?

Provide an answer of your own, or ask sudha S Chikkaraddi for more information if necessary.

To post a message you must log in.