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

Asked by Helen

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:
Last query:
Last reply:
Revision history for this message
Chetan (cshamdas) said :
#1

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

Revision history for this message
RaiMan (raimund-hocke) said :
#2

System? Java?

What did you download?

Revision history for this message
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.

Revision history for this message
Chetan (cshamdas) said :
#4

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

Revision history for this message
Artem Koval (gunmad) said :
#5

Try removing Terminal from Security & Privacy > Privacy and adding it back again. This fixed it for me.