← Back to team overview

sikuli-driver team mailing list archive

[Question #708171]: Sikuli OCR issue: cannot find liblept.5.dylib

 

New question #708171 on SikuliX:
https://answers.launchpad.net/sikuli/+question/708171

Hi! RaiMan
I recently updated some of our mac machines to the latest macOS Sonoma 14.0. 

tesseract -v
tesseract 5.3.3
 leptonica-1.83.1
  libgif 5.2.1 : libjpeg 8d (libjpeg-turbo 3.0.0) : libpng 1.6.40 : libtiff 4.6.0 : zlib 1.2.11 : libwebp 1.3.2 : libopenjp2 2.5.0

When I try to get text from an image I got the following error:
org.sikuli.script.SikuliXception: OCR: start: Tesseract library problems: dlopen(/Users/rr_admin/Library/Caches/JNA/temp/jna16833560915096266612.tmp, 0x0009): Library not loaded: /usr/local/opt/leptonica/lib/liblept.5.dylib
  Referenced from: <0D1357B6-77AE-3076-A5C0-4C0F365DB8DE> /Users/rr_admin/Library/Caches/JNA/temp/jna16833560915096266612.tmp
  Reason: tried: '/usr/local/opt/leptonica/lib/liblept.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/leptonica/lib/liblept.5.dylib' (no such file), '/usr/local/opt/leptonica/lib/liblept.5.dylib' (no such file), '/usr/lib/liblept.5.dylib' (no such file, not in dyld cache), '/usr/local/Cellar/leptonica/1.83.1/lib/liblept.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/leptonica/1.83.1/lib/liblept.5.dylib' (no such file), '/usr/local/Cellar/leptonica/1.83.1/lib/liblept.5.dylib' (no such file), '/usr/lib/liblept.5.dylib' (no such file, not in dyld cache)


I found the library directory is actually : /usr/local/Cellar/leptonica/1.83.1/lib/libleptonica.6.dylib

****************************************************************************************************
I have an older working mac machine with macOS Big Sur 11.2.3

tesseract -v
tesseract 4.1.1
 leptonica-1.80.0
  libgif 5.2.1 : libjpeg 9d : libpng 1.6.37 : libtiff 4.3.0 : zlib 1.2.11 : libwebp 1.2.0 : libopenjp2 2.4.0

It does have the directory: /usr/local/Cellar/leptonica/1.80.0/lib/liblept.5.dylib

****************************************************************************************************

My question is: how can I solve the problem on newer operating system for mac machine? should I downgrade leptonica?
Thanks.

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