Closed samwilson closed 3 years ago
@samwilson thank you so much for reporting it. What you found is also true for other methods that also check tesseractVersion before checking the executable's presence. I'll let you know as soon as I push the fix. Thanks again.
@samwilson fix should be available in version 2.11.2. Feel free to re-open this issue in case the fix isn't complete, and thanks again for taking the time to report this bug!
Terrific, thank you for the speedy response! :-)
Expected behavior
The
run()
method should throw the following error for an unknown executable even when usingimageData()
to set the image.Actual behavior
The actual error that is shown is:
This is because
FriendlyErrors::checkTesseractVersion()
is called inimageData()
, which happens beforeFriendlyErrors::checkTesseractPresence()
is called inrun()
.Steps to reproduce the behavior
A workaround is to do this:
Environment
Linux 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64