-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: DLL load failed while importing tesserocr: The specified module could not be found. #332
Comments
Ok, after some testing I found that there is a compatibility issue between the latest version of Tesseract in conda-forge and tesserocr. The ones to the left are the latest versions, which end up with
If you use This is a temporary fix, but I am not sure if the error arises from the build of Tesseract in conda-forge or if it a problem with tesserocr itself. |
I guess you're installing tesserocr via conda-forge? Unfortunately the tesserocr build has been broken for a while (2 or 3 versions ago). The original maintainer isn't active on it and I'm no conda user myself, if anyone wants to take up maintenance responsibilities it would be great. |
I also found that libarchive is required to run Tesseract on Windows. I think as long as you have a working If you want to try our build of the Tesserocr stack you can pull it from here. I've tested it on Linux and Windows using the Post Install steps. With big thanks to @sirfz for that documentation. |
|
There is an option in Tesseract to disable |
Confirmed that these settings removed the need to ship extra dependencies. For CMake:
For Autotools:
|
I used to be able to just import tesserocr and use it from any script. All of the sudden, it is now showing the error:
ImportError: DLL load failed while importing tesserocr: The specified module could not be found.
I have created a clean and new environment, using Python 3.11 and 3.12, and it fails with the same error.
I also created a new Python file that only contains the line
import tesserocr
and it gives the same error.I have checked and Tesseract works as expected:
Am I missing something that recently changed and broke backwards compatibility or why is this error showing up?
EDIT: I have tried on a different machine, using Windows 11, installing a fresh copy of Miniforge3 and a new env. Just installed Python 3.12, Tesseract, and Tesserocr. Still failing with the same error. Tried to follow the instructions and compile it manually, but still fails. Any help?
The text was updated successfully, but these errors were encountered: