Activity log for bug #702155

Date Who What changed Old value New value Message
2011-01-12 22:01:26 surfdork bug added bug
2011-01-13 08:36:57 RaiMan summary Sikuli can't import subprocess, all scripts using subprocess are broken X 1.0rc1: Windows: import Jython module subprocess not possible
2011-01-13 12:20:18 RaiMan summary X 1.0rc1: Windows: import Jython module subprocess not possible X 1.0rc1: Windows: import Jython module subprocess not possible - workaround
2011-01-13 12:24:55 RaiMan 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 *** If you face problems like the one below (standard python modules cannot be imported) try this workaround: --- copy sikuli-ide.jar from the Sikuli X program folder to e.g. c:\ (or another place were the resulting absolute path does not contain any blanks) and modify the .bat in the Sikuli X program folder: --- remove the PATH= statement, it is not needed, you have it (to be checked!) already in your system path ;-) --- set the python.path option to: -Dpython.path="c:\sikuli-script.jar/" run this .bat to start the IDE, and you hopefully find, that your imports work. ----------------------- 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
2011-01-13 12:40:53 RaiMan description *** If you face problems like the one below (standard python modules cannot be imported) try this workaround: --- copy sikuli-ide.jar from the Sikuli X program folder to e.g. c:\ (or another place were the resulting absolute path does not contain any blanks) and modify the .bat in the Sikuli X program folder: --- remove the PATH= statement, it is not needed, you have it (to be checked!) already in your system path ;-) --- set the python.path option to: -Dpython.path="c:\sikuli-script.jar/" run this .bat to start the IDE, and you hopefully find, that your imports work. ----------------------- 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 *** If you face problems like the one below (standard python modules cannot be imported) try this workaround: --- copy sikuli-ide.jar from the Sikuli X program folder to e.g. c:\ (or another place were the resulting absolute path does not contain any blanks) and modify the .bat in the Sikuli X program folder: --- remove the PATH= statement, it is not needed, you have it (to be checked!) already in your system path ;-) --- set the python.path option to: -Dpython.path="c:\sikuli-script.jar/" run this .bat to start the IDE, and you hopefully find, that your imports work. Comment for NetBeans (and Eclipse) users: If you are using the Python plugin configured with Jython 2.5.1, you will not have this problems. Background: Jython 2.5.1 seems to have problems with some import handling of/in python modules/packages contained in .jar files whose absolute path contains blanks. ----------------------- 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
2011-01-14 07:53:18 RaiMan description *** If you face problems like the one below (standard python modules cannot be imported) try this workaround: --- copy sikuli-ide.jar from the Sikuli X program folder to e.g. c:\ (or another place were the resulting absolute path does not contain any blanks) and modify the .bat in the Sikuli X program folder: --- remove the PATH= statement, it is not needed, you have it (to be checked!) already in your system path ;-) --- set the python.path option to: -Dpython.path="c:\sikuli-script.jar/" run this .bat to start the IDE, and you hopefully find, that your imports work. Comment for NetBeans (and Eclipse) users: If you are using the Python plugin configured with Jython 2.5.1, you will not have this problems. Background: Jython 2.5.1 seems to have problems with some import handling of/in python modules/packages contained in .jar files whose absolute path contains blanks. ----------------------- 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 *** If you face problems like the one below (standard python modules cannot be imported) try this workaround: --- copy sikuli-ide.jar from the Sikuli X program folder to e.g. c:\ (or another place were the resulting absolute path does not contain any blanks) and modify the .bat in the Sikuli X program folder: --- remove the PATH= statement, it is not needed, you have it (to be checked!) already in your system path ;-) --- set the python.path option to: -Dpython.path="c:\sikuli-script.jar/" the changed line should read (based on the distributed version, sikuli-script.jar copied to c:\): %JAVA_EXE% -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.path="c:\sikuli-script.jar/" -jar "%~d0%~p0sikuli-ide.jar" %* run this .bat to start the IDE, and you hopefully find, that your imports work. Comment for NetBeans (and Eclipse) users: If you are using the Python plugin configured with Jython 2.5.1, you will not have this problems. Background: Jython 2.5.1 seems to have problems with some import handling of/in python modules/packages contained in .jar files whose absolute path contains blanks. ----------------------- 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
2011-03-23 11:46:44 RaiMan description *** If you face problems like the one below (standard python modules cannot be imported) try this workaround: --- copy sikuli-ide.jar from the Sikuli X program folder to e.g. c:\ (or another place were the resulting absolute path does not contain any blanks) and modify the .bat in the Sikuli X program folder: --- remove the PATH= statement, it is not needed, you have it (to be checked!) already in your system path ;-) --- set the python.path option to: -Dpython.path="c:\sikuli-script.jar/" the changed line should read (based on the distributed version, sikuli-script.jar copied to c:\): %JAVA_EXE% -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.path="c:\sikuli-script.jar/" -jar "%~d0%~p0sikuli-ide.jar" %* run this .bat to start the IDE, and you hopefully find, that your imports work. Comment for NetBeans (and Eclipse) users: If you are using the Python plugin configured with Jython 2.5.1, you will not have this problems. Background: Jython 2.5.1 seems to have problems with some import handling of/in python modules/packages contained in .jar files whose absolute path contains blanks. ----------------------- 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 *** If you face problems like the one below (standard python modules cannot be imported) try this workaround: --- copy sikuli-script.jar from the Sikuli X program folder to e.g. c:\ (or another place were the resulting absolute path does not contain any blanks) and modify the .bat in the Sikuli X program folder: --- remove the PATH= statement, it is not needed, you have it (to be checked!) already in your system path ;-) --- set the python.path option to: -Dpython.path="c:\sikuli-script.jar/" the changed line should read (based on the distributed version, sikuli-script.jar copied to c:\): %JAVA_EXE% -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.path="c:\sikuli-script.jar/" -jar "%~d0%~p0sikuli-ide.jar" %* run this .bat to start the IDE, and you hopefully find, that your imports work. Comment for NetBeans (and Eclipse) users: If you are using the Python plugin configured with Jython 2.5.1, you will not have this problems. Background: Jython 2.5.1 seems to have problems with some import handling of/in python modules/packages contained in .jar files whose absolute path contains blanks. ----------------------- 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
2013-02-22 09:43:57 RaiMan sikuli: status New In Progress
2013-02-22 09:44:00 RaiMan sikuli: importance Undecided Medium
2013-02-22 09:44:04 RaiMan sikuli: assignee RaiMan (raimund-hocke)
2013-02-22 09:44:27 RaiMan tags jython