← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #150145]: IndexError: index out of range: 0

 

Question #150145 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/150145

    Status: Answered => Open

Matthew Israelsohn is still having a problem:
Thanks for very fast response, RaiMan.  I don't know how to "use the
threading features instead of subprocess" so I tried the workaround of
bug 702155 but it still gives the same error:

This is what I did:

1) Copied sikuli-ide.jar to c:\
2) Changed sikuli-IDE.bat to:

@echo off

set JAVA_EXE="java"
if defined PROGRAMFILES(X86) set JAVA_EXE="%PROGRAMFILES(X86)%\Java\jre6\bin\java.exe"
%JAVA_EXE% -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.path="c:\sikuli-script.jar/" -jar "%~d0%~p0sikuli-ide.jar" %*

When I run sikuli-ide.bat the IDE loads.  When I try to run the script
which works on my colleague's laptop, Sikuli still gives the same error
messages as before I did the fix:

[info] Sikuli vision engine loaded. 
[info] Windows utilities loaded. 
[info] VDictProxy loaded. 
[error] Stopped [error] An error occurs at line 4 
[error] Error message: Traceback (most recent call last):  
File "C:\Users\misraels\AppData\Local\Temp\sikuli-tmp1524787162347353077.py", line 4, in    import subprocess  
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\subprocess.py", line 642, in    
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\subprocess.py", line 640, in _setup_platform  
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\warnings.py", line 56, in warn  
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\warnings.py", line 56, in warn IndexError: index out of range: 0

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.