-
Notifications
You must be signed in to change notification settings - Fork 35
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
Issue while building python code in lambda #42
Comments
Hmm, seems like a packaging issue that's affecting the Crypto package (we use pycryptodome). Are other binary dependencies working? I'm not familiar with Lambda's packaging requirements, but you may want to post in the appropriate support forums or on StackOverflow. |
Came across this same issue. You need to install the runtime on linux system as cryptodome is os specific and lambda runs with linux backend Steps I followed |
I have built JKS package and trying to execute the code in Lambda by uploading as a zip. While trying to test the code I am getting following error 👎
START RequestId: d210481c-b1d6-11e8-96b2-dbaf32b85648 Version: $LATEST
module initialization error: Cannot load native module 'Crypto.Hash._MD5': Trying '_MD5.cpython-36m-x86_64-linux-gnu.so': /var/task/Crypto/Util/../Hash/_MD5.cpython-36m-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory, Trying '_MD5.abi3.so': /var/task/Crypto/Util/../Hash/_MD5.abi3.so: cannot open shared object file: No such file or directory, Trying '_MD5.so': /var/task/Crypto/Util/../Hash/_MD5.so: cannot open shared object file: No such file or directory
END RequestId: d210481c-b1d6-11e8-96b2-dbaf32b85648
REPORT RequestId: d210481c-b1d6-11e8-96b2-dbaf32b85648 Duration: 516.12 ms Billed Duration: 600 ms Memory Size: 128 MB Max Memory Used: 29 MB
module initialization error
Cannot load native module 'Crypto.Hash._MD5': Trying '_MD5.cpython-36m-x86_64-linux-gnu.so': /var/task/Crypto/Util/../Hash/_MD5.cpython-36m-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory, Trying '_MD5.abi3.so': /var/task/Crypto/Util/../Hash/_MD5.abi3.so: cannot open shared object file: No such file or directory, Trying '_MD5.so': /var/task/Crypto/Util/../Hash/_MD5.so: cannot open shared object file: No such file or directory
It says Cannot load native module.
The text was updated successfully, but these errors were encountered: