error when i try using Sikuli in Eclipse

Asked by gil on 2018-10-21

I try to run sikuli from Eclipse i use this guide,
but when i type " from sikuli import * " I always get the same error -

Traceback (most recent call last):
  File "C:\Users\Gil\sikuli-workspace\first-test\src\", line 1, in <module>
    from sikuli import *
  File "C:\MySikulix\Lib\sikuli\", line 4, in <module>
    from Sikuli import *
  File "C:\MySikulix\Lib\sikuli\", line 11, in <module>
    Debug.log(3, "Jython: sikuli: Sikuli: starting init")
TypeError: log(): 1st arg can't be coerced to String

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

Please try with version 1.1.4

For the actual information start here:

I will do my own tests and revise the docs accordingly asap.

for now, the most important things:

- a pointer to sikulixapi.jar must be in the project's library path/classpath

- at script start have these 2 lines:
from org.sikuli.script import SikulixForJython
from sikuli import *

that's all for runtime. The first line creates the <app-data>/Lib folder and puts it on sys.path.

Just make a testrun with a hello-world-script: popup "hello"

After this first run, if successful, you can add a pointer to <app-data>/Lib to your project setup, to get code completion/syntax check in the editor.

Before you try again with new SikuliX stuff or if anything odd happens, it is a good idea, to delete the <app-data>/Lib folder, if it is present.

Can you help with this problem?

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

To post a message you must log in.