I’m unable to use Python Script (Labs) node. When I open the node’s config dialog an error says:
“An exception occured while running the Python kernel. See log for details”
I thought there was a conflict with some libraries in my conda env. I’ve even started from scratch; uninstalling/reinstalling miniconda and creating fresh environments for Python3, Python2, and a separate Python3 env for labs.
I created the current env for Python Script (Labs) via the “New environment” option within KNIME preferences, but I still get the same error.
My version are:
KNIME 4.6.1
conda 22.9.0
python 3.9.13
What is strange is that if I connect a fresh Table Creator node with no data to the Python Script (Labs) node and open it, it successfully loads input data and I can even print to the console. When I try to connect anything with data to the input of the Python Script (Labs) node, I get the above error again.
The following are the logs from when I print “Hello” (with no data connected to input), then connect a node with data to the input of Python Script (Labs):
Sorry to hear about this issue!
Can you send a screenshot of the KNIME > Preferences > Python window and also the KNIME > Preferences > Python (Labs) window?
Also are there error messages when running the regular (non-Labs) Python Script node?
Thanks,
Hi Kyle,
thanks for your response. No I don’t get an error with the regular Python Script node.
Here are the two Python pref windows:
Screenshot 2022-10-10 at 12.26.20
1856×1438 104 KB
Screenshot 2022-10-10 at 12.26.31
1864×1440 87.8 KB
Below are screenshots of the Python debug console logged when I drag & drop and connect an upstream node containing data to:
a new Python Script node:
Screenshot 2022-10-10 at 12.27.02
1920×380 71.5 KB
a new Python Script (Labs) node:
Screenshot 2022-10-10 at 12.27.25
1920×522 83.1 KB