New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original error was: No module named 'numpy.core._multiarray_umath' #16719
Comments
Duplicate of #13465, see the solutions there, especially this comment that points to this AWS document |
Perhaps it's worth adding a link on the AWS lambda config to the troubleshooting importerror doc |
I'm going to close this as duplicate - @aweng126 if you're still having trouble feel free to reopen. |
thanks everyone, I think i had found the problem. I zip the code and packages in my Mac, and then I upload the file as function.zip as a lambda function. however, amazon execute your code with linux , the packages installed in mac like numpy have some differences with that installed in linux. so when I launch a ec2 in aws, the problem is fixed. |
I am using python 3.9 and my problem was solved by adding aws in-build pandas library in my aws lambda function layer. |
When you say "I packaged library and source code to a deployment package and upload thme" what exactly do you mean? You must package a version of NumPy that can run on the target machine, this is probably what happens when you "add aws in-build pandas library in my aws lambda function layer" |
problem description
I was trying to learn lambda function of AWS, I packaged library and source code to a deployment package and upload thme, so I can invoke it .however ,when it comes to the matmul function ,it didn't work, I had try third version of numpy, none of them works, python version is python3.7, numpy version is 1.16,1.18,1.19. the lambda code is very esay,matmul function
and this is the log cotent
is there anybody has idea?
The text was updated successfully, but these errors were encountered: