Hi,
I have just updated our version of KNIME server to KNIME 2.11.2. I am now finding that the installed version of the python snippet node (2.0.2.201502181300) appears to be causing previously written workflows to fail. These were running fine under our previous KNIME server (2.10.4) - where I checked the version of the python scripting extension was 2.0.0.201411121006.
Here is an example of the errors I see with the nodes now:
2015-03-11 09:00:11,607 ERROR KNIME-Worker-15 Python Snippet : Execute failed: ("ArrayIndexOutOfBoundsException"): 2 2015-03-11 09:00:11,608 DEBUG KNIME-Worker-15 Python Snippet : Execute failed: ("ArrayIndexOutOfBoundsException"): 2 java.lang.ArrayIndexOutOfBoundsException: 2 at de.mpicbg.knime.scripting.python.PythonTableConverter.convertCSVToTable(PythonTableConverter.java:64) at de.mpicbg.knime.scripting.python.PythonSnippetNodeModel.execute(PythonSnippetNodeModel.java:105) at org.knime.core.node.NodeModel.execute(NodeModel.java:706) at org.knime.core.node.NodeModel.executeModel(NodeModel.java:555) at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1131) at org.knime.core.node.Node.execute(Node.java:927) at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:559) at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:95) at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:179) at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:110) at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:328) at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:204) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:125) at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:248) 2015-03-11 09:00:11,608 DEBUG KNIME-Worker-15 WorkflowManager : Python Snippet 0:304 doBeforePostExecution 2015-03-11 09:00:11,608 DEBUG KNIME-Worker-15 NodeContainer : Python Snippet 0:304 has new state: POSTEXECUTE 2015-03-11 09:00:11,608 DEBUG KNIME-Worker-15 WorkflowManager : Python Snippet 0:304 doAfterExecute - failure
If I paste the code into one of the 'new' Python Script nodes (and modify slightly to fit the new model - eg 'input_table' vs 'kIn', etc) the node runs fine. However, it would be really useful to not have to do this for all of our legacy workflows in one go(!) - so I wondered if there is a chance an update could fix the issue?
Kind regards
James