Léo SOHEILY KHAH
Léo SOHEILY KHAH

Reputation: 777

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

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?

Upvotes: 0

Views: 5047

Answers (1)

Nickwanhere
Nickwanhere

Reputation: 449

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.

Upvotes: 1

Related Questions