new to sikuli mac 2.0.5 NameError: name 'click' is not defined

Asked by Helen on 2021-03-14

from sikuli import *
click("1615750520752.png")
click("1615750535549.png")
click("1615750545910.png")

I'm literally just doing a test and I have received the following error

NameError: name 'click' is not defined

I'm assuming I am suppose to add some imports, and I added
from sikuli import *

This doesn't seems helping?

Can someone advice what do I need to get helloworld like program working?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Helen
Solved:
2021-03-15
Last query:
2021-03-15
Last reply:
2021-03-15
Chetan (cshamdas) said : #1

is this with 2.0.5 only?how about 2.0.4 on your machine?

RaiMan (raimund-hocke) said : #2

System? Java?

What did you download?

Helen (wish2hate) said : #3

i have this problem resolved... it is actually interesting, scripts must be in the same directory as the sikuli jar?

System is mac OS. I downloaded the sikuli IDE.

Chetan (cshamdas) said : #4

i do not think it should be in the same directory. we can save it anywhere