Problem loading fitz module in AWS Lambda

0

I was trying to create a lambda function using PyMuPDF i create the virtual env in my computer and install PyMuPDF adding layers according to the python version 3.9, 3.8 and 3.7 but every time that import fitz in the lambda function I got:

{
  "errorMessage": "Unable to import module 'lambda_function': No module named 'fitz'",
  "errorType": "Runtime.ImportModuleError",
  "stackTrace": []
}

What we suppose to do

1 Answer
0

Can you please try deploying the package using the AWS Codebuild it should work fine or just Go to CodeCommit and "create repository", then upload your project to CodeCommit.

profile pictureAWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions