Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Couldn't import tesserocr, because locale check error #137
I got a import error.
This error was caused by locale check.
Please see commit .
Simple workaround here .
I think that it is necessary to add the code somewhere in the appropriate place.
In addition, I avoid install error by #129 workaroud.
referenced this issue
Aug 14, 2018
tesseract 4 requires
In my local tests it seems to have no effect with Python 2.7 but crashes with Python 3.6 and 3.7.
I'm reluctant to hard-code this into tesserocr because I'm not sure what the effect would be on other modules or Python's behavior. Maybe someone with more knowledge about this can chip in?
As you said, the hardcoding is undesirable.
IMO, I think that it is necessary to ask the Cython community about handling environment variables.
FYI, other Language's solution.