Skip to content

cannot import name 'exceptions' from 'cryptography.hazmat.bindings._rust' #10777

@gloria-mankrado

Description

@gloria-mankrado

Attempting to update the cryptography package on AWS Lambda for security reasons, we're facing an import error: “cannot import name 'exceptions' from 'cryptography.hazmat.bindings._rust'”, despite using the correct wheel package (cryptography-42.0.5-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl). This issue arises after creating a new Lambda layer and affects our other lambda function.

. I also tried to pip install using that wheel, to make sure that I am downloading the cryptography package for the correct platform, but that was also not working! FYI, commands used -
$ pip --python 3.10
install
--platform manylinux_2_28_x86_64
--implementation cp
--only-binary=:all: --upgrade
--target awsbundle
Cryptography
I also tried to specify version on this pip install, but installation is failing again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalewaiting-on-reporterIssue is waiting on a reply from the reporter. It will be automatically cloesd if there is no reply.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions