Python ExternalProcessMemoryWatchdog error

Hi,
I use several Python Script nodes in my workflow. They were working perfectly just a week ago but now are giving me this error:

ERROR Python Script 3:673:0:1010 Execute failed: org/knime/core/data/util/memory/ExternalProcessMemoryWatchdog

If I go into the python script and only run the first few lines with “Run selected lines” (just reading the input tables and variables) it runs indefinitely. If I cancel it gives the error “There is no active python session in progress”.

My python configuration is Bundled and I had been using Anaconda in the Conda configuration. I’ve tried uninstalling conda and reinstalling miniconda, no success. I tried to remove the conda config completely and use only the bundled python, no success. I’ve tried to change the python config to manual, no success.

Any help is appreciated, thank you!

Can’t really help, but wanted to link this topic that I recalled having seen:

Seems to be the exact same error.

Can you share some more details:

  • what Version are you on?
  • Have you changed version since the script worked?
  • Can you share the logs (knime.log in the root of your knime installation folder)

Yes, it happened now after I updated the version to 5.3.1
Here’s what it says in the log file

It looks like we forgot to add the correct lower bound of a dependency. Could you check what version of “KNIME Analytics Platform” you have installed (in the modern UI under Help -> About -> Installation Details)?

If there are updates for the “KNIME Analytics Platform” extension available, could you try installing these?

Sorry for the inconvenience :confused:

3 Likes

It was version 5.3.1 but I installed a different installation package and it works again now. Must have been something with that specific one.

Thanks!

Hello @carstenhaubold , let me jump in
I’m still having this issue

I am suspecting that there is something to do with the Python Integration v3.5.2 being installed on the KNIME Analytics Platform (AP) v5.3.1
I’ve just finished this test:

  1. KNIME AP v5.3.1 + Python v3.5.2 = this error
  2. KNIME AP v5.3.2 + Python v3.5.2 = no error at all

Can it be that setup 1 should have python on the same version?

I can’t be on KNIME AP v5.3.2 because the server is on v5.3.1 and if I upload to KNIME Hub, I can’t run the flow online.

How can I install Python integration v5.3.1 on my KNIME AP v5.3.1.?

Hi @martrix,

Thanks for testing the different combinations and confirming what I suggested.
But you’re totally right, if you have a 5.3.1 install that you cannot update, then installing the Python Integration in version 5.3.1 will get you to a working state again.

In the “Install extensions” dialog there is a checkbox saying “Only show the latest version of the available software”. If you untick that you should be able to select an older version.

Once we release 5.3.3, we’ll clean this up:

  • Python Integration 5.3.1 is available and will continue to work with AP 5.3.0, 5.3.1 and 5.3.2 etc
  • Python Integration 5.3.2 gets removed from the available install options
  • Python Integration 5.3.3 requires AP version 5.3.2 and up (where the Watchdog is available)

Best,
Carsten

4 Likes

I seem to have a similar issue. I had updated my KAP locally from 5.2.5 to 5.3 but because the version on our server was still 5.2.5, I had to install the 5.2.5 again and then install the Python integration extension again.

Now I am getting this error as well.

Caused by: java.lang.ClassNotFoundException: org.knime.core.data.util.memory.ExternalProcessMemoryWatchdog cannot be found by org.knime.python3_5.2.6.v202410081551

Thanks @carstenhaubold, I had the same issue and had to go back to my previous version (basically to match my knime AP version and Python Integration extension version) to get this sorted.