Hey there,
Thanks for the guide! One issue that I noticed is that --python 3.9
should be --python-version 3.9
. Otherwise, the dependencies will be installed for whatever version of Python is running on the host.
I am deploying a lambda layer via a CodeBuild project, and this seemed to work for me.
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
I have tried those steps mentioned above, but I keep getting the same error. I am doing that through an AWS CDK app, that I am deploying through a CodePipeline.
Error:
{ "errorMessage": "Unable to import module 'pandasLambda': Unable to import required dependencies:\nnumpy: \n\nIMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!\n\nImporting the numpy C-extensions failed. This error can happen for\nmany reasons, often due to issues with your setup or how NumPy was\ninstalled.\n\nWe have compiled some common reasons and troubleshooting tips at:\n\n https://numpy.org/devdocs/user/troubleshooting-importerror.html\n\nPlease note and check the following:\n\n * The Python version is: Python3.9 from "/var/lang/bin/python3.9"\n * The NumPy version is: "1.24.3"\n\nand make sure that they are the versions you expect.\nPlease carefully study the documentation linked above for further help.\n\nOriginal error was: No module named 'numpy.core._multiarray_umath'\n", "errorType": "Runtime.ImportModuleError", "requestId": "", "stackTrace": [] }
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
I am installing bcrypt and followed above steps but still getting an internal server error https://repost.aws/questions/QUa3HaSbEeTYyqRivLpi3InQ/passlib-exc-missingbackenderror-bcrypt-no-backends-available-recommend-you-install-one-e-g-pip-install-bcrypt
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
this work for 3.10 runtime and mayors versions ?
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
It appears that AL2023 x86_64 is not available with Python-3.12, the latest version available on DNF is 3.11, so the Python lambda layer must be built with 3.11, and the Lambda runtime also set to 3.11
Relevant content
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago