Skip to content

Cannot use PyJWT/cryptography packages, failure at 'import jwt'... #940

@petasis

Description

@petasis

Doing import jwt fails with error:
ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576.

Is there a fix for this import error?

The packages versions are:

$ python -m jwt.help
{
  "cryptography": {
    "version": "45.0.5"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.13.7"
  },
  "platform": {
    "release": "6.16.7-200.fc42.x86_64",
    "system": "Linux"
  },
  "pyjwt": {
    "version": "2.10.1"
  }
}

I have also reported the bug in the PyJWT package:
jpadilla/pyjwt#1092

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