-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
waiting-on-reporterIssue is waiting on a reply from the reporter. It will be automatically cloesd if there is no reply.Issue is waiting on a reply from the reporter. It will be automatically cloesd if there is no reply.
Description
- Versions of Python,
cryptography
,cffi
,pip
, andsetuptools
you're using:
Python 3.12 cffi-1.16.0 cryptography-42.0.8 pycparser-2.22 pip-24.1 setuptools-70.1.0 - How you installed
cryptography
pip install cryptography - Clear steps for reproducing your bug
- install cryptography using pip, write test code
- test in dev local machine, it works without issue
- create the deployment package and upload it to AWS Lambda, getting error as below:
{
"errorMessage": "Unable to import module 'lambda_function': cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)",
"errorType": "Runtime.ImportModuleError",
"requestId": "6f31441e-ba2b-4de8-af7c-eeb7f07d6bd5",
"stackTrace": []
}
the lambda python runtime is 3.12, the same version as it on local machine
Metadata
Metadata
Assignees
Labels
waiting-on-reporterIssue is waiting on a reply from the reporter. It will be automatically cloesd if there is no reply.Issue is waiting on a reply from the reporter. It will be automatically cloesd if there is no reply.