keithrozario / Klayers

Python Packages as AWS Lambda Layers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Pytesseract - can not open libpng12 so

MittalShruti opened this issue · comments

Describe the bug
While running pytesseract, I am getting this error

[ERROR] TesseractError: (127, 'tesseract: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory')
using the code here

Screenshots
pytesseract

Layer Version ARN:
I am using pytesseract layer for us-west-2 and the tesseract layer as shown in the screenshot below.

Framework:
Serverless

Do you have teaseract install. The layer I have only has the Pytesseract library and not the actual tesseract binary.