-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
cannot import name 'asn1' from 'cryptography.hazmat.bindings._rust' #9633
Comments
You appear to be using pypy 3.10, but have a pypy 3.8 wheel. How did you install cryptography? |
Thanks alex for reply! root@*** site-packages]# ls cryptography-35.0* |
The pp38 wheel will not work with PyPy 3.10 as PyPy does not have a stable interface. You need a pp310 wheel. This will require you to use a newer version of cryptography that ships a wheel compatible with your PyPy or else compile it yourself. |
Thanks very much. It works well after jwt1.3.1 and cryptography41.0.2 installation. Thanks again! |
hello,
I have installed jwt-1.3.0-py3-none-any.whl and cryptography-35.0.0-pp38-none-linux_x86_64.whl 。
But it reported below error when I "import jwt" 。 Could someone help me? Thanks very much!
[root@*** pypy3.10]# ../../bin/pypy3.10
Python 3.10.12 (af44d0b8114cb82c40a07bb9ee9c1ca8a1b3688c, Jun 15 2023, 12:39:27)
[PyPy 7.3.12 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
[root@*** pypy3.10]# ls site-packages/RUST
RUST/ RUST-1.3.1.dist-info/ RUST-1.3.1-py3-none-any.whl
[root@*** pypy3.10]# ls site-packages/cryptography
cryptography/ cryptography-35.0.0-pp38-none-linux_x86_64.whl
cryptography-35.0.0.dist-info/
[root@*** pypy3.10]# ls site-packages/jwt
jwt/ jwt-1.3.0.dist-info/ jwt-1.3.0-py3-none-any.whl
The text was updated successfully, but these errors were encountered: