Skip to content

Update to Python 3.13 #277

Description

@muriloSGomesDr

Hello everyone, how are you?

I'm testing Python 3.12 and 3.13 with this library. And I want to inform you that with Python 3.12 it apparently works. In fact, I had already been using it with Python 3.10 and 3.11 without any problems. I believe it would be nice to update the README, so people can stay informed.

However, in Python 3.13 I received this error:

Traceback (most recent call last):
  File "/home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/server.py", line 12, in <module>
    from sanic_jwt import Initialize
  File "/home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/.venv/lib/python3.13/site-packages/sanic_jwt/__init__.py", line 7, in <module>
    from .authentication import Authentication
  File "/home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/.venv/lib/python3.13/site-packages/sanic_jwt/authentication.py", line 6, in <module>
    import jwt
  File "/home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/.venv/lib/python3.13/site-packages/jwt/__init__.py", line 1, in <module>
    from .api_jwk import PyJWK, PyJWKSet
  File "/home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/.venv/lib/python3.13/site-packages/jwt/api_jwk.py", line 7, in <module>
    from .algorithms import get_default_algorithms, has_crypto, requires_cryptography
  File "/home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/.venv/lib/python3.13/site-packages/jwt/algorithms.py", line 11, in <module>
    from .utils import (
    ...<9 lines>...
    )
  File "/home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/.venv/lib/python3.13/site-packages/jwt/utils.py", line 7, in <module>
    from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve
  File "/home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/.venv/lib/python3.13/site-packages/cryptography/hazmat/primitives/asymmetric/ec.py", line 11, in <module>
    from cryptography.exceptions import UnsupportedAlgorithm, _Reasons
  File "/home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/.venv/lib/python3.13/site-packages/cryptography/exceptions.py", line 9, in <module>
    from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ImportError: /home/murilo/TEMPLATE-sanic-sqlAlchemy-sanic_jwt-mkdocs/.venv/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyErr_WriteUnraisableMsg

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions