In the Python View dialog when I execute the script is all OK, I recieve the message that the execution was successful. But when I execute the node I recieve the error message
“ERROR Python View 5:29 Execute failed: EndVector() takes 1 positional argument but 2 were given”
In my case (using Python 3.6.13) your test workflow works fine. Could you maybe share a screenshot of your KNIME python configuration under File > Preferences > KNIME > Python? Are you maybe using Python2 by accident?
I did not use python 2. I was on Python 3.8.8. and Anacaonda base environment.
In the mid time I uninstall Anaconda and install it again (now I am on Python 3.8.12) and now works without errors.