Open saranyasureshkanna opened 2 years ago
Possibly caused by using an older version of Python that doesn't support Rust bindings to create the lambda layer
I have the same error and I'm running my Lambda with Python 3.10. Has anyone found a solution?
I created a python project and used pgpy for encryption. It was tested fine in windows but whenever its uploaded to AWS Lambda it errors out saying "cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)". When I remove PGPY dependencies then the code works without error. So I think the compatibility issue with windows and AWS lambda for PGPY plugin.