sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47920
[Question #671341]: PyCharm is highlighting code in red while I'm trying to use sikulixapi.jar to write Jython scripts
New question #671341 on Sikuli:
https://answers.launchpad.net/sikuli/+question/671341
Hello! I'm trying to set up Sikuli for Jython autotests writing in PyCharm.
Some basic scripts are working for now, but there is some unexpected behavior of PyCharm.
What I've done before:
1) installed PyCharm
2) installed Jython (and set it as an interperter in PyCharm)
3) downloaded sikulixapi.jar
4) created project with .py file within (in this .py file's configuration I've created "CLASSPATH" environment variable with sikulixapi.jar filepath as a value)
.py script looks like this:
import org.sikuli.script.SikulixForJython
from sikuli import *
click ("button.jpg")
unexpected behavior:
1) PyCharm doesn't give autocomplete advices, like when I've wrote "e" -> "exists". Does it really should be so?
2) PyCharm highlights some parts of code in red with given suggestions (but why?):
"import org.sikuli.script.SikulixForJython" -> no module named "org"
"from sikuli import *" -> unresolved reference "sikuli"
"click ("button.jpg")" -> unresolved reference "click"
my environment:
Mac OS Sierra
jython 2.7.1
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.