0
votes

I have problem to import "pyodbc" into Lambda function (runtime: python3.7). I follow this link: https://github.com/alexanderluiscampino/lambda-layers to publish lambda layer for "pyodbc". Then attach this lambda layer to my lambda function.

When I try to list the "opt" directory when lambda function running, I see the lambda layer is unzipped (attach screenshot)

enter image description here

but I got the error when I import pyodbc: [ERROR] Runtime.ImportModuleError: Unable to import moodule 'app': No module name 'pyodbc' Does anyone have exp about this case?