Re: [Sikuli-driver] [Question #702998]: [2.0.5] Python script containing non-ASCII (code or comment) runs in IDE, but not as exported jar --- fixed in 2.0.6

2023-03-22 Thread Matteo Acquarone
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Status: Answered => Solved

Matteo Acquarone confirmed that the question is solved:
Thanks RaiMan!

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #705646]: wrong char printed when reading output from commandline

2023-02-28 Thread Matteo Acquarone
Question #705646 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/705646

Status: Open => Solved

Matteo Acquarone confirmed that the question is solved:
Hi all,
I'm sorry, there was a problem in the string converter, all ok!

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #705646]: wrong char printed when reading output from commandline

2023-02-28 Thread Matteo Acquarone
New question #705646 on SikuliX:
https://answers.launchpad.net/sikuli/+question/705646

hello, 
I have a commandline windows sw that outputs a string, the output I can see 
from the commandline is for example

usern...@mailserver.com

In the sikulix script I'm using 

subprocess import Popen, PIPE, STDOUT 
process = Popen([dirPath+"\\\CmdLineSw.exe","-d", strPass], stdout=PIPE, 
stderr=PIPE)
stdout, stderr = process.communicate()
   
to launch the commandline and retrieve the output as a string without the 
windows cmd be visible
When reading the same from within sikulix I have some strange char in the 
printout:
Username@=username�mailserver�com

this is the line I use to print (I've put the "@" in the constant part of the 
printout to check if it was printable):

print "Username@=" + strPass

What am I missing?
Thanks in advance

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #702998]: script that runs from IDE but not from Commandline

2022-11-13 Thread Matteo Acquarone
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Matteo Acquarone posted a new comment:
Hi RaiMan,
thanks for the answer, and don't worry for delays, your support has always been 
so prompt that is not a problem...

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #702998]: script that runs from IDE but not from Commandline

2022-11-07 Thread Matteo Acquarone
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Status: Expired => Open

Matteo Acquarone is still having a problem:
HI, does this has happened only to me or is a known problem?

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #702998]: script that runs from IDE but not from Commandline

2022-09-26 Thread Matteo Acquarone
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Status: Expired => Open

Matteo Acquarone is still having a problem:
Hi, any news regarding this?
In the meantime I've tested also with the latest 
sikulixidewin-2.0.6-20220817.114540-15 and my problem is still there.
Is this a known bug?

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #702998]: script that runs from IDE but not from Commandline

2022-09-08 Thread Matteo Acquarone
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Matteo Acquarone gave more information on the question:
HI,
I found a workaround for this problem, that is to embed into the script folder 
a text file with the desired characters, read the file at runtime and then use 
the file content as the  tessedit_char_blacklist for Tesseract.
I'm ok with that workaround, but if a better solution exists I'd be glad to 
test it!

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #702998]: script that runs from IDE but not from Commandline

2022-09-06 Thread Matteo Acquarone
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Matteo Acquarone gave more information on the question:
HI,
another bit of hopefully useful information: I noticed that when trying to 
export the executable jar file there is this message in the IDE:
"SyntaxError: ("Non-ASCII character in file 
'C:\\Users\\MyUser\\AppData\\Roaming\\Sikulix\\SikulixStore\\SikulixTemp\\scriptCompiled\\DaimlerTool.py',
 but no encoding declared; see http://www.python.org/peps/pep-0263.html for 
details",)"
As can be seen from the example script above there is the coding accordingly to 
the pep-0263
I made a test with the other possible format with the same (bad) result both on 
the message panel and of the missing .class file into the jar.
These are the formats I've tested:
# This Python file uses the following encoding: utf-8
and
#!/usr/local/bin/python
# coding: utf-8 
Both on the very first line of the script.
It seems "as if" for some reason the compiler is not able to find the conding 
message.
Hope this helps to find a solution..
Thanks

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #702998]: script that runs from IDE but not from Commandline

2022-08-31 Thread Matteo Acquarone
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Matteo Acquarone gave more information on the question:
Hi all, 
another finding:
the problem is also present if the £ char is in a comment, and not in a 
runnable part of the script, e.g. this script works from the ide but not from 
the commandline:

#!/usr/bin/python
# -*- coding: utf-8 -*-
#£ 
popup("x")

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #702998]: script that runs from IDE but not from Commandline

2022-08-31 Thread Matteo Acquarone
New question #702998 on SikuliX:
https://answers.launchpad.net/sikuli/+question/702998

Hello,
I had a script that was running ok if launched from the IDe but if, after 
generating runnable jar, launching it from commandline was failing.
The script is using OCR and the tessedit_char_blacklist that contains some char 
that I don't want to be found, like "£".
I cut away anything that worked and I got this minimal script that exhibits the 
problem:

#!/usr/bin/python
# -*- coding: utf-8 -*-
popup("£")

When launched from the IDE the popup shows "£", but the executable generated 
jar does not contain the script class and so it doesn't works.
i.e. If the pop-up contains something like "x" the executable jar contains 
these folder and files:
META-INF\
org\
__main__$py.class
__run__$py.class
TestNoCmd$py.class
and works if launched from commandline.
If the popup contains the "£" char the TestNoCmd$py.class file disappears from 
the jar and with the same commandline it doesn't works.
Since I need to exclude the pound char (and other) from the OCR, and to deliver 
the script launchable from commandline, there is a solution?

The output of the two commandline with -v -d3 option is this if everything works
c:\Projects\DataPurchase\REACT\SikuliX\Test_h20>"c:\Program 
Files\RedHat\java-1.8.0-openjdk\bin\java.exe"   -jar 
c:\Users\MyUser\Desktop\Down\SikuliX\sikulixapi-2.0.5-win.jar   -r  
TestNoCmd_sikuli.jar -v -d3
[DEBUG]startUp: API: Running: 
C:\Users\MyUser\Desktop\Down\SikuliX\sikulixapi-2.0.5-win.jar
[DEBUG]startUp: API: AppData: C:\Users\MyUser\AppData\Roaming\Sikulix
[DEBUG]startUp: API: starting with classpath: 
c:\Users\MyUser\Desktop\Down\SikuliX\sikulixapi-2.0.5-win.jar ...
[DEBUG]startUp: API: no extensions.txt nor valid content
[35 debug] RunTime:temp folder ok: 
C:\Users\MyUser\AppData\Local\Temp\Sikulix_1870881543
Options: *** options dump
Options: testing =
Options: OptionsFile = 
C:\Users\MyUser\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
* show environment for 2.0.5 API
user.home: C:\Users\MyUser
work dir: c:\Projects\DataPurchase\REACT\SikuliX\Test_h20
running on Windows 10.0 from a jar
running Java Red Hat, Inc. 1.8.0_342-b07
java.io.tmpdir: C:\Users\MyUser\AppData\Local\Temp
app data folder: C:\Users\MyUser\AppData\Roaming\Sikulix
executing jar: C:\Users\MyUser\Desktop\Down\SikuliX\sikulixapi-2.0.5-win.jar
*** classpath dump sikulix
  0: file:/C:/Users/MyUser/Desktop/Down/SikuliX/sikulixapi-2.0.5-win.jar
*** classpath dump end
* show environment end
[DEBUG]startUp: API: *** leaving start
[12 debug] Sikulix: starting API
[32 debug] RunTime:temp folder ok: 
C:\Users\MyUser\AppData\Local\Temp\Sikulix_1983411274
Options: *** options dump
Options: testing =
Options: OptionsFile = 
C:\Users\MyUser\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
* show environment for 2.0.5 API
user.home: C:\Users\MyUser
work dir: c:\Projects\DataPurchase\REACT\SikuliX\Test_h20
running on Windows 10.0 from a jar
running Java Red Hat, Inc. 1.8.0_342-b07
java.io.tmpdir: C:\Users\MyUser\AppData\Local\Temp
app data folder: C:\Users\MyUser\AppData\Roaming\Sikulix
executing jar: C:\Users\MyUser\Desktop\Down\SikuliX\sikulixapi-2.0.5-win.jar
*** classpath dump sikulix
  0: file:/C:/Users/MyUser/Desktop/Down/SikuliX/sikulixapi-2.0.5-win.jar
  1: file:/C:/Users/MyUser/Desktop/Down/SikuliX/sikulixapi-2.0.5-win.jar
*** classpath dump end
* show environment end
[2553 debug] Runner: added: PackedSikulix [zip] application/zip
[2554 debug] Runner: init: class 
org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[2554 debug] Runner: added: Text [txt] text/text
[2555 debug] Runner: added: SikulixJar [jar] text/jar
[2557 debug] Runner: added: Sikulix [] directory/sikulix
[2560 debug] Runner: added: PowerShell [ps1] text/powershell
[2570 debug] Runner: added: Jython [py] text/jython
[2571 debug] Runner: added: SikulixExecutableJar [executablejar] text/jar
[2577 debug] Runner: added: PackedSikulix [skl] text/skl
[2588 debug] Runner: added: NetworkRunner [] NET
[3234 debug] HotkeyManager: add Abort Hotkey: ALT+MAIUSC C (67, 9)
[3307 debug] Runner: runscript: running script: 
C:\Users\MyUser\AppData\Local\Temp\sikulix3779437648305334957\TestNoCmd$py.class
[3310 debug] JythonRunner: starting initialization
[5394 debug] Jython: added as Jython::sys.path[0]:
C:\Users\MyUser\AppData\Roaming\Sikulix\Lib\site-packages
[5397 debug] Jython: * sys.path
 0: C:\Users\MyUser\AppData\Roaming\Sikulix\Lib\site-packages
 1: C:\Users\MyUser\AppData\Roaming\Sikulix\Lib
 2: C:\Users\MyUser\Desktop\Down\SikuliX\Lib
 3: C:\Users\MyUser\Desktop\Down\SikuliX\sikulixapi-2.0.5-win.jar\Lib
 6: C:\Users\MyUser\.local\lib\jython2.7\site-packages
[5414 debug] JythonRunner: ready: version 2.7.2
[debug] ImagePath: new BundlePath: 
C:\Users\MyUser\AppData\Local\Temp\sikulix3779437648305334957
[debug] Jython: SikulixForJython: 

[Sikuli-driver] [Bug 1800496] [NEW] warning message related to a commented line

2018-10-29 Thread Matteo Acquarone
Public bug reported:

Hello,
On Sikulix 1.1.4, windows 10 64bit, with the the script below (only one line)
#  ' 
writing a comment line like this one when you save the script causes the 
appearance of a warning saying 
Delete Images on save etcetc, see attachment.
Then everything works and no images are actually deleted.

** Affects: sikuli
 Importance: Undecided
 Status: New

** Attachment added: "warning message box"
   
https://bugs.launchpad.net/bugs/1800496/+attachment/5206786/+files/2018-10-29_16h52_50.png

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

Title:
  warning message related to a commented line

Status in Sikuli:
  New

Bug description:
  Hello,
  On Sikulix 1.1.4, windows 10 64bit, with the the script below (only one line)
  #  ' 
  writing a comment line like this one when you save the script causes the 
appearance of a warning saying 
  Delete Images on save etcetc, see attachment.
  Then everything works and no images are actually deleted.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #675365]: [1.1.4] opening Sikulix with an error message, then everything works correctly

2018-10-24 Thread Matteo Acquarone
Question #675365 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675365

Matteo Acquarone posted a new comment:
Hi, 
I took that call from this example:
result = Do.popError("autoclosed after 3 seconds", "Severe Error", 3, 
Region(300,300))
that is in the   Do.input([parameters]) explanation in this page:
https://sikulix-2014.readthedocs.io/en/latest/interaction.html#popups-and-input-dialogs
...I live perfectly also with that message though...
;-)
Thanks

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #675365]: [1.1.4] opening Sikulix with an error message, then everything works correctly

