[Sikuli-driver] [Bug 1801077] Re: Not able to install sikulix 1.1.4 version in my Ubuntu16.04.5 machine in Azure
This workflow worked in my case. I think the reason was a clash with the previous installations of Sikuli (I had used 1.1.2 and 1.1.3 versions before). 1. Delete the folder: C:\Users\Your_User_Name\AppData\Roaming\Sikulix 2. Run the script again. 3. For some reason, I had an error at first try (can be specific to my case) 4. On second try, the script worked properly. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1801077 Title: Not able to install sikulix 1.1.4 version in my Ubuntu16.04.5 machine in Azure Status in Sikuli: Invalid Bug description: I am using Ubuntu version 16.04.5 in Microsoft Azure environment. Please find the below details: root@scb-test-7:/home/SikuliX# lsb_release -a 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-test-7:/home/SikuliX# /home/SikuliX/jdk-11.0.1/bin/java -version 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-test-7:/home/SikuliX# pwd /home/SikuliX Initially I have placed the files required to install sikuli 1.1.4 version. Please see the details below: root@scb-test-7:/home/SikuliX# ls jdk-11.0.1 jython-standalone-2.7.1.jar openjdk-11.0.1_linux-x64_bin.tar.gz sikulixapi.jar sikulix.jar I have followed the below commands to install the sikulix.jar: /home/SikuliX/jdk-11.0.1/bin/java -jar sikulix.jar -v Here in this installation I have received the error "X11 DISPLAY variable was set". Please find the installation log and the error: root@scb-test-7:/home/SikuliX# /home/SikuliX/jdk-11.0.1/bin/java -jar sikulix.jar -v [DEBUG] RunIDE: Running: /home/SikuliX/sikulix.jar [DEBUG] RunIDE: AppData: /root/.Sikulix [DEBUG] RunIDE: starting [DEBUG] RunIDE: looking for extension jars in: /root/.Sikulix/Extensions [DEBUG] RunIDE: adding extension: /root/.Sikulix/Extensions/jython-standalone-2. 7.1.jar [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/.Sikulix/SikulixStore [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-2018-10-30_14:49 IDE 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/sikulix.jar *** classpath dump sikulix 0: file:/home/SikuliX/sikulix.jar 1: file:/root/.Sikulix/Extensions/jython-standalone-2.7.1.jar *** 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.ide.SikuliIDE) /Lib/ sikuli [290 debug] RunTimeIDE: resourceList: having jar: jar:file:/home/SikuliX/sikulix .jar!/Lib/sikuli [2062 debug] RunTimeIDE: files exported: 7 from: Lib/sikuli to: /root/.Sikulix/Lib/sikuli [2062 debug] RunTimeIDE: initAPI: leaving [2062 debug] RunTimeIDE: initIDEafter: entering [2062 debug] RunTimeIDE: initIDEafter: leaving Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204) at java.awt.Window.(Window.java:536) at java.awt.Frame.(Frame.java:420) at javax.swing.JFrame.(JFrame.java:233) at org.sikuli.ide.SikuliIDE.(SikuliIDE.java:148) at org.sikuli.ide.SikuliIDE.getInstance(SikuliIDE.java:153) at org.sikuli.ide.SikuliIDE.run(SikuliIDE.java:182) at org.sikuli.ide.SikulixRunIDE.main(SikulixRunIDE.java:38) [2076 debug] RunTimeIDE: final cleanup [2078 debug]
[Sikuli-driver] [Question #247038]: App.open to run .exe file with environment variable
New question #247038 on Sikuli: https://answers.launchpad.net/sikuli/+question/247038 Dear RaiMan, Thank you again for your helpfulness (related to question 24669 (Unable to run .exe file with environment variable)). Is it possible to run an. exe file through the settings of environment variables with App class? Thus I would like to have something like: #MyApp environment variable is created in system in variables under System\Advanced Settings App.open('%MyApp%) In my previous question, I tried to use subprocess.call('%MyApp%) but it is too high maintenance with respect to App class I guess. Thanks! -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #246693]: Unable to run .exe file with environment variable
Question #246693 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/246693 Status: Answered = Solved cat123 confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #247038]: App.open to run .exe file with environment variable
Question #247038 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/247038 Status: Answered = Solved cat123 confirmed that the question is solved: Thank you so much RaiMan, you are great. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 1304366] [NEW] Unable to run .exe file with environment variable
Public bug reported: Hi RaiMan, I wrote a new version of my previous bug. This time I don't use the os.environ but subprocess.call. Thanks! I very much appreciate your helpfulness in this forum. I don't want to hard code the path to the .exe file I want to test in my .sikuli file. Our scheduler will run the .exe file through the settings of environment variables, without hard coding. And we don't want to change the path setting, but only run through an environment variable. I wrote the following script, it works on python but not on sikuli. Would you have any alternatives\workarounds? #MyApp environment variable is created in system in variables under System\Advanced Settings # My file path is: C:\2014-03-07(20h30)\bin\MyApp.exe #We can run the following script on Python, it's OK #We can also run %MyApp% on command prompt, it's OK. from sikuli import* import os, sys import subprocess os.system('echo %MyApp%') #We have the path to environment variable. [GOOD] subprocess.call('%MyApp%', shell = True) #But we can't run it [BAD] We have the following error message (not pasted the whole message): 'C:\2014-03-07' is not recognized as an internal or external command, operable program or batch file. Exception in thread AWT-EventQueue-0 java.lang.NullPointerException at javax.swing.text.FlowView$FlowStrategy.layoutRow(Unknown Source) at javax.swing.text.FlowView$FlowStrategy.layout(Unknown Source) at javax.swing.text.FlowView.layout(Unknown Source) at javax.swing.text.BoxView.setSize(Unknown Source) at javax.swing.text.BoxView.updateChildSizes(Unknown Source) at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source) at javax.swing.text.BoxView.layout(Unknown Source) at javax.swing.text.BoxView.setSize(Unknown Source) at javax.swing.text.BoxView.updateChildSizes(Unknown Source) at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source) at javax.swing.text.BoxView.layout(Unknown Source) at javax.swing.text.BoxView.setSize(Unknown Source) at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Unknown Source) at javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source) at ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1304366 Title: Unable to run .exe file with environment variable Status in Sikuli: New Bug description: Hi RaiMan, I wrote a new version of my previous bug. This time I don't use the os.environ but subprocess.call. Thanks! I very much appreciate your helpfulness in this forum. I don't want to hard code the path to the .exe file I want to test in my .sikuli file. Our scheduler will run the .exe file through the settings of environment variables, without hard coding. And we don't want to change the path setting, but only run through an environment variable. I wrote the following script, it works on python but not on sikuli. Would you have any alternatives\workarounds? #MyApp environment variable is created in system in variables under System\Advanced Settings # My file path is: C:\2014-03-07(20h30)\bin\MyApp.exe #We can run the following script on Python, it's OK #We can also run %MyApp% on command prompt, it's OK. from sikuli import* import os, sys import subprocess os.system('echo %MyApp%') #We have the path to environment variable. [GOOD] subprocess.call('%MyApp%', shell = True) #But we can't run it [BAD] We have the following error message (not pasted the whole message): 'C:\2014-03-07' is not recognized as an internal or external command, operable program or batch file. Exception in thread AWT-EventQueue-0 java.lang.NullPointerException at javax.swing.text.FlowView$FlowStrategy.layoutRow(Unknown Source) at javax.swing.text.FlowView$FlowStrategy.layout(Unknown Source) at javax.swing.text.FlowView.layout(Unknown Source) at javax.swing.text.BoxView.setSize(Unknown Source) at javax.swing.text.BoxView.updateChildSizes(Unknown Source) at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source) at javax.swing.text.BoxView.layout(Unknown Source) at javax.swing.text.BoxView.setSize(Unknown Source) at javax.swing.text.BoxView.updateChildSizes(Unknown Source) at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source) at javax.swing.text.BoxView.layout(Unknown Source) at javax.swing.text.BoxView.setSize(Unknown Source) at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Unknown Source) at javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source) at To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1304366/+subscriptions ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #246693]: Unable to run .exe file with environment variable
New question #246693 on Sikuli: https://answers.launchpad.net/sikuli/+question/246693 Hi RaiMan, I wrote a new version of my previous bug. This time I don't use the os.environ but subprocess.call. Thanks! I very much appreciate your helpfulness in this forum. I don't want to hard code the path to the .exe file I want to test in my .sikuli file. Our scheduler will run the .exe file through the settings of environment variables, without hard coding. And we don't want to change the path setting, but only run through an environment variable. I wrote the following script, it works on python but not on sikuli. Would you have any alternatives\workarounds? #MyApp environment variable is created in system in variables under System\Advanced Settings # My file path is: C:\2014-03-07(20h30)\bin\MyApp.exe #We can run the following script on Python, it's OK #We can also run %MyApp% on command prompt, it's OK. from sikuli import* import os, sys import subprocess os.system('echo %MyApp%') #We have the path to environment variable. [GOOD] subprocess.call('%MyApp%', shell = True) #But we can't run it [BAD] We have the following error message (not pasted the whole message): 'C:\2014-03-07' is not recognized as an internal or external command, operable program or batch file. Exception in thread AWT-EventQueue-0 java.lang.NullPointerException at javax.swing.text.FlowView$FlowStrategy.layoutRow(Unknown Source) at javax.swing.text.FlowView$FlowStrategy.layout(Unknown Source) at javax.swing.text.FlowView.layout(Unknown Source) at javax.swing.text.BoxView.setSize(Unknown Source) at javax.swing.text.BoxView.updateChildSizes(Unknown Source) at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source) at javax.swing.text.BoxView.layout(Unknown Source) at javax.swing.text.BoxView.setSize(Unknown Source) at javax.swing.text.BoxView.updateChildSizes(Unknown Source) at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source) at javax.swing.text.BoxView.layout(Unknown Source) at javax.swing.text.BoxView.setSize(Unknown Source) at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Unknown Source) at javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source) at -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 1303904] [NEW] Unable to run .exe file setting environment variables
Public bug reported: Hi, I don't want to hard code the path to the .exe file I want to test in my .sikuli file. Our automated test will run the .exe file through the settings of environment variables, without hard coding. I wrote the following script, it works on python but not on sikuli. Would you have any alternatives\workarounds? Thanks! from sikuli import* import unittest import os, sys import subprocess os.environ[MyApp] = 'M:\\MyPath\\MyApp.exe' os.environ[PATH] = os.environ[PATH] + ';M:\\MyPath\\' subprocess.call(['MyApp']) Using: Sikuli 1.0.1 OS: Windows 8.1 64 bit ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1303904 Title: Unable to run .exe file setting environment variables Status in Sikuli: New Bug description: Hi, I don't want to hard code the path to the .exe file I want to test in my .sikuli file. Our automated test will run the .exe file through the settings of environment variables, without hard coding. I wrote the following script, it works on python but not on sikuli. Would you have any alternatives\workarounds? Thanks! from sikuli import* import unittest import os, sys import subprocess os.environ[MyApp] = 'M:\\MyPath\\MyApp.exe' os.environ[PATH] = os.environ[PATH] + ';M:\\MyPath\\' subprocess.call(['MyApp']) Using: Sikuli 1.0.1 OS: Windows 8.1 64 bit To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1303904/+subscriptions ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 1303904] Re: Unable to run .exe file setting environment variables
** Changed in: sikuli Status: New = Incomplete -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1303904 Title: Unable to run .exe file setting environment variables Status in Sikuli: Incomplete Bug description: Hi, I don't want to hard code the path to the .exe file I want to test in my .sikuli file. Our automated test will run the .exe file through the settings of environment variables, without hard coding. I wrote the following script, it works on python but not on sikuli. Would you have any alternatives\workarounds? Thanks! from sikuli import* import unittest import os, sys import subprocess os.environ[MyApp] = 'M:\\MyPath\\MyApp.exe' os.environ[PATH] = os.environ[PATH] + ';M:\\MyPath\\' subprocess.call(['MyApp']) Using: Sikuli 1.0.1 OS: Windows 8.1 64 bit To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1303904/+subscriptions ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp