authlib
authlib copied to clipboard
Issue using Python 3.13
Describe the bug
A clear and concise description of what the bug is.
Error Stacks
../../../.cache/pypoetry/virtualenvs/rp-python-sdk-V_ZVmfOb-py3.13/lib/python3.13/site-packages/authlib/jose/__init__.py:14: in <module>
from .rfc7517 import Key, KeySet, JsonWebKey
../../../.cache/pypoetry/virtualenvs/rp-python-sdk-V_ZVmfOb-py3.13/lib/python3.13/site-packages/authlib/jose/rfc7517/__init__.py:10: in <module>
from ._cryptography_key import load_pem_key
../../../.cache/pypoetry/virtualenvs/rp-python-sdk-V_ZVmfOb-py3.13/lib/python3.13/site-packages/authlib/jose/rfc7517/_cryptography_key.py:1: in <module>
from cryptography.x509 import load_pem_x509_certificate
../../../.cache/pypoetry/virtualenvs/rp-python-sdk-V_ZVmfOb-py3.13/lib/python3.13/site-packages/cryptography/x509/__init__.py:7: in <module>
from cryptography.x509 import certificate_transparency, verification
../../../.cache/pypoetry/virtualenvs/rp-python-sdk-V_ZVmfOb-py3.13/lib/python3.13/site-packages/cryptography/x509/certificate_transparency.py:11: in <module>
from cryptography.hazmat.bindings._rust import x509 as rust_x509
E pyo3_runtime.PanicException: Python API call failed
To Reproduce
The only thing I'm doing is importing a library:
from authlib.jose import JsonWebSignature
Expected behavior
It shouldn't fail (this code works in 3.12)
Environment:
- OS: Ubuntu
- Python Version: 3.13
- Authlib Version: 1.3.2