2018-10-23 Thread Matteo Acquarone
Question #675365 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675365

Status: Answered => Solved

Matteo Acquarone confirmed that the question is solved:
Hello,
sorry for delay, I'm in a business trip..
I searched all the projects I have open in the ide and the only uncommented 
occurrence of the keyword region is this one:
result = Do.input("Scrivi messaggioAl Server", "messaggio", "Scriviqui", 
Region(300,300))
and there are other commented occurrences like this one:
result = Do.input("Scrivi messaggioAl Server", "messaggio", str) #, 
Region(300,300)
Anyway I do not see any problem running my scripts, so I think I can say that 
your prompt response answered my question
Thanks

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #675365]: [1.1.4] opening Sikulix with an error message, then everything works correctly

2018-10-23 Thread Matteo Acquarone
Question #675365 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675365

Matteo Acquarone confirmed that the question is solved:
Thanks RaiMan, that solved my question.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #675365]: [1.1.4] opening Sikulix with an error message, then everything works correctly

2018-10-19 Thread Matteo Acquarone
New question #675365 on Sikuli:
https://answers.launchpad.net/sikuli/+question/675365

Hello all,
when I open the 1.1.4 ide, with some projects opened, I have in the message tab 
this:
[error] EditorRegionButton: createFromString: Problem parsing region expression 
3
[error] EditorRegionButton: createFromString: Problem parsing region expression 
3
[error] EditorRegionButton: createFromString: Problem parsing region expression 
3
[error] EditorRegionButton: createFromString: Problem parsing region expression 
3
[error] EditorRegionButton: createFromString: Problem parsing region expression 
3

