Skip to content

Hit Cannot load native module 'Crypto.Hash._MD5 #8

@chinajuanbob

Description

@chinajuanbob

Hi

I try to run the project with py2.7 venv and just hit this error, and need your help to resolve this, Thanks!

INFO:botocore.credentials:Found credentials in shared credentials file: ~/.aws/credentials
INFO:root:Lambda 256MB billed for 1300ms
ERROR:lib.proxies.aws_short:Unhandled error: {"stackTrace": [["/var/task/proxy.py", 23, "handler", "from impl.short import short_lived_handler as slh"], ["/var/task/impl/short.py", 7, "<module>", "from Crypto.PublicKey import RSA"], ["/var/task/Crypto/PublicKey/RSA.py", 38, "<module>", "from Crypto.IO import PKCS8, PEM"], ["/var/task/Crypto/IO/PKCS8.py", 44, "<module>", "from Crypto.IO._PBES import PBES1, PBES2, PbesError"], ["/var/task/Crypto/IO/_PBES.py", 41, "<module>", "from Crypto.Hash import MD5, SHA1, SHA224, SHA256, SHA384, SHA512"], ["/var/task/Crypto/Hash/MD5.py", 47, "<module>", "\"\"\")"], ["/var/task/Crypto/Util/_raw_api.py", 300, "load_pycryptodome_raw_lib", "raise OSError(\"Cannot load native module '%s': %s\" % (name, \", \".join(attempts)))"]], "errorType": "OSError", "errorMessage": "Cannot load native module 'Crypto.Hash._MD5': Trying '_MD5.so': /var/task/Crypto/Util/../Hash/_MD5.so: invalid ELF header, Trying '_MD5module.so': /var/task/Crypto/Util/../Hash/_MD5module.so: cannot open shared object file: No such file or directory"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions