sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21912
Re: [Question #237747]: Undefined variable Eclipse
Question #237747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/237747
Status: Open => Answered
RaiMan proposed the following answer:
--- with version 1.0.1+ ...
... it is no longer recommended, to move Sikuli stuff around.
[error] Sikuli Jython API already on sys.path, but not from sikuli-basics.jar
[error] Found here: C:\jython2.5.2\Lib\site-packages\sikuli\Sikuli.py
hence you should remove that from here:
Found here: C:\jython2.5.2\Lib\site-packages\sikuli\Sikuli.py
--- at next take care, that in your project settings you have this in your path settings:
sikuli-setup-folder/sikuli-java.jar
sikuli-setup-folder/libs/Lib (if it does not exist, create it if necessary)
now in sikuli setup folder delete the libs folder, so it gets recreated
later.
--- at next simply run this once:
import org.sikuli.basics.SikuliXforJython
from sikuli import*
(you might simply put an exit() behind in your active script)
At this time you should ignore Eclipse complaining about the variables.
this should work without errors and sets up everything.
--- It might be necessary, to at least close and reopen the project or
even Eclipse
--- from now on everything should work as expected.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.