Then everything works correctly, so I have no real problem, what is the meaning 
of this message(s)?
Thanks in advance

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #674852]: Jython: socket connecting only once, then Java Exception

2018-10-09 Thread Matteo Acquarone
Question #674852 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674852

Status: Answered => Solved

Matteo Acquarone confirmed that the question is solved:
Thanks a lot!
after searching it seems the the netty library could be the cause of the 
problem, see:
https://stackoverflow.com/questions/32239955/why-does-this-jython-loop-fail-after-a-single-run
I'm not so proficient in Python nor in Jave to give a better answer...

Anyway by using the command line I'm able to "repeat repeatedly" my tests...
Thanks again

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #674590]: installation problem for Sikulix 1.1.4 on windows 10

2018-10-09 Thread Matteo Acquarone
Question #674590 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674590

Status: Open => Solved

Matteo Acquarone confirmed that the question is solved:
the whole question was my mistake, the needed files are available

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #674852]: Jython: socket connecting only once, then Java Exception

2018-10-08 Thread Matteo Acquarone
Question #674852 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674852

Matteo Acquarone posted a new comment:
ok, 
I'll go searching the web...the not receiving is intentional, I want first to 
be able to repeatedly send data and then I'll take care of receiving it...
I tried the same code with Pydev (eclipse) with jython interpreter (without 
only the pop-up) and it work every time
thanks for your prompt response.
Matteo
p.s. code for PyDev:

