The python process got terminated

Hi all,

I’ve been trying to run a number of python scripts in KNIME recently and the nodes are failing upon simply trying to import certain libraries - see screenshot below. I’m running 5.8.1 and nothing else is running concurrently.

I’ve included an excerpt from my .log file if this is any help. Does anyone have any suggestions of things I can try to mitigate this issue?

2026-04-13 12:18:21,920 : ERROR : python-execution : : PythonScriptingService : Python Script : 5:9 : Execution failed: The Python process got terminated. org.knime.python3.PythonProcessTerminatedException: The Python process got terminated. at org.knime.python3.PythonProcessTerminatedException.ifTerminated(PythonProcessTerminatedException.java:113) at org.knime.python3.PythonProcessTerminatedException.throwIfTerminated(PythonProcessTerminatedException.java:91) at org.knime.python3.scripting.nodes2.PythonScriptingSession.execute(PythonScriptingSession.java:282) at org.knime.python3.scripting.nodes2.PythonScriptingService$PythonRpcService.executeScriptInternal(PythonScriptingService.java:269) at org.knime.python3.scripting.nodes2.PythonScriptingService$PythonRpcService.lambda$2(PythonScriptingService.java:310) at org.knime.core.util.ThreadUtils$3.runWithContext(ThreadUtils.java:537) at org.knime.core.util.ThreadUtils$ThreadWithContext.run(ThreadUtils.java:342) Caused by: py4j.Py4JException: Error while sending a command. at py4j.CallbackClient.sendCommand(CallbackClient.java:397) at py4j.CallbackClient.sendCommand(CallbackClient.java:356) at py4j.reflection.PythonProxyHandler.invoke(PythonProxyHandler.java:106) at jdk.proxy24/jdk.proxy24.$Proxy130.execute(Unknown Source) at org.knime.python3.scripting.nodes2.PythonScriptingSession.execute(PythonScriptingSession.java:280) … 4 more Caused by: py4j.Py4JNetworkException: Error while sending a command: c t execute sfrom scipy.stats import skewnorm btrue e at py4j.ClientServerConnection.sendCommand(ClientServerConnection.java:253) at py4j.CallbackClient.sendCommand(CallbackClient.java:384) ... 8 more Caused by: java.net.SocketException: Connection reset at java.base/sun.nio.ch.NioSocketImpl.implRead(Unknown Source) at java.base/sun.nio.ch.NioSocketImpl.read(Unknown Source) at java.base/sun.nio.ch.NioSocketImpl$1.read(Unknown Source) at java.base/java.net.Socket$SocketInputStream.read(Unknown Source) at java.base/sun.nio.cs.StreamDecoder.readBytes(Unknown Source) at java.base/sun.nio.cs.StreamDecoder.implRead(Unknown Source) at java.base/sun.nio.cs.StreamDecoder.read(Unknown Source) at java.base/java.io.InputStreamReader.read(Unknown Source) at java.base/java.io.BufferedReader.fill(Unknown Source) at java.base/java.io.BufferedReader.readLine(Unknown Source) at java.base/java.io.BufferedReader.readLine(Unknown Source) at py4j.ClientServerConnection.readBlockingResponse(ClientServerConnection.java:313) at py4j.ClientServerConnection.sendCommand(ClientServerConnection.java:229) … 9 more

Thanks so much,

Ian