Setting up Conda to use python nodes in Knime

Hi there,

I am attempting to set-up my Knime 5.3.1 to run nodes for Python code and I have been stuck on this screen for almost 45 mins which doesn’t seem correct. I even tried uninstalling Anaconda and reinstalling but to no avail.

Has anyone come across this before and resolved their issue?

Any help will be very much appreciated. If there are other settings I need to check or look at that I am not aware of, please share as well so I can check on my end.

Thank you.

Hi @ViTLe,

On this preference page, KNIME runs the command conda --version behind the scenes to make sure that Conda is available at the path you specified. However, this seems to get stuck for some reason.

Have you tried using the conda command on the prompt already? If not, could you verify that it works by trying the following in the Anaconda Prompt:

conda --version

This will check if Conda is working properly. If the command hangs or doesn’t return anything, there could be an issue with the Conda installation. Let us know what happens, and we can help from there!

Hope this helps!

2 Likes

@bwilhelm there have been several reports about python problems I’ve the last days in the forum. Not sure if this is connected.

I finally figured it out and it’s a silly issue.

Seems the extension has issues with Knime 5.3.1. so I updated to 5.3.2 on a whim and it worked like a charm.

Several other of my peers had the same issue and turns out if they did the same update, conda extension works.

Hope this can help others.

2 Likes

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

Hi @ViTLe,
Quick update and explanation of what happened here:

  • In KNIME Analytics Platform versions 5.2.6 and 5.3.2, a new class was added to the “org.knime.core” plugin.
  • The KNIME Python and Conda extensions in those same versions depend on that newly added class.
  • However, the version constraints for “org.knime.core” were accidentally set too loosely. As a result, it was possible to install the new Python/Conda extensions alongside an older “org.knime.core” that didn’t yet have the required class.
  • In that mismatched setup, the Conda preference page gets stuck on “Testing Conda installation…” because it’s missing the required class from “org.knime.core.”

Once the KNIME Analytics Platform and the Python/Conda extensions are all on matching versions that include the new class, the issue no longer occurs.

PS:
A version mismatch that causes this issue looks like this when looking at “Help → About KNIME Analytics Platform → Installation Details”:

1 Like