import socket
msg="hello world From SikuliX\n"
data = bytearray( msg)
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 client_socket.connect(("192.168.100.1", 5050))
client_socket.send(data)
client_socket.close()  
exit()

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #674852]: Jython: socket connecting only once, then Java Exception

2018-10-08 Thread Matteo Acquarone
Question #674852 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674852

Matteo Acquarone posted a new comment:
Another bit of information,
the line that causes the problem at the second run is this one:
client_socket.connect(("192.168.100.1", 5050))
Thanks for any info

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #674852]: [1.1.4] socket connecting only once, then Java Exception

2018-10-08 Thread Matteo Acquarone
New question #674852 on Sikuli:
https://answers.launchpad.net/sikuli/+question/674852

Hello all,
I'm trying to have Sikulix exchange information with a server that have to take 
some actions before each test, I'm using the below code (well, similar, but 
this one shows exactly the same problem).
For testing reasons so far the server is on my pc.
At first attempt everything runs well and on the receiving side I see "hello 
world From SikuliX"
When I try to run again the same script without closing the IDE I have a Java 
Exception, see below since it is very long.

I'm not an expert of python, so this may be a stupid problem...in case forgive 
me
Thank in advance for your help

This is the code on Sikulix (has some additional and unneeded popup for debug):

import socket
result = Do.popAsk("REadyToconnect?\nclicked within 30 seconds", 
"testNetWork",30)
if None == result:
  print "nothing to do"
