0

In AWS Lambda function, I have a python file which includes some packages such as numpy, pandas, pycurl, requests,...

I provided the needed packages in a zip file, but when I run the code, i receive the following error:

Unable to import module 'lambda_function': libssl.so.1.1: cannot open shared object file: No such file or directory

Any idea?

4
  • can you share with us your lambda package structure ? and how you are importing in your main function Commented Jan 31, 2020 at 14:57
  • Does this answer your question? AWS Lambda Python libssl C Library Commented Jan 31, 2020 at 16:29
  • @WalidK I just want to see if the uploaded python packages are working... so inside the lambda handler I only: import numpy, pandas, scipy, pycurl, requests and I print('test)... Commented Feb 1, 2020 at 15:42
  • @syumaK no, this is not my case Commented Feb 1, 2020 at 15:43

1 Answer 1

1

My case was running rust on AWS lambda and end up the error you having.

My way to get it working was including the library as a lambda layer

  1. Get the libssl as file and zip it. In my case, the folder structure is lib/libssl.so.1.1. reference from here
  2. Add a Lambda Layer , Choose Custom runtime, copy down the ARN
  3. Go the function and add layer with ARN.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.