← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #662319]: My script running perfectly through batch file but giving error in the end

 

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

    Status: Answered => Open

sami baig is still having a problem:

Giving below FindFailed error on this code:    java -jar E:\SikuliX1.1.1\sikulixapi.jar -r D:\ProjectKiosk\Scripts\test.sikuli -- a1 a2 a3

[error] JythonSupport: execFile: returns:
Traceback (most recent call last):
  File "D:\ProjectKiosk\Scripts\test2.sikuli\test2.py", line 5, in <module>
    doubleClick("1514219980851.png")
  Line 2759, in file Region.java

        at org.sikuli.script.Region.wait(Region.java:2759)
        at org.sikuli.script.Region.find(Region.java:2336)
        at org.sikuli.script.Region.getLocationFromTarget(Region.java:3213)
        at org.sikuli.script.Region.doubleClick(Region.java:3745)
        at org.sikuli.script.Region.doubleClick(Region.java:3730)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)

org.sikuli.script.FindFailed: FindFailed: 1514219980851.png: (69x75) in S(0)[0,0 1366x768] E:Y, T:3.0
  Line 2759, in file Region.java


Giving debug on this code:    java -Dsikuli.Debug=3 -jar E:\SikuliX1.1.1\sikulixapi.jar -r D:\ProjectKiosk\Scripts\test.sikuli -- a1 a2 


[debug] Debug.init: from sikuli.Debug: on: 3
[debug] RunTimeINIT: loadOptions: check: C:\Users\Sami
[debug] RunTimeINIT: loadOptions: check: C:\Users\Sami
[debug] RunTimeINIT: loadOptions: check: C:\Users\Sami\AppData\Roaming\Sikulix\SikulixStore
[debug] RunTimeINIT: global init: entering as: API
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1366 x 768
[debug] RunTimeINIT: runs as sikulixapi.jar in: E:\SikuliX1.1.1
[debug] RunTimeINIT: exists libs folder at: C:\Users\Sami\AppData\Roaming\Sikulix\SikulixLibs_201703300100
[debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
C:\Users\Sami\AppData\Roaming\Sikulix\SikulixLibs_201703300100
[debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
***** show environment for API (build 201703300100)
user.home: C:\Users\Sami
user.dir (work dir): C:\Users\Sami
user.name: Sami
java.io.tmpdir: C:\Users\Sami\AppData\Local\Temp
running 32Bit on Windows (10.0) from a jar
java 8-32 version 1.8.0_152-b16 vm 25.152-b16 class 52.0 arch x86
app data folder: C:\Users\Sami\AppData\Roaming\Sikulix
libs folder: C:\Users\Sami\AppData\Roaming\Sikulix\SikulixLibs_201703300100
executing jar: E:\SikuliX1.1.1\sikulixapi.jar
*** classpath dump sikulix
  0: /E:/SikuliX1.1.1/sikulixapi.jar
*** classpath dump end
***** show environment end
[debug] RunTimeAPI: global init: leaving
[debug] RunTimeAPI: initAPI: entering
[debug] RunTimeAPI: resourceList: enter
[debug] RunTimeAPI: resourceLocation: (class org.sikuli.script.RunTime) /Lib/sikuli
[debug] RunTimeAPI: resourceList: having jar: jar:file:/E:/SikuliX1.1.1/sikulixapi.jar!/Lib/sikuli
[debug] RunTimeAPI: files exported: 7 from: Lib/sikuli to:
 C:\Users\Sami\AppData\Roaming\Sikulix\Lib\sikuli
[debug] RunTimeAPI: initAPI: leaving
[debug] Runner: commandline:
[debug] --- Sikuli parameters ---
[debug] 1: -r
[debug] 2: D:\ProjectKiosk\Scripts\test.sikuli
[debug] --- User parameters ---
[debug] 1: a1
[debug] 2: a2
[debug] 3: a3
[debug] Runner: givenScriptName:
D:\ProjectKiosk\Scripts\test.sikuli
[debug] Runner: Trying to run script:
D:\ProjectKiosk\Scripts\test.sikuli\test.py
[debug] JythonSupport: init: starting
[debug] JythonSupport: trying to use setup downloaded Jython:
C:\Users\Sami\AppData\Roaming\Sikulix\SikulixDownloads\jython-standalone-2.7.0.jar
[debug] RunTimeAPI: addToClasspath:
file:/C:/Users/Sami/AppData/Roaming/Sikulix/SikulixDownloads/jython-standalone-2.7.0.jar
[debug] JythonSupport: init: success
[debug] JythonSupport: SikulixForJython: init: starting
[debug] RunTimeAPI: resourceLocation: (class org.sikuli.script.RunTime) /Lib/sikuli/Sikuli.py
[debug] JythonSupport: sikuli/*.py not found on current Jython::sys.path
[debug] JythonSupport: added as Jython::sys.path[0]:
C:\Users\Sami\AppData\Roaming\Sikulix\Lib
[debug] JythonSupport: added as Jython::sys.path[0]:
C:\Users\Sami\AppData\Roaming\Sikulix\Lib\site-packages
[debug] JythonSupport: SikulixForJython: init: success
[debug] Jython: sikuli: Sikuli: starting init
[debug] RunTimeAPI: loadLib: VisionProxy.dll
[debug] Mouse: init start
[debug] Mouse: init end
[debug] RunTimeAPI: loadLib: WinUtil.dll
[debug] Jython: requested to use as default region: S(0)[0,0 1366x768]
[debug] Jython: sikuli: Sikuli: ending init
[debug] ImagePath: new BundlePath:
/D:/ProjectKiosk/Scripts/test.sikuli/
[debug] ( Ctrl )  TYPE "g"
[debug] Region: ( Ctrl )  TYPE "g"
[debug]  TYPE "#BACK."
[debug] Region:  TYPE "#BACK."
[debug]  TYPE "O34#ENTER."
[debug] Region:  TYPE "O34#ENTER."
[debug] ( Ctrl )  TYPE "c"
[debug] Region: ( Ctrl )  TYPE "c"
[debug] RunTimeAPI: final cleanup
[debug] FileManager: deleteFileOrFolder:
C:\Users\Sami\AppData\Local\Temp\Sikulix_408412975

C:\Users\Sami>O34
'O34' is not recognized as an internal or external command,
operable program or batch file.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.