Issue with Running Python application in Lambda in AWS Academy

0

I am trying to create a serverless Watermark application using AWS Lambda, S3 and API. I have code in the Lambda function inline code. However if I run or even test, I keep getting an error

[ERROR] Runtime.ImportModuleError: Unable to import module ‘lambda_function’: No module named ‘PIL’

I already crated a layer in the lambda function with Pillow but still have the error. I also tried to combine the Pillow and code, uploaded as Zip but still have the same error. I also tried different Python runtime 3.8, 3.9 but still get the same error. Any support would be appreciated.

1 Answer
0
profile pictureAWS
EXPERT
answered 10 months 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