Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Plugin/src/SofaPython3/PythonEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading