Why lambda function running on core device (raspberry pi) can't use installed python packages?

0

I'm deploying a lambda function to Raspberry Pi and it fails due to: [ERROR] FATAL: lambda_runtime.py:147,Failed to import handler function "lambda_function.lambda_handler" due to exception: No module named 'joblib'. [ERROR] FATAL: lambda_runtime.py:427,Failed to initialize Lambda runtime due to exception: No module named 'joblib'. I have installed the 'joblib' package on Raspberry but it does not recognize it. Is uploading the library along with the code in AWS lambda console, the only way to do this? Or is it related to permissions?

Nana
질문됨 일 년 전242회 조회
1개 답변
0

Hi,

Where is your Python package installed? By default, Greengrass will run component as ggc_user, which means it will not be able to find anything installed to your users directory.

You can configure this here: https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#configure-component-user

Thanks, -joe

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