From efe5c918c1ff27cddaf8ee30213b559d4b361009 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Mon, 5 Jan 2026 11:28:24 +0900 Subject: [PATCH] remove import of scipy.misc, which is deprecated --- Plugin/src/SofaPython3/PythonEnvironment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/src/SofaPython3/PythonEnvironment.cpp b/Plugin/src/SofaPython3/PythonEnvironment.cpp index b1f41ff2c..b79c897c0 100644 --- a/Plugin/src/SofaPython3/PythonEnvironment.cpp +++ b/Plugin/src/SofaPython3/PythonEnvironment.cpp @@ -206,7 +206,7 @@ void PythonEnvironment::Init() // Workaround: try to import scipy from the main thread this prevents a deadlock when importing // scipy from a worker thread when we use the SofaScene asynchronous loading - executePython([]{ PyRun_SimpleString("try:\n\tfrom scipy import misc, optimize\nexcept:\n\tpass\n");}); + executePython([]{ PyRun_SimpleString("try:\n\tfrom scipy import optimize\nexcept:\n\tpass\n");}); // If the script directory is not available (e.g. if the interpreter is invoked interactively // or if the script is read from standard input), path[0] is the empty string,