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 回答
0
profile pictureAWS
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则