sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35786
Re: [Question #274811]: screen/graphics issue when running from terminal
Question #274811 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/274811
Status: Open => Solved
Laimis confirmed that the question is solved:
The root cause was the issue running the script from root user. You
should do it from normal user. There is good output now and I can see
mouse movement!
mac:Sikulix apple$ ./runsikulix -d 3 -c -r /Users/apple/Downloads/sikuli.skl
running SikuliX: /Applications/SikuliX.app/Contents/Java/sikulix.jar -d 3 -c -r /Users/apple/Downloads/sikuli.skl
[debug] RunTimeINIT: loadOptions: check: /Users/apple/Downloads/Sikulix
[debug] RunTimeINIT: loadOptions: check: /Users/apple
[debug] RunTimeINIT: loadOptions: check: /Users/apple/Library/Application Support/Sikulix/SikulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 2560 x 1440
[debug] RunTimeINIT: runs as sikulix.jar in: /Applications/SikuliX.app/Contents/Java
[debug] RunTimeINIT: exists libs folder at: /Users/apple/Library/Application Support/Sikulix/SikulixLibs_201510051707
***** show environment for IDE (build 201510051707)
user.home: /Users/apple
user.dir (work dir): /Users/apple/Downloads/Sikulix
user.name: apple
java.io.tmpdir: /var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T
running 64Bit on Mac OSX (10.10.5) as application .app
java 7-64 version 1.7.0_80-b15 vm 24.80-b11 class 51.0 arch x86_64
app data folder: /Users/apple/Library/Application Support/Sikulix
libs folder: /Users/apple/Library/Application Support/Sikulix/SikulixLibs_201510051707
executing jar: /Applications/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump sikulix
0: /Applications/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump end
***** show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] RunTimeIDE: initAPI: entering
[debug] RunTimeIDE: initAPI: leaving
[debug] init user preferences
[debug] IDE: running with Locale: en_US
[debug] IDE: initNativeSupport: starting
[debug] IDE: initNativeSupport: success
[debug] IDE: Switching to ScriptRunner with option -r, -t or -i
[debug] Runner: commandline: -d 3 -c -r /Users/apple/Downloads/sikuli.skl
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[debug] 4: -r
[debug] 5: /Users/apple/Downloads/sikuli.skl
[debug] ScriptingSupport: givenScriptName:
/Users/apple/Downloads/sikuli.skl
[debug] FileManager: createTempDir:
/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1259009325/sikuli.sikuli
[debug] FileManager: unzip: from: /Users/apple/Downloads/sikuli.skl
to: /var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1259009325/sikuli.sikuli
[debug] FileManager: deleteFileOrFolder:
/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1259009325/sikuli.sikuli
[debug] ScriptingSupport: Trying to run script:
/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1259009325/sikuli.sikuli/sikuli.py
[debug] ScriptingSupport: initScriptingSupport: enter
[debug] JythonSupport: init: starting
[debug] JythonSupport: init: success
[debug] JythonSupport: ***** Jython sys.path
0: /Applications/SikuliX.app/Contents/Java/Lib
1: /Applications/SikuliX.app/Contents/Java/sikulix.jar/Lib
2: __classpath__
3: __pyclasspath__/
[debug] JythonSupport: ***** Jython sys.path end
[debug] Jython: sikuli: Sikuli: starting init
[debug] RunTimeIDE: loadLib: libVisionProxy.dylib
[debug] Mouse: init
[debug] KeyBoard: init
[debug] RunTimeIDE: loadLib: libMacUtil.dylib
[debug] Jython: requested to use as default region: R[0,0 2560x1440]@S(0)
[debug] Jython: sikuli: Sikuli: ending init
[debug] JythonScriptRunner: running Jython 2.5.4rc1
[debug] ScriptingSupport: initScriptingSupport: added: jython
[debug] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython (py)
[debug] ImagePath: new BundlePath:
/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1259009325/sikuli.sikuli/
[debug] Jython: requested to use as default region: R[0,0 2560x1440]@S(0)
[debug] JythonScriptRunner: runPython: running script:
/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1259009325/sikuli.sikuli
[debug] Region: find: waiting 3.0 secs for 1447895220871.png to appear in R[0,0 2560x1440]@S(0)
[debug] Image: loaded: 1447895220871.png (file:/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1259009325/sikuli.sikuli/1447895220871.png)
[debug] Image: cached: 1447895220871.png (3 KB) (# 1 KB 3 -- 0 % of 64 MB)
[debug] Region: find: 1447895220871.png has not appeared [838 msec]
[error] script [ /private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1259009325/sikuli.sikuli ] stopped with error in line 1
[error] FindFailed ( can not find 1447895220871.png in R[0,0 2560x1440]@S(0) )
[debug] RunTimeIDE: final cleanup
[debug] FileManager: deleteFileOrFolder:
/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1259009325
mac:Sikulix apple$ ./runsikulix -d 3 -c -r /Users/apple/Downloads/sikuli
sikuli.sikuli/ sikuli.skl sikuli2.sikulisikuli2.py sikuli3.sikuli/ sikuli3.skl
sikuli.sikulisikuli.py sikuli2.sikuli/ sikuli2.skl sikuli3.sikulisikuli3.py
mac:Sikulix apple$ ./runsikulix -d 3 -c -r /Users/apple/Downloads/sikuli2.s
sikuli2.sikuli/ sikuli2.sikulisikuli2.py sikuli2.skl
mac:Sikulix apple$ ./runsikulix -d 3 -c -r /Users/apple/Downloads/sikuli2.skl
running SikuliX: /Applications/SikuliX.app/Contents/Java/sikulix.jar -d 3 -c -r /Users/apple/Downloads/sikuli2.skl
[debug] RunTimeINIT: loadOptions: check: /Users/apple/Downloads/Sikulix
[debug] RunTimeINIT: loadOptions: check: /Users/apple
[debug] RunTimeINIT: loadOptions: check: /Users/apple/Library/Application Support/Sikulix/SikulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 2560 x 1440
[debug] RunTimeINIT: runs as sikulix.jar in: /Applications/SikuliX.app/Contents/Java
[debug] RunTimeINIT: exists libs folder at: /Users/apple/Library/Application Support/Sikulix/SikulixLibs_201510051707
***** show environment for IDE (build 201510051707)
user.home: /Users/apple
user.dir (work dir): /Users/apple/Downloads/Sikulix
user.name: apple
java.io.tmpdir: /var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T
running 64Bit on Mac OSX (10.10.5) as application .app
java 7-64 version 1.7.0_80-b15 vm 24.80-b11 class 51.0 arch x86_64
app data folder: /Users/apple/Library/Application Support/Sikulix
libs folder: /Users/apple/Library/Application Support/Sikulix/SikulixLibs_201510051707
executing jar: /Applications/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump sikulix
0: /Applications/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump end
***** show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] RunTimeIDE: initAPI: entering
[debug] RunTimeIDE: initAPI: leaving
[debug] init user preferences
[debug] IDE: running with Locale: en_US
[debug] IDE: initNativeSupport: starting
[debug] IDE: initNativeSupport: success
[debug] IDE: Switching to ScriptRunner with option -r, -t or -i
[debug] Runner: commandline: -d 3 -c -r /Users/apple/Downloads/sikuli2.skl
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[debug] 4: -r
[debug] 5: /Users/apple/Downloads/sikuli2.skl
[debug] ScriptingSupport: givenScriptName:
/Users/apple/Downloads/sikuli2.skl
[debug] FileManager: createTempDir:
/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1296094259/sikuli2.sikuli
[debug] FileManager: unzip: from: /Users/apple/Downloads/sikuli2.skl
to: /var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1296094259/sikuli2.sikuli
[debug] FileManager: deleteFileOrFolder:
/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1296094259/sikuli2.sikuli
[debug] ScriptingSupport: Trying to run script:
/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1296094259/sikuli2.sikuli/sikuli2.py
[debug] ScriptingSupport: initScriptingSupport: enter
[debug] JythonSupport: init: starting
[debug] JythonSupport: init: success
[debug] JythonSupport: ***** Jython sys.path
0: /Applications/SikuliX.app/Contents/Java/Lib
1: /Applications/SikuliX.app/Contents/Java/sikulix.jar/Lib
2: __classpath__
3: __pyclasspath__/
[debug] JythonSupport: ***** Jython sys.path end
[debug] Jython: sikuli: Sikuli: starting init
[debug] RunTimeIDE: loadLib: libVisionProxy.dylib
[debug] Mouse: init
[debug] KeyBoard: init
[debug] RunTimeIDE: loadLib: libMacUtil.dylib
[debug] Jython: requested to use as default region: R[0,0 2560x1440]@S(0)
[debug] Jython: sikuli: Sikuli: ending init
[debug] JythonScriptRunner: running Jython 2.5.4rc1
[debug] ScriptingSupport: initScriptingSupport: added: jython
[debug] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython (py)
[debug] ImagePath: new BundlePath:
/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1296094259/sikuli2.sikuli/
[debug] Jython: requested to use as default region: R[0,0 2560x1440]@S(0)
[debug] JythonScriptRunner: runPython: running script:
/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1296094259/sikuli2.sikuli
[error] Screen: invalid screen id 1 - using primary screen
[error] Screen: invalid screen id 1 - using primary screen
[debug] Region: hover: 1447896514668.png
[debug] Region: find: waiting 3.0 secs for 1447896514668.png to appear in R[0,0 2560x1440]@S(0)
[debug] Image: loaded: 1447896514668.png (file:/private/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1296094259/sikuli2.sikuli/1447896514668.png)
[debug] Image: cached: 1447896514668.png (0 KB) (# 1 KB 0 -- 0 % of 64 MB)
[debug] Region: find: 1447896514668.png has appeared
at M[775,24 34x9]@S(S(0)[0,0 2560x1440]) S:1.00 C:792,28 [889 msec]
[debug] RunTimeIDE: final cleanup
[debug] FileManager: deleteFileOrFolder:
/var/folders/62/1689dlxx4hg4qw8mrm4c7pph0000gp/T/Sikulix_1296094259
mac:Sikulix apple$
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.