Can I use Sikuli as an Jython library in my project?

Posted by Yinan on Stack Overflow See other posts from Stack Overflow or by Yinan
Published on 2010-02-15T01:11:03Z Indexed on 2010/03/13 10:35 UTC
Read the original article Hit count: 358

Filed under:
|

Sikuli is really cool, but it's working in its buildin Jython environment, the Sikuli IDE.

So I m wondering is it possible to import Sikuli as an external library to my Jython library? I saw from Sikuli's website that they have this Python module which provides all Sikuli actions like click and type. Here is the link: http://sikuli.org/documentation.shtml#doc/pythondoc-python.edu.mit.csail.uid.Sikuli.html

I have tried importing the skiuli-script.jar and add the skiuli-script/Lib to the PYTHONPATH. Then in my spike.py script, I try to do this:

import python.edu.mit.csail.uid.Sikuli 

capture() #enter to screen capture mode

then when execute the script, I got this error:

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: /eclipse_3.4.2/workspace/Jython/src/tmplib/libVDictProxy.jnilib:  no suitable image found.  Did find:  /eclipse_3.4.2/workspace/Jython/src/tmplib/libVDictProxy.jnilib: no matching architecture in universal wrapper

I m using Jython 2.2.1 and Mac 10.6.2 (32-bit mode). I have also set to use 32-bit mode first in Java Preference.

© Stack Overflow or respective owner

Related posts about jython

Related posts about sikuli