diff --git a/src/plugins/python_api.c b/src/plugins/python_api.c index 35a97d15..f52544a0 100644 --- a/src/plugins/python_api.c +++ b/src/plugins/python_api.c @@ -1607,7 +1607,9 @@ python_init_prof(void) #ifdef PY_IS_PYTHON3 PyImport_AppendInittab("prof", python_api_init); Py_Initialize(); +#if PY_VERSION_HEX < 0x03070000 PyEval_InitThreads(); +#endif #else Py_Initialize(); PyEval_InitThreads();