import issue

Asked by Anil Daki

Hi , I am new to Sikuli, I am getting below error while executing. I kept both scripts in same folder. Please help me out

# script1.sikuli
# a script to be imported
from sikuli import *
popup("Hello, I am script1")

# main.sikuli
popup("Hello, I am the main script")
import script1.sikuli

============
[error] script [ *main ] stopped with error in line 8
[error] NameError ( !!WHILE IMPORTING!! name 'click' is not defined )
=========

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Are you running them from command line or IDE?

Revision history for this message
Anil Daki (ani-daki) said :
#2

Yes,, I tried both ways. Its giving same error.

Revision history for this message
Eugene S (shragovich) said :
#3

As far as I know, the files themselves must be *.py files and not *.sikuli. Would you try that?

Revision history for this message
Anil Daki (ani-daki) said :
#4

Yes.. I tried .py option too.. But no luck.. Its throwing the same error. I am using 1.0.1 version of SIKULI.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.