← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #266645]: ImportError in "from org.sikuli.basics import Debug", no module named sikuli

 

Question #266645 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266645

    Status: Open => Answered

RaiMan proposed the following answer:
-- if all .sikuli are in the same folder (which is recommended for beginners.
this is the point.
I supposed, that Batchview_basic is some .sikuli folder (hence a Sikuli script).

you get rid of the error if you take care, that your main script (the
one you are running) and Batchview_basic.sikuli are in the same folder.

otherwise you have to add something like
myScriptPath = "/Users/erich/Desktop/Sikuli-1.1"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
 
supposing that "/Users/erich/Desktop/Sikuli-1.1" is the folder containing  Batchview_basic.sikuli

You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.