Problem Passing Pickled Python Objects

I have a workflow as follows:
image
The first script is:
image
The second is:
image
How do I resolve the error “Execute failed: EndVector() takes 1 positional argument but 2 were given”:


Thanks!

@azsb1g19 if this is from the new python nodes the syntax for an object might have to look something like this

knio.output_objects[0] = <value>

Maybe check the example:

You can read about the use with older objects here

https://docs.knime.com/latest/python_installation_guide/#usage-examples

For the older node version you might have to check which python version you are using.

4 Likes

Thanks @mlauber71,
I was using the old version.

I tried to use the new version but I’m having trouble getting KNIME to recognise my conda environment?
I have the required packages installed to my base environment:


Which is also the environment selected in KNIME.
image
But I get this error:

Any help would be appreciated,
Alex

@azsb1g19 my recommendation would be to read up about KNIME and conda environment usage. The example has a Conda Environment Propagation node (1|2) that might help you to establish a suitable Python environment

The external ressources provide some additional links to follow if the official Python guide is not enough:

2 Likes

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