sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51034
Re: [Question #679301]: Says Jython/Ruby not available, but they are
Question #679301 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679301
Maryjo gave more information on the question:
I get a fatal exception:
C:\SikuliX>java -jar ./sikulix.jar -v
[DEBUG] RunIDE: Running: /C:/SikuliX/sikulix.jar
[DEBUG] RunIDE: AppData: C:\Users\mzy44736.000\AppData\Roaming\Sikulix
[DEBUG] RunIDE: starting
[DEBUG] RunIDE: looking for extension jars in: C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Extensions
[DEBUG] RunIDE: adding extension: C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[234 debug] Sikulix: starting IDE
***** show environment for 1.1.4-SNAPSHOT-#248-2019-03-18_08:41 IDE
user.home: C:\Users\mzy44736.000
user.dir (work dir): C:\SikuliX
user.name: maryjo.skeet
java.io.tmpdir: C:\Users\mzy44736.000\AppData\Local\Temp
running 64Bit(amd64) on Windows (10.0) from a jar
java 8 version 1.8 vm 25.202-b08 class 52.0 arch 64
app data folder: C:\Users\mzy44736.000\AppData\Roaming\Sikulix
executing jar: C:\SikuliX\sikulix.jar
*** classpath dump sikulix
0: file:/C:/SikuliX/sikulix.jar
1: file:/C:/Users/mzy44736.000/AppData/Roaming/Sikulix/Extensions/jython-standalone-2.7.1.jar
*** classpath dump end
***** show environment end
[624 debug] init user preferences
[625 debug] IDE: running with Locale: en_US
[625 debug] --- Sikuli parameters ---
[626 debug] 1: -v
[628 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[637 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[638 debug] IDE: Init ScriptingSupport
[640 debug] ScriptingSupport: initScriptingSupport: enter
[642 debug] IDE: Reading Preferences
[682 debug] Screen: initScreens: starting
[683 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[683 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[684 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[685 debug] Screen: Monitor 0: (0, 0) 1680 x 1050
[686 debug] Screen: Monitor 1: (0, -1050) 1680 x 1050
[686 debug] Screen: Monitor 2: (1680, -1050) 1680 x 1050
[687 debug] Screen: Monitor 3: (1680, 0) 1680 x 1050
[689 debug] Mouse: init start
Exception in thread "main" java.lang.NullPointerException
at org.sikuli.script.Location.getScreen(Location.java:136)
at org.sikuli.script.Mouse.move(Mouse.java:391)
at org.sikuli.script.Mouse.move(Mouse.java:372)
at org.sikuli.script.Mouse.init(Mouse.java:60)
at org.sikuli.script.Screen.initScreens(Screen.java:141)
at org.sikuli.script.Screen.hasPoint(Screen.java:112)
at org.sikuli.script.RunTime.hasPoint(RunTime.java:442)
at org.sikuli.ide.SikuliIDE.initSikuliIDE(SikuliIDE.java:278)
at org.sikuli.ide.SikuliIDE.run(SikuliIDE.java:257)
at org.sikuli.ide.SikulixRunIDE.main(SikulixRunIDE.java:40)
[3318 debug] RunTimeIDE: resourceLocation: (class org.sikuli.script.RunTime) /Lib/sikuli
[3320 debug] RunTimeIDE: resourceList: having jar: jar:file:/C:/SikuliX/sikulix.jar!/Lib/sikuli
[5050 debug] RunTimeIDE: files exported: 7 from: Lib/sikuli to:
C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Lib\sikuli
[5052 debug] JythonSupport: init: starting
[5053 debug] JythonSupport: init: success
[5054 debug] JythonSupport: added as Jython::sys.path[0]:
C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Lib\site-packages
[5056 debug] JythonSupport: ***** Jython sys.path
0: C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Lib\site-packages
1: C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Lib
2: C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Extensions\Lib
3: C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar\Lib
4: __classpath__
5: __pyclasspath__/
[5058 debug] JythonSupport: ***** Jython sys.path end
[5169 debug] Jython: sikuli: Sikuli: starting init
[0 TRACE] Jython: sikuli: Sikuli: backports from Version 2: Do
[6 TRACE] Jython: sikuli: Sikuli: RunTime, Setting, Debug
[15 TRACE] Jython: sikuli: Sikuli: constants
[82 TRACE] Jython: sikuli: Sikuli: import Region
[55 TRACE] Jython: sikuli: Sikuli: import Screen
[13 TRACE] Jython: sikuli: Sikuli: import ScreenUnion
[7 TRACE] Jython: sikuli: Sikuli: import Location, Offset
[14 TRACE] Jython: sikuli: Sikuli: import Finder
[8 TRACE] Jython: sikuli: Sikuli: import TextRecognizer
[10 TRACE] Jython: sikuli: Sikuli: import Match
[9 TRACE] Jython: sikuli: Sikuli: import ImagePath
[6 TRACE] Jython: sikuli: Sikuli: import Pattern
[8 TRACE] Jython: sikuli: Sikuli: import Image
[8 TRACE] Jython: sikuli: Sikuli: Env.addHotkey
[39 TRACE] Jython: sikuli: Sikuli: import App
[10 TRACE] Jython: sikuli: Sikuli: import KeyBoard/Mouse
[69 TRACE] Jython: sikuli: Sikuli: import from compare
[13 TRACE] Jython: sikuli: Sikuli: init SikuliImporter
[34 TRACE] Jython: sikuli: Sikuli: import Sikulix
[10 TRACE] Jython: sikuli: Sikuli: import ScriptingSupport
[16 TRACE] Jython: sikuli: Sikuli: import ADBScreen
[10 TRACE] Jython: requested to use as default region: R[0,0 1680x1050]@S(0)
[1 TRACE] Sikuli: _exposeAllMethods: R[0,0 1680x1050]@S(0) called from: sikuli.Sikuli
[233 TRACE] Jython: after _exposeAllMethods
Exception in thread "Thread-3" org.sikuli.script.SikuliXception: fatal: JythonSupport: JythonScriptRunner: cannot be initialized:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 4, in <module>
from Sikuli import *
File "C:\Users\mzy44736.000\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 677, in <module>
ALL = JScreen.all().getRegion()
at org.sikuli.script.Screen.getValidMonitor(Screen.java:344)
at org.sikuli.script.Screen.getBounds(Screen.java:405)
at org.sikuli.script.ScreenUnion.<init>(ScreenUnion.java:24)
at org.sikuli.script.Screen.all(Screen.java:254)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.NullPointerException: java.lang.NullPointerException
at org.sikuli.script.RunTime.terminate(RunTime.java:72)
at org.sikuli.script.Sikulix.terminate(Sikulix.java:51)
at org.sikuli.util.JythonHelper.terminate(JythonHelper.java:45)
at org.sikuli.scriptrunner.JythonScriptRunner.init(JythonScriptRunner.java:121)
at org.sikuli.scriptrunner.ScriptingSupport$ScriptRunnerInit.run(ScriptingSupport.java:289)
at org.sikuli.scriptrunner.ScriptingSupport$ScriptRunnerInit.run(ScriptingSupport.java:268)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.