[Sikuli-driver] [Question #700657]: [2.0.4]sikulixapi with java 11 on maxOS: problems using OCR features (Tesseract lib missing)

2022-02-17 Thread Juliana XIAO
New question #700657 on SikuliX:
https://answers.launchpad.net/sikuli/+question/700657

I have 7 maxOS test machines, 6 of them are macOS Big Sur and they all working 
well with sikulixapi 2.0.4 OCR feature. But 1 machine is macOS Monterey which 
uses Apple M1 Chip and all the libraries are under different location. I can 
find "/usr/local/opt/leptonica/lib/liblept.5.dylib" on the other 6 test 
machines, but on this machine I find it is located under 
"/opt/homebrew/Cellar/leptonica/1.82.0/lib/liblept.5.dylib". Basically, I found 
all the brew installed libraries under "/usr/local/Cellar" on those 6 machines 
are under "/opt/homebrew/Cellar" on this one special machine. So that when I 
run test on that special machine from eclipse it gives me the following error:

org.sikuli.script.SikuliXception: OCR: start: Tesseract library problems: 
dlopen(/Users/rr_admin/Library/Caches/JNA/temp/jna12082671447273670762.tmp, 
0x0009): Library not loaded: /usr/local/opt/leptonica/lib/liblept.5.dylib
  Referenced from: 
/Users/rr_admin/Library/Caches/JNA/temp/jna12082671447273670762.tmp
  Reason: tried: '/usr/local/opt/leptonica/lib/liblept.5.dylib' (no such file), 
'/usr/lib/liblept.5.dylib' (no such file)
at 
org.sikuli.script.TextRecognizer.getTesseractAPI(TextRecognizer.java:111)
at org.sikuli.script.TextRecognizer.doRead(TextRecognizer.java:350)
at org.sikuli.script.TextRecognizer.readText(TextRecognizer.java:309)
at org.sikuli.script.OCR.readText(OCR.java:691)
at org.sikuli.script.OCR.readText(OCR.java:679)
at org.sikuli.script.Element.text(Element.java:147)
at 
com.pyrsoftware.av.client.desktop.mac.SikuliScreen.grabTextOnRight(SikuliScreen.java:203)
at 
com.pyrsoftware.av.client.desktop.helpers.SikulixHelper.parseVersion(SikulixHelper.java:106)
**
Is there any workaround for this?


-- 
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 #700646]: Cronjob with sikuli

2022-02-17 Thread RaiMan
Question #700646 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700646

Status: Open => Answered

RaiMan proposed the following answer:
I guess the way is to pack the script into a shell script (java -jar
 -r script) and mention this in the cronjob.

-- 
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 #700473]: unable to focus app on mac

2022-02-17 Thread Launchpad Janitor
Question #700473 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700473

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