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

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

Description changed to:
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.

 deleted

-- 
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-13 Thread RaiMan
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Status: Open => Answered

RaiMan changed the question status:
have to check.
sorry for delays even in future

-- 
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-10-11 Thread Launchpad Janitor
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
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-24 Thread Launchpad Janitor
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
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: