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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南