authlib icon indicating copy to clipboard operation
authlib copied to clipboard

Issue using Python 3.13

Open erikpragt-connectid opened this issue 4 months ago • 4 comments

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

erikpragt-connectid avatar Oct 11 '24 05:10 erikpragt-connectid