Hi! Does anyone have experience with AWS Lambda? I wanna deploy a flask application on AWS lambda, but this is my first time, and I keep getting a bunch of dependency error like:
[ERROR] Runtime.ImportModuleError: Unable to import module 'app':
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.11 from "/var/lang/bin/python3.11"
* The NumPy version is: "1.24.3"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
I have already tried everything. How I set it up was I have a requirements.txt list. Then I created a python 3.11 venv environment, installed all dependencies, then I copied all the /venv/lib/python3.11/site-packages into the root repository (along with my app.py), turned everything into a zip, then uploaded it to AWS Lambda.