Skip to content

Fatal Python error when loading a nanobind extension built using free threaded python #1087

@prashant-saxena

Description

@prashant-saxena

python 3.13 (free threaded experimental build)
nanobind = 2.7.0
Windows 10
MSVC

When loading an extension, an error is thrown:

Fatal Python error: PyInterpreterState_Get: the function must be called with the GIL held, after Python initialization and before Python finalization, but the GIL is released (the current Python thread state is NULL)
Python runtime state: unknown

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