diff --git a/src/common/PythonManager.cpp b/src/common/PythonManager.cpp index 8e38a24b..3928936a 100644 --- a/src/common/PythonManager.cpp +++ b/src/common/PythonManager.cpp @@ -77,7 +77,9 @@ void PythonManager::initialize() #endif Py_Initialize(); // This function is deprecated does nothing starting from Python 3.9 +#if (PY_MAJOR_VERSION <= 3) && (PY_MICRO_VERSION < 9) PyEval_InitThreads(); +#endif pyThreadStateCounter = 1; // we have the thread now => 1 RegQtResImporter();