Keras Network Learner error

I am running the deep learning example , knime://EXAMPLES/04_Analytics/14_Deep_Learning/02_Keras/08_Sentiment_Analysis_with_Deep_Learning_KNIME_nodes, on my local laptop (Windows 10) with KNIME 3.6.1 (updated some of 3.6.2 libraries) and get this error:

WARN PythonKernel Using TensorFlow backend.
WARN PythonKernel 2018-11-15 14:08:43.786393: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
ERROR Keras Network Learner 2:16 Execute failed: Selected Keras back end ‘Keras (TensorFlow)’ is not available anymore. Please check your local installation.
Details: Installation test for Python back end ‘org.knime.dl.keras.tensorflow.core.DLKerasTensorFlowNetwork’ timed out. Please make sure your Python environment is properly set up and consider increasing the timeout (currently 25000 ms) using the VM option ‘-Dknime.dl.installationtesttimeout=’.

I have installed Tensorflow 1.8.0, and Keras 2.1.6 in py35_knime.
How can I fix this issue?
Thanks!

Hi @Sunnyli,

Can you provide the KNIME log file? Maybe we can find more information what’s going on there. One more thing you can try is to add the command ‘-Dknime.dl.installationtesttimeout=60000 to the end of your knime.ini file (which can be found in the installation folder of KNIME).

Best,

Christian

1 Like

Hi there,

I’m getting the exact same error since yesterday. The funny thing is, it used to work fine for weeks and I did not change anything in my Tensorflow extension or Python installation. Did not find this post yesterday so I opened a new one here with some details.

The log file looks like this (more complete version attached):
2019-05-16 08:42:44,945 : WARN : Thread-14 : PythonKernel : : : 2019-05-16 08:42:44.945865: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
2019-05-16 08:42:45,571 : DEBUG : KNIME-Worker-4 : Node : Keras Network Learner : 0:127 : reset
2019-05-16 08:42:45,571 : ERROR : KNIME-Worker-4 : Node : Keras Network Learner : 0:127 : Execute failed: Selected Keras back end ‘Keras (TensorFlow)’ is not available anymore. Please check your local installation.
Details: Installation test for Python back end ‘org.knime.dl.keras.tensorflow.core.DLKerasTensorFlowNetwork’ timed out. Please make sure your Python environment is properly set up and consider increasing the timeout (currently 25000 ms) using the VM option ‘-Dknime.dl.installationtesttimeout=’.
2019-05-16 08:42:45,572 : DEBUG : KNIME-Worker-4 : Node : Keras Network Learner : 0:127 : Execute failed: Selected Keras back end ‘Keras (TensorFlow)’ is not available anymore. Please check your local installation.
Details: Installation test for Python back end ‘org.knime.dl.keras.tensorflow.core.DLKerasTensorFlowNetwork’ timed out. Please make sure your Python environment is properly set up and consider increasing the timeout (currently 25000 ms) using the VM option ‘-Dknime.dl.installationtesttimeout=’.
org.knime.core.node.InvalidSettingsException: Selected Keras back end ‘Keras (TensorFlow)’ is not available anymore. Please check your local installation.
Details: Installation test for Python back end ‘org.knime.dl.keras.tensorflow.core.DLKerasTensorFlowNetwork’ timed out. Please make sure your Python environment is properly set up and consider increasing the timeout (currently 25000 ms) using the VM option ‘-Dknime.dl.installationtesttimeout=’.

  • at org.knime.dl.keras.base.nodes.learner.DLKerasLearnerNodeModel.executeInternal(DLKerasLearnerNodeModel.java:631)*
  • at org.knime.dl.keras.base.nodes.learner.DLKerasLearnerNodeModel.execute(DLKerasLearnerNodeModel.java:294)*
  • at org.knime.core.node.NodeModel.executeModel(NodeModel.java:567)*
  • at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1186)*
  • at org.knime.core.node.Node.execute(Node.java:973)*
  • 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(Executors.java:511)*
  • at java.util.concurrent.FutureTask.run(FutureTask.java:266)*
  • at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)*
  • at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)*

Any input highly appreciated!

Thanks,
Mark
knime.log (744.1 KB)

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