← Back to team overview

sikuli-driver team mailing list archive

[Bug 1577936] Re: runsikulix -s with folder

 

no bugs accepted for experimental stuff

** Description changed:

  I am using:
-  Sikuli 1.1.0-201510051707
+  Sikuli 1.1.0-201510051707
  Windows 10 64bit
  
  Summary: I added a folder between the run server folder and the test folder like this:  C:\Users\User\sikulixrunserver\test1\test.sikuli
- In order to get this to work I needed to add another test1 folder inside the .sikuli folder and then copy the .py to it.  The server isn't using this one. 
+ In order to get this to work I needed to add another test1 folder inside the .sikuli folder and then copy the .py to it.  The server isn't using this one.
  
  This is the error I got (notice the folder is added twice):
  FAIL 200 runScript: script not found, not valid or not supported C:\Users\User\sikulixrunserver\test1\test.sikuli\test1\test.py
  [info] RunServer: now waiting on port: 50001 at x.x.x.x
  
  I created the other 'test1' folder inside the .sikuli folder and moved
  the .py and .png into it, but that didn't work.
- 
- Output:
- +++ running this Java
- java version "1.8.0_77"
- Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
- Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
- +++ trying to run SikuliX
- +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar c:\vagrant\sikulix.jar -s
- [info] RunServer: Starting: trying port: 50001
- [info] RunServer: now waiting on port: 50001 at 192.168.0.1
- ############http://localhost:50001/scripts/home/sikulixrunserver
- [info] RunServer: now handling client: Socket[addr=/0:0:0:0:0:0:0:1,port=49342,localport=50001]
- [info] RunServer: processing: <GET /scripts/home/sikulixrunserver HTTP/1.1>
- [info] RunServer: returned:
- HTTP/1.1 200 OK
- 
- PASS 200 scriptFolder now: C:\Users\User\sikulixrunserver
- [info] RunServer: now waiting on port: 50001 at 192.168.0.1
- [info] RunServer: now handling client: Socket[addr=/0:0:0:0:0:0:0:1,port=49343,localport=50001]
- [info] RunServer: processing: <GET /run/test1/test HTTP/1.1>
- [info] RunServer: returned:
- HTTP/1.1 200 OK
- 
- ############http://localhost:50001/run/test1/test
- FAIL 200 runScript: script not found, not valid or not supported C:\Users\User\sikulixrunserver\test1\test.sikuli\test1\test.py
- 
- [info] RunServer: now waiting on port: 50001 at 192.168.0.1
- [info] RunServer: now handling client: Socket[addr=/0:0:0:0:0:0:0:1,port=49344,localport=50001]
- 
- ###Move .py and image to C:/Users/User/sikulixrunserver/test1/test.sikuli/test1
- ############http://localhost:50001/run/test1/test
- [info] RunServer: processing: <GET /run/test1/test HTTP/1.1>
- [debug] ImagePath: new BundlePath:
- /C:/Users/User/sikulixrunserver/test1/test.sikuli/
- [debug] JythonSupport: init: starting
- [debug] JythonSupport: init: success
- [debug] JythonSupport: SikulixForJython: init: starting
- [debug] RunTimeIDE: resourceLocation: (class org.sikuli.ide.SikuliIDE) /Lib/sikuli/Sikuli.py
- [debug] JythonSupport: sikuli/*.py is on Jython::sys.path at:
- C:\vagrant\sikulix.jar\Lib
- [debug] JythonSupport: SikulixForJython: init: success
- [debug] Jython: sikuli: Sikuli: starting init
- [debug] RunTimeIDE: loadLib: VisionProxy.dll
- [debug] Mouse: init
- [debug] KeyBoard: init
- [debug] RunTimeIDE: loadLib: WinUtil.dll
- [debug] Jython: requested to use as default region: R[0,0 1152x864]@S(0)
- [debug] Jython: sikuli: Sikuli: ending init
- [debug] Runner: givenScriptName:
- C:\Users\User\sikulixrunserver\test1\test.sikuli
- [error] FileManager: Script project C:\Users\User\sikulixrunserver\test1\test.sikuli
-  has no script file test.xxx
- [info] RunServer: returned:
- HTTP/1.1 503 Service Unavailable
- 
- FAIL 503 startRunner Python: not possible or crashed with exception
- [info] RunServer: now waiting on port: 50001 at 192.168.0.1
- [info] RunServer: now handling client: Socket[addr=/0:0:0:0:0:0:0:1,port=49345,localport=50001]
- [info] RunServer: processing: <GET /run/test1/test HTTP/1.1>
- [info] RunServer: returned:
- HTTP/1.1 200 OK
- 
- FAIL 200 runScript: script not found, not valid or not supported C:\Users\User\sikulixrunserver\test1\test.sikuli\test1\test.py
- ###Copy .py back into C:/Users/User/sikulixrunserver/test1/test.sikuli/
- ############http://localhost:50001/run/test1/test
- [info] RunServer: now waiting on port: 50001 at 192.168.0.1
- [info] RunServer: now handling client: Socket[addr=/0:0:0:0:0:0:0:1,port=49346,localport=50001]
- [info] RunServer: processing: <GET /run/test1/test HTTP/1.1>
- [debug] Runner: givenScriptName:
- C:\Users\User\sikulixrunserver\test1\test.sikuli
- [debug] Runner: Trying to run script:
- C:\Users\User\sikulixrunserver\test1\test.sikuli\test.py
- [debug] ImagePath: duplicate not added: /C:/Users/User/sikulixrunserver/test1/test.sikuli/
- [debug] Region: find: waiting 3.0 secs for 1459980543766.png to appear in R[0,0 1152x864]@S(0)
- [error] Image: could not be loaded: file:/C:/Users/User/sikulixrunserver/test1/test.sikuli/1459980543766.png
- [error] Image: Image not valid, but TextSearch is switched off!
- [error] JythonSupport: execFile: returns:
- Traceback (most recent call last):
-   File "C:\Users\User\sikulixrunserver\test1\test.sikuli\test.py", line 1, in <module>
-     click("1459980543766.png")
-   Line 2535, in file Region.java
- 
-         at org.sikuli.script.Region.wait(Region.java:2535)
-         at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source)
-         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: Region: doFind: Image not loadable: 1459980543766.png
-   Line 2535, in file Region.java
- 
- 
- [info] RunServer: returned:
- HTTP/1.1 503 Service Unavailable
- 
- FAIL 503 startRunner Python: not possible or crashed with exception
- 
- ###Move image back into to C:/Users/User/sikulixrunserver/test1/test.sikuli/
- ############http://localhost:50001/run/test1/test
- [info] RunServer: now waiting on port: 50001 at 192.168.0.1
- [info] RunServer: now handling client: Socket[addr=/0:0:0:0:0:0:0:1,port=49347,localport=50001]
- [info] RunServer: processing: <GET /run/test1/test HTTP/1.1>
- [debug] Runner: givenScriptName:
- C:\Users\User\sikulixrunserver\test1\test.sikuli
- [debug] Runner: Trying to run script:
- C:\Users\User\sikulixrunserver\test1\test.sikuli\test.py
- [debug] ImagePath: duplicate not added: /C:/Users/User/sikulixrunserver/test1/test.sikuli/
- [debug] Region: find: waiting 3.0 secs for 1459980543766.png to appear in R[0,0 1152x864]@S(0)
- [debug] Image: loaded: 1459980543766.png (file:/C:/Users/User/sikulixrunserver/test1/test.sikuli/1459980543766.png)
- [debug] Image: cached: 1459980543766.png (9 KB) (# 1 KB 9 -- 0 % of 64 MB)
- [debug] Region: find: 1459980543766.png has appeared
- at M[10,102 40x80]@S(S(0)[0,0 1152x864]) S:1.00 C:30,142 [250 msec]
- [debug] CLICK on L(30,142)@S(0)[0,0 1152x864]
- [info] RunServer: returned:
- HTTP/1.1 200 OK
- 
- PASS 200 runScript: returned: 0
- [info] RunServer: now waiting on port: 50001 at 192.168.0.1

** Changed in: sikuli
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/sikuli/+question/293225

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1577936

Title:
  runsikulix -s with folder

Status in Sikuli:
  Invalid

Bug description:
  I am using:
   Sikuli 1.1.0-201510051707
  Windows 10 64bit

  Summary: I added a folder between the run server folder and the test folder like this:  C:\Users\User\sikulixrunserver\test1\test.sikuli
  In order to get this to work I needed to add another test1 folder inside the .sikuli folder and then copy the .py to it.  The server isn't using this one.

  This is the error I got (notice the folder is added twice):
  FAIL 200 runScript: script not found, not valid or not supported C:\Users\User\sikulixrunserver\test1\test.sikuli\test1\test.py
  [info] RunServer: now waiting on port: 50001 at x.x.x.x

  I created the other 'test1' folder inside the .sikuli folder and moved
  the .py and .png into it, but that didn't work.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1577936/+subscriptions


References