Python Script in Knime Resource Usage

Hi Ultraman,

The highlighted line in the screenshot you posted suggests that KNIME tried to forcibly close the external Python command after normal shutdown failed, which, as it seems, also failed.

On Windows, KNIME uses the taskkill command to do that. As a first step, I’d suggest to execute this command manually and see if it works this way. Here’s what you’d need to do:

  1. Run a Python node in KNIME.
  2. Open Task Manager, switch to Details tab, and locate the python.exe.
  3. Note down its process id (PID). (You may need to add the PID column to the Task Manager’s Details view first.)
  4. Open Windows Command Prompt (cmd). You can do this within Task Manager via File > Run new task > (type in:) cmd > OK. Make sure you create the task without administrator privileges (for now).
  5. Execute the following command: taskkill /f /pid <process-id-of-python-process> in Windows Command Prompt, where the id is the one from step 3 above. Please make sure that the id is correct, otherwise you may close the wrong process which could result in data loss or have other unwanted effects.
  6. See if the command ran successfully and the python.exe disappeared in Task Manager.
  7. If executing the command failed, retry from step 4, this time with administrator privileges.

Additionally, could you please upload your entire knime.log file here? There might be some more information buried elsewhere in the log, not visible in the screenshot. Thanks!

Marcel