← Back to team overview

sikuli-driver team mailing list archive

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

 

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.