← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #189892]: ImportError: No module named sikuli.Sikuli

 

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

    Status: Open => Needs information

RaiMan requested more information:
--- ... when I run my python script.
What does this mean? How are you running your script?

--- from sikuli.Sikuli import *
if it would be found at all, this is sufficient:
from sikuli import *


If you are not using any of the runner methods, that come with Sikuli (e.g. using plain Jython or PyDev in Eclipse)
--- Sikuli-IDE.bat -r  some-name.sikuli
--- Sikuli-IDE-w.bat -r  some-name.sikuli
--- java -jar path-to-sikuli-script.jar some-name.sikuli

you have to set up the Python sys.path accordingly, so it contains
path-to-sikuli-script.jar/Lib

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