sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00469
[Bug 702155] [NEW] Sikuli can't import subprocess, all scripts using subprocess are broken
Public bug reported:
The following code worked perfectly in Sikuli 10, within the IDE and in
Netbeans on all Windows operating systems. Now it fails globally. Any
code invoking subprocess fails on all windows operating systems, repeat
ALL Windows operating systems. This failure occurs on user systems
where the .jar files are not changed, unpacked nor run from NetBeans.
import glob
import os
import subprocess
setShowActions(True)
dirname = "Z:\BUILDS\Daily_BUILDS\QA_MainBranch_Install\*.install"
setBundlePath("C:\\SikuliTest\\ImageLibrary\\96dpi\\SignIn\\")
filespec = "setup.exe"
instlpath = glob.glob (os.path.join (dirname, filespec))
subprocess.call (instlpath[0] + ' /S /z" ')
if exists("SignIn_Launch.png", 300):
popup("Install Successful")
exit()
Error:
[debug] close all ScreenHighlighter
[info] Stopped
[info] An error occurs at line 3
[info] Error message:
Traceback (most recent call last):
File "C:\Users\MIKEAD~1.OVE\AppData\Local\Temp\sikuli-tmp6953702407610701410.py", line 3, in <module>
import subprocess
File "C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\subprocess.py", line 642, in <module>
File "C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\subprocess.py", line 640, in _setup_platform
File "C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\warnings.py", line 56, in warn
File "C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\warnings.py", line 56, in warn
IndexError: index out of range: 0
** 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/702155
Title:
Sikuli can't import subprocess, all scripts using subprocess are
broken
Status in Sikuli:
New
Bug description:
The following code worked perfectly in Sikuli 10, within the IDE and
in Netbeans on all Windows operating systems. Now it fails globally.
Any code invoking subprocess fails on all windows operating systems,
repeat ALL Windows operating systems. This failure occurs on user
systems where the .jar files are not changed, unpacked nor run from
NetBeans.
import glob
import os
import subprocess
setShowActions(True)
dirname = "Z:\BUILDS\Daily_BUILDS\QA_MainBranch_Install\*.install"
setBundlePath("C:\\SikuliTest\\ImageLibrary\\96dpi\\SignIn\\")
filespec = "setup.exe"
instlpath = glob.glob (os.path.join (dirname, filespec))
subprocess.call (instlpath[0] + ' /S /z" ')
if exists("SignIn_Launch.png", 300):
popup("Install Successful")
exit()
Error:
[debug] close all ScreenHighlighter
[info] Stopped
[info] An error occurs at line 3
[info] Error message:
Traceback (most recent call last):
File "C:\Users\MIKEAD~1.OVE\AppData\Local\Temp\sikuli-tmp6953702407610701410.py", line 3, in <module>
import subprocess
File "C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\subprocess.py", line 642, in <module>
File "C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\subprocess.py", line 640, in _setup_platform
File "C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\warnings.py", line 56, in warn
File "C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\warnings.py", line 56, in warn
IndexError: index out of range: 0
Follow ups
-
[Bug 702155] Re: X 1.0rc1: Windows: import Jython module subprocess not possible - workaround
From: RaiMan, 2013-02-22
-
[Bug 702155] Re: X 1.0rc1: Windows: import Jython module subprocess not possible - workaround
From: RaiMan, 2011-03-23
-
[Bug 702155] Re: X 1.0rc1: Windows: import Jython module subprocess not possible - workaround
From: RaiMan, 2011-01-14
-
[Bug 702155] Re: X 1.0rc1: Windows: import Jython module subprocess not possible - workaround
From: surfdork, 2011-01-14
-
[Bug 702155] Re: X 1.0rc1: Windows: import Jython module subprocess not possible - workaround
From: RaiMan, 2011-01-13
-
[Bug 702155] Re: X 1.0rc1: Windows: import Jython module subprocess not possible - workaround
From: RaiMan, 2011-01-13
-
[Bug 702155] Re: X 1.0rc1: Windows: import Jython module subprocess not possible
From: RaiMan, 2011-01-13
-
[Bug 702155] Re: X 1.0rc1: Windows: import Jython module subprocess not possible
From: RaiMan, 2011-01-13
-
[Bug 702155] Re: Sikuli can't import subprocess, all scripts using subprocess are broken
From: RaiMan, 2011-01-13
-
[Bug 702155] Re: Sikuli can't import subprocess, all scripts using subprocess are broken
From: RaiMan, 2011-01-13
-
[Bug 702155] Re: Sikuli can't import subprocess, all scripts using subprocess are broken
From: RaiMan, 2011-01-13
-
[Bug 702155] Re: Sikuli can't import subprocess, all scripts using subprocess are broken
From: RaiMan, 2011-01-13
-
[Bug 702155] [NEW] Sikuli can't import subprocess, all scripts using subprocess are broken
From: surfdork, 2011-01-13
References