keithrozario / Klayers

Python Packages as AWS Lambda Layers
Other
2.14k stars 309 forks source link

[BUG] Pytesseract - can not open libpng12 so #372

Closed MittalShruti closed 10 months ago

MittalShruti commented 10 months ago

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

keithrozario commented 10 months ago

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