Skip to content

ImportError: DLL load failed while importing tesserocr: The specified module could not be found. #332

Open
@joseavegaa

Description

@joseavegaa

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.

Screenshot 2023-10-07 152753
Screenshot 2023-10-07 152640

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:

Screenshot 2023-10-07 153226

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions