← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #196872]: Script Sikuli in Eclipse - pythonpath problem

 

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

    Status: Answered => Open

j is still having a problem:
Thanks for your reply. 
There is one more thing I hope you can help me with. I really appreciate your patient answers and hope you can help me one last time (hopefully).

I now have my project imported in eclipse, Lib/sikuli is in jython-intallation/Lib/site-packages and appears in the eclipse package manager jython interpreter in System Libs  -> Lib/site-packages as intended. 
sikuli-script.jar is added in project properties -> PYTHONPATH -> External Libraries.

All scripts work right but code completion does not work with the Sikuli
elements.

"from sikuli.Sikuli import *" imports Lib/site-packages/sikuli/Sikuli.py but Eclipse always marks it as "unused wild import".
Sikuli elements like click(), SCREEN, wait() and so on are marked as e.g. "Undefined variable: hover". 
Inside "imports Lib/site-packages/sikuli/Sikuli.py", Eclipse does not display errors but I cannot use code completion, for the Sikuli Java packages. If I type org. and press CTRL+Space, some possibilites are shown, but not sikuli. 

Is this a known problem or did I do something wrong again?
Thanks for your patience with me =)

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