Error as following:
ERROR Keras Network Learner 0:16 Execute failed: An error occurred while creating the Keras network from its layer specifications. Details:
Deep learning Python back end installation tests failed.
Cause: Python library ‘keras’ or one of its dependencies is missing.
Further output: Using TensorFlow backend.
In case Python packages are missing: you can create a new Python Conda environment that contains all packages required by the KNIME deep learning integrations in the “KNIME Deep Learning” Preferences.
Error as following:
ERROR DL Python Network Learner 3:98:0:24 Execute failed: An error occurred while creating the Keras network from its layer specifications. Details:
Deep learning Python back end installation tests failed.
Cause: Python library ‘keras’ or one of its dependencies is missing.
Further output: Using TensorFlow backend.
In case Python packages are missing: you can create a new Python Conda environment that contains all packages required by the KNIME deep learning integrations in the “KNIME Deep Learning” Preferences.
My machine: Mac mini M1
My Python Deep Learning setting by “New environment” so it is anaconda to create:
Hi @anguslou,
The example workflow uses Keras and TensorFlow 1. However, there seem to be problems with TensorFlow on the M1 Mac. There are special versions of TensorFlow 2.5 and 2.6 for the M1 Mac (Tensorflow Plugin - Metal - Apple Developer) but not for TensorFlow 1.
According to this GitHub issue comment the problem seem to be that Rosetta 2 does not support the “AVX” instruction set which is used in the precompiled TensorFlow binaries. The user managed to get it running by compiling TensorFlow himself (which is not an easy task).
I tried both the MacOS Conda Environment Propagations and don’t work. Error message for Python 3.6 as following:
ERROR DL Python Network Learner 4:98:0:24 Execute failed: An error occurred while creating the Keras network from its layer specifications. Details:
Deep learning Python back end installation tests failed.
Cause: Python library ‘keras’ or one of its dependencies is missing.
Further output: Using TensorFlow backend.
In case Python packages are missing: you can create a new Python Conda environment that contains all packages required by the KNIME deep learning integrations in the “KNIME Deep Learning” Preferences.
It will be fixed some day as apple is moving away from x86 and they will have to fix it but it could be months or years. Right now for data science (python) stuff you need for work I would not bother with these machines yet. Note that macs work entirely fine as long as they are x86 (intel) based macs.