Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.
This repository was archived by the owner on Jul 13, 2025. It is now read-only.

replacing PyEval_InitThreads with Py_Initialize on python 3.9 and above? #15

@pauliyobo

Description

@pauliyobo

Hello,
It turns out that PyEval_InitThreads which Synthizer uses to obtain the ability to acquire and release the GIL is deprecated in python 3.9 and above.

The PyEval_InitThreads() and PyEval_ThreadsInitialized() functions are now deprecated and will be removed in Python 3.11. Calling PyEval_InitThreads() now does nothing. The GIL is initialized by Py_Initialize() since Python 3.7.

Should we account for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions