sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32239
[Question #266601]: [1.1.+] Package org.sikuli.script.Screen is not Callable
New question #266601 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266601
After running next on Mac OS 10.10.3 error appeared:
Can this be solved?
Thanks
import sys
from jpype import *
def startJVM1():
JVM = getDefaultJVMPath()
startJVM(JVM, '-ea',"-Djava.class.path=sikulixapi.jar")
java.lang.System.setProperty("java.awt.headless", "true");
sikuli = JPackage("org.sikuli.script")
login_window=sikuli.Pattern("edf_icon.png")
window = sikuli.Screen()
window.click(login_window)
shutdownJVM()
if __name__ == "__main__":
startJVM1()
[error] Can't initialize global Robot for Mouse: headless environment
[error] ***** Terminating SikuliX after a fatal error 999 *****
It makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.
Traceback (most recent call last):
File "/Users/Rita/Desktop/work/automation/sikuli/sikuli_test.py", line 16, in <module>
startJVM1()
File "/Users/Rita/Desktop/work/automation/sikuli/sikuli_test.py", line 11, in startJVM1
window = sikuli.Screen()
File "/Library/Python/2.7/site-packages/JPype1-0.6.0-py2.7-macosx-10.10-intel.egg/jpype/_jpackage.py", line 55, in __call__
raise TypeError("Package {0} is not Callable".format(self.__name))
TypeError: Package org.sikuli.script.Screen is not Callable
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.