2024-10-27 17:55:40,572 : ERROR : KNIME-Worker-31-DL Python Network Learner 3:81 : : Node : DL Python Network Learner : 3:81 : Execute failed: An error occurred while communicating with Python (while reading in the Keras network).
java.io.IOException: An error occurred while communicating with Python (while reading in the Keras network).
at org.knime.dl.keras.core.DLKerasAbstractNetworkLoader.loadInternal(DLKerasAbstractNetworkLoader.java:177)
at org.knime.dl.keras.core.DLKerasAbstractNetworkLoader.load(DLKerasAbstractNetworkLoader.java:130)
at org.knime.dl.keras.core.DLKerasAbstractNetworkLoader.load(DLKerasAbstractNetworkLoader.java:1)
at org.knime.dl.python.base.node.learner.DLPythonLearnerNodeModel.setupNetwork(DLPythonLearnerNodeModel.java:104)
at org.knime.dl.python.base.node.learner.DLPythonLearnerNodeModel.execute(DLPythonLearnerNodeModel.java:166)
at org.knime.core.node.NodeModel.executeModel(NodeModel.java:588)
at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1286)
at org.knime.core.node.Node.execute(Node.java:1049)
at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:594)
at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:98)
at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:198)
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: org.knime.python2.kernel.PythonIOException: ‘str’ object has no attribute ‘decode’
Traceback (most recent call last):
File “”, line 3, in
File “D:\softwareInstall\KNIME\plugins\org.knime.dl.keras_5.3.0.v202312081534\py\DLTF2NetworkReader.py”, line 126, in read
return read_keras(self.backend, path, compile, compatibility_mode)
File “D:\softwareInstall\KNIME\plugins\org.knime.dl.keras_5.3.0.v202312081534\py\DLTF2NetworkReader.py”, line 92, in read_keras
}[backend](path, compile, compatibility_mode)
File “D:\softwareInstall\KNIME\plugins\org.knime.dl.keras_5.3.0.v202312081534\py\DLTF2NetworkReader.py”, line 98, in read_keras_tensorflow
compatibility_mode=compatibility_mode)
File “D:\softwareInstall\KNIME\plugins\org.knime.dl.keras_5.3.0.v202312081534\py\DLKerasTensorFlowNetwork.py”, line 60, in read
model = self._read_internal(path, compile)
File “D:\softwareInstall\KNIME\plugins\org.knime.dl.keras_5.3.0.v202312081534\py\DLKerasNetwork.py”, line 100, in _read_internal
return load_model(path, compile=compile)
File “D:\softwareInstall\anaconda3\envs\knime\lib\site-packages\keras\engine\saving.py”, line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File “D:\softwareInstall\anaconda3\envs\knime\lib\site-packages\keras\engine\saving.py”, line 224, in _deserialize_model
model_config = json.loads(model_config.decode(‘utf-8’))
AttributeError: ‘str’ object has no attribute ‘decode’
at org.knime.python2.kernel.Python2KernelBackend.executeCommand(Python2KernelBackend.java:1293)
at org.knime.python2.kernel.Python2KernelBackend.execute(Python2KernelBackend.java:1249)
at org.knime.python2.kernel.Python2KernelBackend.lambda$11(Python2KernelBackend.java:1255)
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)