提问人:Lee Cavazos 提问时间:10/25/2023 最后编辑:Lee Cavazos 更新时间:10/25/2023 访问量:54
如何打开 .SO 文件并在 AWS Lambda 函数中使用它
How to open a .SO file and use it in AWS Lambda Function
问:
我正在将 Python 模块“Bonsai”用于我在 AWS 中的一个项目。根据库的文档,Bonsai 模块无法通过 pip 安装在 Linux 环境中工作。因此,我在 WSL 中安装了 Bonsai 模块,并将其添加到我的 Lambda 层中。当我尝试运行我的 Lambda 函数时 我收到此错误:
Unable to import lambda_function: libldap-2.5.so.0: cannot open shared object file: No such file or directory
.
“lambda_function”是我的 AWS Lambda 函数的处理程序。
这些是 bonsai 模块中的文件:(在 WSL 中) 这是我的 Lambda 函数的布局:在 AWS 中。我通过使用import bonsai
我尝试将 bonsai 模块添加为 Lambda 函数布局中的文件夹,但遇到了同样的错误。
非常感谢你们!
答: 暂无答案
评论