chronograph-pe / lambda-OCRmyPDF

Adapting the python library OCRmyPDF to run in an AWS Lambda Function
GNU Affero General Public License v3.0
15 stars 4 forks source link

AWS Lambda deprecated Python 3.6 runtime #8

Open joshsabol46 opened 1 year ago

joshsabol46 commented 1 year ago

AWS Lambda deprecated Python 3.6 runtime

Running the default zip on Python 3.11 and 3.7 resulted in Test errors related to missing modules (e.g. _cffi_backend).

Can this be updated to be compatible with a newer, supported runtime like Python 3.11?

k-cardon commented 3 weeks ago

Hi @joshsabol46 , I'm running into this issue as well. Did you find a workaround?

joshsabol46 commented 3 weeks ago

Abandoned this. Was able to make ocrmypdf work with Docker image upload in AWS Lambda

k-cardon commented 3 weeks ago

@joshsabol46 thanks so much, could I ask you to share a bit more about how you deployed it on AWS Lambda? I am an early career developer so still learning.

joshsabol46 commented 3 weeks ago

Tbh, about ~12 hours of troubleshooting with ChatGPT 😅. It's much better nowadays so you'll probably have better luck

k-cardon commented 3 weeks ago

Great thanks! I appreciate your response--I also used ChatGPT and managed to deploy, but now have to figure out how to integrate into the rest of the project. Thanks so much for suggesting this direction for me! Have been trying to solve the OCR deploy for a while now.