diff --git a/PythonInterpreter/PythonInterpreter.cc b/PythonInterpreter/PythonInterpreter.cc index 492c57acf07bb0e80b8a5e1ad9b80680f4a14395..3b7c3311e3abaf217b3b41f6e7f0756d04cb65de 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;