Python Script Node: 'NameError: name knime is not defined
Hi all,
I am new to KNIME and have installed the latest version 5.8. I am trying to set up a neural network using the Python Script node to define the network structure via Python. To test I am using the default script:
import knime.scripting.io as knio
Minimal test
df = knime.in_table
knime.out_table = df
knio.flow_variables[“knime.workspace”]
However, when I execute the node, I get the following error:
NameError: name 'knime' is not definedHere is my current setup:
*
OS: Windows 11
*
Anaconda installed and configured
*
KNIME Preferences: File → Preferences → Python → Conda → Python 3 Conda environment
knime-pytorch, Python 3.8.20
*
Extensions installed: KNIME Python Scripting Extension 5.5.0.v202507010920
I would appreciate any guidance on why the
knimemodule is not recognized in the Python Script node and how to properly configure it to define my neural network.
Thank you!