Error initializing Tesseract.

Hi there,

I am trying to use Tess4j in me project and successfully installed the KNIME Image Processing extension and the Tess4j node shows up.

However, the node is not working and I got this error message every time open KNIME:

ERROR NativeLibBundleActivator            /Applications/KNIME 4.0.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib: dlopen(/Applications/KNIME 4.0.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib, 1): Library not loaded: /usr/local/lib/liblept.4.dylib
  Referenced from: /Applications/KNIME 4.0.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib
  Reason: image not found
ERROR NativeLibBundleActivator            Could not load org.knime.knip.tess4j

Also, I got this error message every time run the Tess4j node:

ERROR Tess4J               2:10       Error initializing Tesseract.
ERROR Tess4J               2:10       Execute failed: Unable to load library 'tesseract': Native library (darwin/libtesseract.dylib) not found in resource path (/Applications/KNIME 4.0.0.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar)
ERROR Tess4J               2:10       Error initializing Tesseract.
ERROR Tess4J               2:10       Execute failed: Could not initialize class net.sourceforge.tess4j.TessAPI

I’m using MacOS, KNIME 4.0.0

Thank you so much in advance! I really appreciate any suggestions.

Hello,

I’m having the same problem when running a Tess4J node.

ERROR Tess4J 0:2 Error initializing Tesseract.
ERROR Tess4J 0:2 Execute failed: Unable to load library ‘tesseract’: Native library (darwin/libtesseract.dylib) not found in resource path (/Applications/KNIME 4.0.1.app/Contents/MacOS//…/Eclipse/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar)
ERROR Tess4J 0:2 Error initializing Tesseract.
ERROR Tess4J 0:2 Execute failed: Could not initialize class net.sourceforge.tess4j.TessAPI

I’m using MacOS, KNIME 4.0.1

Can someone please help?

Thanks.

Hello,
I get the same error messages, and I am also on MacOs Mojave 10.14.6, Knime 4.0.0, and Tess4J Integration 1.3.3.v201907171304 .
It seems that this issue on MacOS dates from Feb 2014 as shown in this thread : Tesseract Node not working
I found that there is a general issue of Tess4J on MacOS : apparently MacOS lib is not in the package. see more here: https://stackoverflow.com/questions/21394537/tess4j-unsatisfied-link-error-on-mac-os-x
(i have not tested yet the solution posted on stackoverflow)

Thanks in advance
Cedric

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.