Hi,
I keep getting this error message when I run a python script node. Sorry if I can’t figure this out. I install the two necessary packages.
Thanks
Executing the Python script failed: Traceback (most recent call last):
File “”, line 1, in
File “C:\Program Files\KNIME\plugins\org.knime.python3.scripting_5.1.0.v202306301805\src\main\python\knime\scripting\io.py”, line 97, in
_prepare_input_tables()
File “C:\Program Files\KNIME\plugins\org.knime.python3.scripting_5.1.0.v202306301805\src\main\python\knime\scripting\io.py”, line 92, in _prepare_input_tables
_ioc._input_tables[idx] = kat.ArrowSourceTable(data_source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\KNIME\plugins\org.knime.python3.arrow_5.1.0.v202307101500\src\main\python\knime_arrow_table.py”, line 345, in init
self._schema = _convert_arrow_schema_to_knime(self._source.schema)
^^^^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘schema’
EDIT: and maybe also the content of the environment that you have activated in the Python preferences (via conda list in a terminal). You can format the resulting text as follows
Hi ,
Thanks for responding. That’s the problem there isn’t a workflow. I’m just testing the Python script node and keep getting the error message. It’s not importing knime.scripting. Sorry I’m new to knime do we have to use that knime import? Can we code with out it?
Thanks
If you use the Python node, you use it within a workflow
This workflow can be saved, exported and shared.
Please familiarize yourself with the usage of the Python Script node first. In there, you can find example workflows which should give you a very clear idea on how to use them. The first link also describes how to access the “Templates”, which should resolve all remaining basic questions.