Hello. I´ve been having problems executing Pyhon Scripts. Sometimes it runs but others I have this error.
Execute failed: An exception occured while running the Python kernel. See log for details.
And the log says as follow:
2023-01-23 09:02:13,174 : ERROR : KNIME-Worker-215-Python Script 3:1640:1641:1638 : : Node : Python Script : 3:1640:1641:1638 : Execute failed: An exception occured while running the Python kernel. See log for details.
org.knime.python2.kernel.PythonIOException: An exception occured while running the Python kernel. See log for details.
at org.knime.python3.scripting.Python3KernelBackend.putDataTable(Python3KernelBackend.java:447)
at org.knime.python2.kernel.PythonKernel.putDataTable(PythonKernel.java:304)
at org.knime.python2.ports.DataTableInputPort.execute(DataTableInputPort.java:116)
at org.knime.python3.scripting.nodes.AbstractPythonScriptingNodeModel.execute(AbstractPythonScriptingNodeModel.java:229)
at org.knime.core.node.NodeModel.executeModel(NodeModel.java:549)
at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1267)
at org.knime.core.node.Node.execute(Node.java:1041)
at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:595)
at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:98)
at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:201)
at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:117)
at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:367)
at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:221)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)
at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)
Caused by: py4j.Py4JException: An exception was raised by the Python Proxy. Return Message: Traceback (most recent call last):
File “C:\Users\lsand\anaconda3\envs\KNIME\lib\site-packages\py4j\clientserver.py”, line 617, in _call_proxy
return_value = getattr(self.pool[obj_id], method)(*params)
File “D:\knime_4.6.4\plugins\org.knime.python3.scripting_4.7.0.v202211291148\src\main\python_kernel_launcher.py”, line 466, in setInputTable
self._backends.set_input_table(table_index, java_table_data_source)
File “D:\knime_4.6.4\plugins\org.knime.python3.scripting_4.7.0.v202211291148\src\main\python_kernel_launcher.py”, line 229, in set_input_table
table_data_source = kg.data_source_mapper(java_table_data_source)
File “D:\knime_4.6.4\plugins\org.knime.python3_4.7.0.v202211291350\src\main\python\knime_backend_gateway.py”, line 267, in data_source_mapper
return DATA_SOURCESidentifier
File “D:\knime_4.6.4\plugins\org.knime.python3.arrow_4.7.0.v202211291117\src\main\python\knime_arrow_backend.py”, line 220, in init
self._reader = _OffsetBasedRecordBatchFileReader(
File “D:\knime_4.6.4\plugins\org.knime.python3.arrow_4.7.0.v202211291117\src\main\python\knime_arrow_backend.py”, line 191, in init
self.schema = pa.ipc.read_schema(self._source_file)
File “pyarrow\ipc.pxi”, line 1100, in pyarrow.lib.read_schema
File “pyarrow\error.pxi”, line 144, in pyarrow.lib.pyarrow_internal_check_status
File “pyarrow\error.pxi”, line 115, in pyarrow.lib.check_status
OSError: Read out of bounds (offset = 8, size = 4) in file of size 6
at py4j.Protocol.getReturnValue(Protocol.java:476)
at py4j.reflection.PythonProxyHandler.invoke(PythonProxyHandler.java:108)
at jdk.proxy16/jdk.proxy16.$Proxy46.setInputTable(Unknown Source)
at org.knime.python3.scripting.Python3KernelBackend$PutDataTableTask.call(Python3KernelBackend.java:744)
at org.knime.python3.scripting.Python3KernelBackend$PutDataTableTask.call(Python3KernelBackend.java:1)
at org.knime.core.util.ThreadUtils$CallableWithContextImpl.callWithContext(ThreadUtils.java:383)
at org.knime.core.util.ThreadUtils$CallableWithContext.call(ThreadUtils.java:269)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)