Skip to content
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

2.1.1 tests fail with cryptography 42.0.5: ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.rsa' #69

Closed
jjakob opened this issue Apr 3, 2024 · 2 comments

Comments

@jjakob
Copy link

jjakob commented Apr 3, 2024

#64 should have added support for cryptography >42 <42.1 but tests fail:

spsdk/crypto/__init__.py:51: in <module>
    from cryptography.hazmat.backends.openssl.rsa import *
E   ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.rsa'
@mstarecek
Copy link
Contributor

Hello jjakob, you might be using an older version of SPSDK. (before support for cryptography 42 was added)
In version 2.1.1 the file spsdk/crypto/__init__.py doesn't have any content. Please check the version of SPSDK you're using.

@jjakob
Copy link
Author

jjakob commented Apr 4, 2024

You're right, it was a dumb mistake, it was still compiling 1.11.0.

@jjakob jjakob closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants