Get problem when run Verify App keyword when integrate Sikuli with Robot Framework

Asked by Duy Nguyen

Hi Raiman,

I follow the mykhailo block with integrate sikuli and robot framework with example Calculator test cases. I can run Start App keyword successfully but it get error when running Verify App keyword. Here are the failure message:

17:10:03.717 FAIL UnsatisfiedLinkError: org.sikuli.script.natives.VisionProxyJNI.new_FindInput__SWIG_0()J
17:10:03.717 DEBUG java.lang.UnsatisfiedLinkError:
        at org.sikuli.script.natives.VisionProxyJNI.new_FindInput__SWIG_0(Native Method)
        at org.sikuli.script.natives.FindInput.<init>(FindInput.java:39)
        at org.sikuli.script.Finder.<init>(Finder.java:21)
        at org.sikuli.script.Region.doFind(Region.java:769)
        at org.sikuli.script.Region$RepeatableFind.run(Region.java:1160)
        at org.sikuli.script.Region$Repeatable.repeat(Region.java:1131)
        at org.sikuli.script.Region.exists(Region.java:439)
        at sikuli.Region$py.exists$9(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Region.py:109)
        at sikuli.Region$py.call_function(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Region.py)
        at org.sikuli.script.Region.exists(Region.java:428)
        at sikuli.Region$py.exists$9(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Region.py:109)
        at sikuli.Region$py.call_function(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Region.py)
        at Cal$py.verifyApp$4(Cal.sikuli\Cal.py:21)
        at Cal$py.call_function(Cal.sikuli\Cal.py)
        at robot.jarrunner$py.run$2(/home/jth/work/robot/tags/robotframework-2.5.5/tmp-jar-dir/Lib/robot/jarrunner.py:29)
        at robot.jarrunner$py.call_function(/home/jth/work/robot/tags/robotframework-2.5.5/tmp-jar-dir/Lib/robot/jarrunner.py)
        at org.robotframework.RobotFramework.run(RobotFramework.java:43)
        at org.robotframework.RobotFramework.main(RobotFramework.java:29)

In mykhailo blog, he also mentioned about copy lib folder to temp and I also did this. But the failure still occurred

I used Jython 2.5.2, Python 2.7.2, SikuliX rc2 in win xp RC3

I have searched in mykhailo blog but there is no one have same issue with me. Please help me.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

you should use the latest Sikuli version:
start here http://www.sikuli.org/download.html

read carefully before doing anything !

purge all stuff related to prior Sikuli versions and remove any environment specs (PATH …) that refer to the old stuff.
Before running the new setup it is recommended to restart the system.

Select option 1.

you are referring to this blog-post:
http://blog.mykhailo.com/2011/02/how-to-sikuli-and-robot-framework.html

which is not really uptodate.

ignore everything, that tells you about installing and using Sikuli - for this you should use the current Sikuli docs.
the libs stuff is now handled automatically.

after gavin run setup you should just double-click sikuli-ide.jar. after that you should restart your system just ignoring any errors.
after that everything should work.

when Mike is talking about sikuli-script.jar, you simply use sikuli-ide.jar
from the new version 1.0.1 after having run setup with option 1.
running scripts is now:
java -jar sikuli-ide.jar -r some-sikuli-script.sikuli

recommended Jython version: 2.7-b1

Can you help with this problem?

Provide an answer of your own, or ask Duy Nguyen for more information if necessary.

To post a message you must log in.