Can't get PyDev to recognize sikuli import
I have sikuli setup to work with Eclipse via PyDev, but I've been having difficulty getting Pydev to recognize the 'sikuli' package found in '../sikulixapi.
I was following the instructions from here: https:/
The problem is not with the Jar, as I can succesfully add 'sikulixapi.jar' as an External Library. Additionally, with 'sikulixapi.jar' as an External Library I am able to get code completion working with the line: "from Lib.sikuli import *". Unfortunately this approach breaks the scripts when I try to run them with "ImportError: No module named Lib".
So, to get code completion working I could do the following:
import org.sikuli.
try: from Lib.sikuli import *
except: pass
from sikuli import *
But that's inelegant and hacky.
What's the correct way to get code completion working in Eclipse/PyDev?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: