Not able to install sikulix 1.1.4 version in my Ubuntu16.04.5 machine in Azure
This bug report was converted into a question: question #675848: Not able to install sikulix 1.1.4 version in my Ubuntu16.04.5 machine in Azure.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am using Ubuntu version 16.04.5 in Microsoft Azure environment. Please find the below details:
root@scb-
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Mine is a 64-bit system
Java version:
root@scb-
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
I have created SikuliX folder in /home/
root@scb-
/home/SikuliX
Initially I have placed the files required to install sikuli 1.1.4 version. Please see the details below:
root@scb-
jdk-11.0.1
jython-
openjdk-
sikulixapi.jar
sikulix.jar
I have followed the below commands to install the sikulix.jar:
/home/SikuliX/
Here in this installation I have received the error "X11 DISPLAY variable was set".
Please find the installation log and the error:
root@scb-
[DEBUG] RunIDE: Running: /home/SikuliX/
[DEBUG] RunIDE: AppData: /root/.Sikulix
[DEBUG] RunIDE: starting
[DEBUG] RunIDE: looking for extension jars in: /root/.
[DEBUG] RunIDE: adding extension: /root/.
[180 debug] Sikulix: starting IDE
[193 debug] RunTimeINIT: starting IDE
[200 debug] RunTimeINIT: java version
[200 debug] RunTimeINIT: user.home
[200 debug] RunTimeINIT: user.dir
[201 debug] RunTimeINIT: app data path
[201 debug] RunTimeINIT: store debug.txt
[201 debug] RunTimeINIT: loadOptions: check: /home/SikuliX
[202 debug] RunTimeINIT: loadOptions: check: /root
[202 debug] RunTimeINIT: loadOptions: check: /root/.
[204 debug] RunTimeINIT: version: 1.1.4-SNAPSHOT build: 2018-10-30_14:49
[205 debug] RunTimeINIT: global init: entering as: IDE
[259 debug] RunTimeINIT: running in headless environment
[281 debug] RunTimeINIT: runs as sikulix.jar in: /home/SikuliX
***** show environment for 1.1.4-SNAPSHOT-
user.home: /root
user.dir (work dir): /home/SikuliX
user.name: root
java.io.tmpdir: /tmp
running 64Bit(amd64) on Linux (4.15.0-1025-azure) from a jar
java 8 version 1.8 vm 25.181-b13 class 52.0 arch 64
app data folder: /root/.Sikulix
executing jar: /home/SikuliX/
*** classpath dump sikulix
0: file:/home/
1: file:/root/
*** classpath dump end
***** show environment end
[284 debug] RunTimeIDE: global init: leaving
[284 debug] RunTimeIDE: initIDEbefore: entering
[285 debug] RunTimeIDE: initIDEbefore: leaving
[285 debug] RunTimeIDE: initAPI: entering
[285 debug] RunTimeIDE: resourceLocation: (class org.sikuli.
[290 debug] RunTimeIDE: resourceList: having jar: jar:file:
[2062 debug] RunTimeIDE: files exported: 7 from: Lib/sikuli to:
/root/
[2062 debug] RunTimeIDE: initAPI: leaving
[2062 debug] RunTimeIDE: initIDEafter: entering
[2062 debug] RunTimeIDE: initIDEafter: leaving
Exception in thread "main" java.awt.
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.
at java.awt.
at java.awt.
at javax.swing.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
[2076 debug] RunTimeIDE: final cleanup
[2078 debug] FileManager: deleteFileOrFolder:
/tmp/Sikulix_
[DEBUG] RunIDE: terminating: returned: 1
To resolve the X11 DISPLAY variable requirement I have given the command "export DISPLAY=:1" prior to "/home/
root@scb-
root@scb-
Now, am facing a _thread import error. Please find the below log statements and _thread import error.
[DEBUG] RunIDE: Running: /home/SikuliX/
[DEBUG] RunIDE: AppData: /root/.Sikulix
[DEBUG] RunIDE: starting
[DEBUG] RunIDE: looking for extension jars in: /root/.
[DEBUG] RunIDE: adding extension: /root/.
[160 debug] Sikulix: starting IDE
[172 debug] RunTimeINIT: starting IDE
[178 debug] RunTimeINIT: java version
[179 debug] RunTimeINIT: user.home
[179 debug] RunTimeINIT: user.dir
[179 debug] RunTimeINIT: app data path
[179 debug] RunTimeINIT: store debug.txt
[180 debug] RunTimeINIT: loadOptions: check: /home/SikuliX
[180 debug] RunTimeINIT: loadOptions: check: /root
[180 debug] RunTimeINIT: loadOptions: check: /root/.
[182 debug] RunTimeINIT: version: 1.1.4-SNAPSHOT build: 2018-10-30_14:49
[183 debug] RunTimeINIT: global init: entering as: IDE
[243 debug] RunTimeINIT: Accessing: GraphicsEnviron
[253 debug] RunTimeINIT: Accessing: GraphicsEnviron
[263 debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[264 debug] RunTimeINIT: Monitor 0: (0, 0) 1024 x 768
[285 debug] RunTimeINIT: runs as sikulix.jar in: /home/SikuliX
***** show environment for 1.1.4-SNAPSHOT-
user.home: /root
user.dir (work dir): /home/SikuliX
user.name: root
java.io.tmpdir: /tmp
running 64Bit(amd64) on Linux (4.15.0-1025-azure) from a jar
java 8 version 1.8 vm 25.181-b13 class 52.0 arch 64
app data folder: /root/.Sikulix
executing jar: /home/SikuliX/
*** classpath dump sikulix
0: file:/home/
1: file:/root/
*** classpath dump end
***** show environment end
[288 debug] RunTimeIDE: global init: leaving
[288 debug] RunTimeIDE: initIDEbefore: entering
[288 debug] RunTimeIDE: initIDEbefore: leaving
[289 debug] RunTimeIDE: initAPI: entering
[289 debug] RunTimeIDE: resourceLocation: (class org.sikuli.
[292 debug] RunTimeIDE: resourceList: having jar: jar:file:
[2035 debug] RunTimeIDE: files exported: 7 from: Lib/sikuli to:
/root/
[2035 debug] RunTimeIDE: initAPI: leaving
[2036 debug] RunTimeIDE: initIDEafter: entering
[2036 debug] RunTimeIDE: initIDEafter: leaving
[2096 debug] init user preferences
[2121 debug] IDE: running with Locale: en_US
[2121 debug] --- Sikuli parameters ---
[2121 debug] 1: -v
[2123 debug] RunTimeIDE: exists libs folder at: /root/.
[2124 debug] RunTimeIDE: resourceLocation: (class org.sikuli.
[2125 debug] RunTimeIDE: resourceList: having jar: jar:file:
[3856 debug] RunTimeIDE: loadLib: libJXGrabKey.so
[3857 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[3860 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[3860 debug] IDE: Init ScriptingSupport
[3862 debug] ScriptingSupport: initScriptingSu
[6126 debug] JythonSupport: init: starting
[6127 debug] JythonSupport: init: success
[6129 debug] JythonSupport: added as Jython:
/root/.
[6130 debug] JythonSupport: ***** Jython sys.path
0: /root/.
1: /root/.Sikulix/Lib
2: /root/.
3: /root/.
4: __classpath__
5: __pyclasspath__/
[6131 debug] JythonSupport: ***** Jython sys.path end
[6236 debug] Jython: sikuli: Sikuli: starting init
[error] RunTimeIDE: *** terminating: JythonScriptRunner: cannot be initialized:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/root/
from Sikuli import *
File "/root/
import subprocess
File "/root/
import threading
File "/root/
from _threading import Lock, RLock, Condition, _Lock, _RLock, _threads, _active, _jthread_
ImportError: cannot import name _threads
[6544 debug] RunTimeIDE: final cleanup
[6546 debug] FileManager: deleteFileOrFolder:
/tmp/Sikulix_
[DEBUG] RunIDE: terminating: returned: 1
Kindly help to resolve the above import error "cannot import name _threads" to complete the installation of Sikulix setup version 1.1.4 in ubuntu16.04.5 in Azure.
should be a question