From 83e8b4caf507718bcfa9fd325a5887f88cf0497b Mon Sep 17 00:00:00 2001 From: Daniel Savchenko <daniel.savchenko@rwth-aachen.de> Date: Mon, 24 Mar 2025 20:16:51 +0100 Subject: [PATCH] remove GIL_saveThread(), as it is not beeing used I believe --- PythonInterpreter/PythonInterpreter.cc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/PythonInterpreter/PythonInterpreter.cc b/PythonInterpreter/PythonInterpreter.cc index 492c57ac..3b7c3311 100644 --- a/PythonInterpreter/PythonInterpreter.cc +++ b/PythonInterpreter/PythonInterpreter.cc @@ -224,20 +224,23 @@ void PythonInterpreter::initPython() { #ifdef PYTHON_DEBUG std::cerr << " Done" << std::endl; - std::cerr << "Save thread ..."; + // std::cerr << "Save thread ..."; #endif - // Do not release the GIL until all modules are initalzed - PyEval_SaveThread(); + // Apparently we dont use threads anymore, so this block is not needed - #ifdef PYTHON_DEBUG - std::cerr << " Done" << std::endl; - #endif + // // Do not release the GIL until all modules are initalzed + // PyEval_SaveThread(); + + // #ifdef PYTHON_DEBUG + // std::cerr << " Done" << std::endl; + // #endif // ========================================================= // Test for numpy // ========================================================= } + if ( !runScript("import numpy") ) { std::cerr << "Python Error!!! Module numpy not found. Please install numpy in your python environment!" << std::endl; -- GitLab