sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30297
Re: [Question #135380]: Error when running sikuli with jython under Eclipse
Question #135380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/135380
Ulf Tidstrand posted a new comment:
I had similar issues with the error markers.
After some investigation it seems like PyDev sometimes has problems
importing code completion information since it only does static analysis
of the imported modules. It seems like the Sikuli module does a lot of
importing dynamically which works fine during runtime, but not
statically in Eclipse/PyDev.
This is what I did to make it work:
1) Select Window --> Preferences --> PyDev --> Interpreters --> Jython Interpreter
2) In tab "Libraries": Add sikuli-java.jar ("New Jar/Zips")
3) In tab "Libraries": Add the Lib source folder unzipped from sikuli-java.jar (containing the Sikuli python source code).
4) In tab "Forced Builtins" - add the string "sikuli.Sikuli" and then click "apply"
5) Close all source code windows and reopen them to reload code completion information (alternatively right click on project and select PyDev --> Remove Error Markers)
Item 4 is the one that actually does the trick. Item 2 and 3 are only
prerequisites for item 4.
More general information about this issue is available here:
http://pydev.org/manual_101_interpreter.html
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.