# The python process got terminated

**URL:** <https://forum.knime.com/t/the-python-process-got-terminated/91785>\
**Category:** KNIME Analytics Platform\
**Tags:** python\
**Created:** [April 13, 2026, 11:23am UTC](https://forum.knime.com/t/the-python-process-got-terminated/91785 "2026-04-13T11:23:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanStrutt](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/i/b5ac83/32.png) [@IanStrutt](https://forum.knime.com/u/IanStrutt)\
**Post date:** [April 13, 2026, 11:23am UTC](https://forum.knime.com/t/the-python-process-got-terminated/91785/1 "2026-04-13T11:23:56Z")

</div>

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.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/6/6/66ffe73aa3e7c771d78569b40efb60c90e6984d0.png)

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\n  
> btrue  
> e
> 
> ```auto
> 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

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [April 13, 2026, 3:46pm UTC](https://forum.knime.com/t/the-python-process-got-terminated/91785/2 "2026-04-13T15:46:48Z")

</div>

@IanStrutt did you create a python environment that contains this specific package?

**Medium Blog:** [Python Overview](https://medium.com/low-code-for-advanced-data-science/knime-snippets-5-python-overview-aa4f3a55a768)

---

<div class="post-metadata">

**Author:** ![IanStrutt](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/i/b5ac83/32.png) [@IanStrutt](https://forum.knime.com/u/IanStrutt)\
**Post date:** [April 13, 2026, 4:31pm UTC](https://forum.knime.com/t/the-python-process-got-terminated/91785/3 "2026-04-13T16:31:00Z")

</div>

Hi @mlauber71 the env was set up correctly. This issue has been bugging me for weeks and I’ve managed finally to fix it by myself. I opened up Event Viewer \> Windows Logs \> Application/System and searched through error messages, which finally narrowed the issue down to an issue with a dll file related to pyarrow. I force reinstalled pyarrow and the issue is now fixed. Thought I would post here for anyone who may have this issue in the future.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [April 20, 2026, 4:31pm UTC](https://forum.knime.com/t/the-python-process-got-terminated/91785/4 "2026-04-20T16:31:07Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