elif result:
msg="hello world From SikuliX\n"
data = bytearray( msg)
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(("192.168.100.1", 5050))
client_socket.send(data)
client_socket.close()
print "user said yes to\n" + msg
else:
print "user said no"
exit()  

This is the output from Sikulix;
user said yes to
hello world From SikuliX

[info] Exit code: 0

And this is the exception I get at the second attempt:
ott 08, 2018 3:13:59 PM org.python.netty.channel.AbstractChannel$AbstractUnsafe 
register
WARNING: Force-closing a channel whose registration task was not accepted by an 
event loop: [id: 0xf7ef9343]
java.util.concurrent.RejectedExecutionException: event executor terminated
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:821)
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:327)
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:320)
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:746)
at 
org.python.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:475)
at 
org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:80)
at 
org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:74)
at org.python.netty.channel.Multit

hreadEventLoopGroup.register(MultithreadEventLoopGroup.java:86)
at 
org.python.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:332)
at 
org.python.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:283)
at org.python.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:279)
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)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:206)
at org.python.core.PyObject.__call__(PyObject.java:497)
at org.python.core.PyObject.__call__(PyObject.java:501)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at 
_socket$py._connect$78(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py:911)
at _socket$py.call_fu

nction(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:154)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at 
_socket$py.connect$81(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py:937)
at 
_socket$py.call_function(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:199)
at org.python.core.PyFunction.__call__(PyFunction.java:482)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.__call__(PyMethod.java:228)
at org.python.core.PyMethod.__call__(PyMethod.java:223)
at org.python.core.PyObject._callextra(PyObject.java:620)
at _socket$py.meth$119(C:/Users/ACM1COR/AppData/Roaming/Si

kulix/Lib/_socket.py:1441)
at 
_socket$py.call_function(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyFunction.function___call__(PyFunction.java:471)
at org.python.core.PyFunction.__call__(PyFunction.java:466)
at org.python.core.PyFunction.__call__(PyFunction.java:461)
at org.python.modules._functools.PyPartial.partial___call__(PyPartial.java:125)
at org.python.modules._functools.PyPartial.__call__(PyPartial.java:80)
at 

Re: [Sikuli-driver] [Question #674852]: [1.1.4] socket connecting only once, then Java Exception

2018-10-08 Thread Matteo Acquarone
Question #674852 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674852

Description changed to:
Hello all,
I'm trying to have Sikulix exchange information with a server that have to take 
some actions before each test, I'm using the below code (well, similar, but 
this one shows exactly the same problem).
For testing reasons so far the server is on my pc.
At first attempt everything runs well and on the receiving side I see "hello 
world From SikuliX"
When I try to run again the same script without closing the IDE I have a Java 
Exception, see below since it is very long.

Closing the IDE and reopening it gives me another successful attempt

I'm not an expert of python, so this may be a stupid problem...in case forgive 
me
Thank in advance for your help

This is the code on Sikulix (has some additional and unneeded popup for
debug):

import socket
result = Do.popAsk("REadyToconnect?\nclicked within 30 seconds", 
"testNetWork",30)
if None == result:
  print "nothing to do"
elif result:
msg="hello world From SikuliX\n"
data = bytearray( msg)
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(("192.168.100.1", 5050))
client_socket.send(data)
client_socket.close()
print "user said yes to\n" + msg
else:
print "user said no"
exit()  

This is the output from Sikulix;
user said yes to
hello world From SikuliX

[info] Exit code: 0

And this is the exception I get at the second attempt:
ott 08, 2018 3:13:59 PM org.python.netty.channel.AbstractChannel$AbstractUnsafe 
register
WARNING: Force-closing a channel whose registration task was not accepted by an 
event loop: [id: 0xf7ef9343]
java.util.concurrent.RejectedExecutionException: event executor terminated
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:821)
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:327)
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:320)
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:746)
at 
org.python.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:475)
at 
org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:80)
at 
org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:74)
at org.python.netty.channel.Multit

