calling sikuli from python module

Asked by ananth

hai ,

      i am trying to import sikuli in python module like from sikuli.Sikuli import * ,but i do get an error like below

can you let me know how to fix this

C:\robot\libs>python
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from sikuli.Sikuli import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\sikuli\__init__.py", line 1, in <module>
    from sikuli import *
  File "C:\Python27\lib\site-packages\sikuli\sikuli.py", line 15, in <module>
    from jnius import autoclass
  File "C:\Python27\lib\site-packages\jnius\__init__.py", line 12, in <module>
    from .jnius import *
ImportError: DLL load failed: %1 is not a valid Win32 application.
>>>

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

Sikuli cannot be used with Python.

It is a Java based application and only works with a Jython interpreter, which is bundled with the packages, that are used to start the Sikuli IDE.

Can you help with this problem?

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

To post a message you must log in.