hreadEventLoopGroup.register(MultithreadEventLoopGroup.java:86)
at 
org.python.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:332)
at 
org.python.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:283)
at org.python.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:279)
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)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:206)
at org.python.core.PyObject.__call__(PyObject.java:497)
at org.python.core.PyObject.__call__(PyObject.java:501)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at 
_socket$py._connect$78(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py:911)
at _socket$py.call_fu

nction(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:154)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at 
_socket$py.connect$81(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py:937)
at 
_socket$py.call_function(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:199)
at org.python.core.PyFunction.__call__(PyFunction.java:482)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.__call__(PyMethod.java:228)
at org.python.core.PyMethod.__call__(PyMethod.java:223)
at org.python.core.PyObject._callextra(PyObject.java:620)
at _socket$py.meth$119(C:/Users/ACM1COR/AppData/Roaming/Si

kulix/Lib/_socket.py:1441)
at 
_socket$py.call_function(C:/Users/ACM1COR/AppData/Roaming/Sikulix/Lib/_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyFunction.function___call__(PyFunction.java:471)
at org.python.core.PyFunction.__call__(PyFunction.java:466)
at org.python.core.PyFunction.__call__(PyFunction.java:461)
at 

Re: [Sikuli-driver] [Question #674590]: installation problem for Sikulix 1.1.4 on windows 10

2018-10-02 Thread Matteo Acquarone
Question #674590 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674590

Description changed to:
Sorry for this question, i rechecked the download page and it correctly points 
to the download of standalone Jthon...I was in hurry...
sorry again, best regards
Matteo


Hello,
I downloaded the Sikulix 1.1.4 from teh repository, but doubleclicking on 
sikulix.jar it was saying there were no jython and exit.
I tried installing jython(jython-installer-2.7.0.jar) with success, but have 
had the same result.
Then I installed version 1.1.3 (sikulixsetup-1.1.3.jar) and it has downloaded 
the "jython-standalone-2.7.1.jar", and it is working.

Since I'd like to test the 1.1.4 version, I tried to launch the sikulix.jar in 
the same folder of jython-standalone-2.7.1.jar and it worked perfectly, and now 
I'm testing with it.
It this the correct procedure to follow or could I have "strange" results?
Thanks for this fantastic tool!!
Matteo

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #674590]: installation problem for Sikulix 1.1.4 on windows 10

2018-10-02 Thread Matteo Acquarone
New question #674590 on Sikuli:
https://answers.launchpad.net/sikuli/+question/674590

Hello,
I downloaded the Sikulix 1.1.4 from teh repository, but doubleclicking on 
sikulix.jar it was saying there were no jython and exit.
I tried installing jython(jython-installer-2.7.0.jar) with success, but have 
had the same result.
Then I installed version 1.1.3 (sikulixsetup-1.1.3.jar) and it has downloaded 
the "jython-standalone-2.7.1.jar", and it is working.

Since I'd like to test the 1.1.4 version, I tried to launch the sikulix.jar in 
the same folder of jython-standalone-2.7.1.jar and it worked perfectly, and now 
I'm testing with it.
It this the correct procedure to follow or could I have "strange" results?
Thanks for this fantastic tool!!
Matteo

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp