# Python error: An error occured during training of the Keras deep learning network

**URL:** <https://forum.knime.com/t/python-error-an-error-occured-during-training-of-the-keras-deep-learning-network/12706>\
**Category:** KNIME Extensions\
**Tags:** keras\
**Created:** [November 27, 2018, 10:25pm UTC](https://forum.knime.com/t/python-error-an-error-occured-during-training-of-the-keras-deep-learning-network/12706 "2018-11-27T22:25:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurentiu81](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/4af34b/32.png) [@laurentiu81](https://forum.knime.com/u/laurentiu81)\
**Post date:** [November 27, 2018, 10:25pm UTC](https://forum.knime.com/t/python-error-an-error-occured-during-training-of-the-keras-deep-learning-network/12706/1 "2018-11-27T22:25:06Z")

</div>

I have tried multiple times to fix this by reading this forum and other sources, but i still cannot fix it.

Note: when running “conda list -n py36knime” it shows i have keras ver=2.2.4 and python ver =3.6.7

These are the logs:

WARN PythonKernel Using TensorFlow backend.  
WARN PythonKernel 2018-11-27 22:18:56.655058: I tensorflow/core/platform/cpu\_feature\_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA  
WARN PythonKernel 2018-11-27 22:18:56.655488: I tensorflow/core/common\_runtime/process\_util.cc:69] Creating new thread pool with default inter op setting: 12. Tune using inter\_op\_parallelism\_threads for best performance.  
WARN PythonKernel /anaconda3/envs/py36knime/lib/python3.6/site-packages/keras/engine/saving.py:292: UserWarning: No training configuration found in save file: the model was _not_ compiled. Compile it manually.  
WARN PythonKernel warnings.warn(‘No training configuration found in save file: ’  
WARN PythonKernel /anaconda3/envs/py36knime/lib/python3.6/site-packages/keras/engine/sequential.py:110: UserWarning: `Sequential.model` is deprecated. `Sequential` is a subclass of `Model`, you can just use your `Sequential` instance directly.  
WARN PythonKernel warnings.warn(’`Sequential.model` is deprecated. ’  
WARN PythonKernel OMP: Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized.  
WARN PythonKernel OMP: Hint: This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP\_DUPLICATE\_LIB\_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see [http://www.intel.com/software/products/support/](http://www.intel.com/software/products/support/).  
ERROR Keras Network Learner 0:16 java.util.concurrent.ExecutionException: java.lang.Exception: Failed to receive message from Python or forward received message.  
ERROR Keras Network Learner 0:16 Execute failed: An error occured during training of the Keras deep learning network. See log for details.

Need help desperately ☹

---

<div class="post-metadata">

**Author:** ![bwilhelm](https://forum-cdn.knime.com/user_avatar/forum.knime.com/bwilhelm/32/444_2.png) [@bwilhelm](https://forum.knime.com/u/bwilhelm)\
**Post date:** [November 29, 2018, 7:36am UTC](https://forum.knime.com/t/python-error-an-error-occured-during-training-of-the-keras-deep-learning-network/12706/2 "2018-11-29T07:36:59Z")

</div>

Hi @laurentiu81,  
Can you post a complete list of your conda environment? It could help to know the versions of other libraries installed.

In general, we recommend running **Keras 2.1.6** and **TensorFlow 1.8.0** right now because that is tested on our side. So if you are able to downgrade that will most likely fix your issue.

Best  
Benny

---

<div class="post-metadata">

**Author:** ![laurentiu81](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/4af34b/32.png) [@laurentiu81](https://forum.knime.com/u/laurentiu81)\
**Post date:** [November 29, 2018, 5:07pm UTC](https://forum.knime.com/t/python-error-an-error-occured-during-training-of-the-keras-deep-learning-network/12706/3 "2018-11-29T17:07:19Z")

</div>

# 

# Name Version Build Channel

\_tflow\_select 2.3.0 mkl  
absl-py 0.6.1 py36\_0  
appnope 0.1.0 py36hf537a9a\_0  
astor 0.7.1 py36\_0  
backcall 0.1.0 py36\_0  
blas 1.0 mkl  
bleach 3.0.2 py36\_0  
c-ares 1.15.0 h1de35cc\_1  
ca-certificates 2018.03.07 0  
certifi 2018.10.15 py36\_0  
cycler 0.10.0 py36hfc81398\_0  
dbus 1.13.2 h760590f\_1  
decorator 4.3.0 py36\_0  
entrypoints 0.2.3 py36\_2  
expat 2.2.6 h0a44026\_0  
fastcache 1.0.2 py36h1de35cc\_2  
freetype 2.9.1 hb4e5f40\_0  
gast 0.2.0 py36\_0  
gettext 0.19.8.1 h15daf44\_3  
glib 2.56.2 hd9629dc\_0  
gmp 6.1.2 hb37e062\_1  
gmpy2 2.0.8 py36h6ef4df4\_2  
grpcio 1.16.1 py36h044775b\_1  
h5py 2.8.0 py36h878fce3\_3  
hdf5 1.10.2 hfa1e0ec\_1  
icu 58.2 h4b95b61\_1  
intel-openmp 2019.1 144  
ipykernel 5.1.0 py36h39e3cac\_0  
ipython 7.1.1 py36h39e3cac\_0  
ipython\_genutils 0.2.0 py36h241746c\_0  
ipywidgets 7.4.2 py36\_0  
jedi 0.13.1 py36\_0  
jinja2 2.10 py36\_0  
jpeg 9b he5867d9\_2  
jsonschema 2.6.0 py36hb385e00\_0  
jupyter 1.0.0 py36\_7  
jupyter\_client 5.2.3 py36\_0  
jupyter\_console 6.0.0 py36\_0  
jupyter\_core 4.4.0 py36\_0  
keras 2.1.6 py36\_0  
keras-applications 1.0.6 py36\_0  
keras-preprocessing 1.0.5 py36\_0  
kiwisolver 1.0.1 py36h0a44026\_0  
libcxx 4.0.1 hcfea43d\_1  
libcxxabi 4.0.1 hcfea43d\_1  
libedit 3.1.20170329 hb402a30\_2  
libffi 3.2.1 h475c297\_4  
libgfortran 3.0.1 h93005f0\_2  
libiconv 1.15 hdd342a3\_7  
libpng 1.6.35 ha441bb4\_0  
libprotobuf 3.6.1 hd9629dc\_0  
libsodium 1.0.16 h3efe00b\_0  
markdown 3.0.1 py36\_0  
markupsafe 1.1.0 py36h1de35cc\_0  
matplotlib 3.0.1 py36h54f8f79\_0  
mistune 0.8.4 py36h1de35cc\_0  
mkl 2018.0.3 1  
mkl\_fft 1.0.6 py36hb8a8100\_0  
mkl\_random 1.0.1 py36h5d10147\_1  
mpc 1.1.0 h6ef4df4\_1  
mpfr 4.0.1 h3018a27\_3  
mpmath 1.0.0 py36\_2  
nbconvert 5.3.1 py36\_0  
nbformat 4.4.0 py36h827af21\_0  
ncurses 6.1 h0a44026\_0  
nose 1.3.7 py36\_2  
notebook 5.7.2 py36\_0  
numpy 1.15.4 py36h6a91979\_0  
numpy-base 1.15.4 py36h8a80b8c\_0  
openssl 1.1.1a h1de35cc\_0  
pandas 0.23.4 py36h6440ff4\_0  
pandoc 2.2.3.2 0  
pandocfilters 1.4.2 py36\_1  
parso 0.3.1 py36\_0  
pcre 8.42 h378b8a2\_0  
pexpect 4.6.0 py36\_0  
pickleshare 0.7.5 py36\_0  
pip 18.1 py36\_0  
prometheus\_client 0.4.2 py36\_0  
prompt\_toolkit 2.0.7 py36\_0  
protobuf 3.6.1 py36h0a44026\_0  
ptyprocess 0.6.0 py36\_0  
pygments 2.2.0 py36h240cd3f\_0  
pyparsing 2.3.0 py36\_0  
pyqt 5.9.2 py36h655552a\_2  
python 3.6.7 haf84260\_0  
python-dateutil 2.7.5 py36\_0  
pytz 2018.7 py36\_0  
pyyaml 3.13 py36h1de35cc\_0  
pyzmq 17.1.2 py36h1de35cc\_0  
qt 5.9.6 h45cd832\_2  
qtconsole 4.4.2 py36\_0  
readline 7.0 h1de35cc\_5  
scipy 1.1.0 py36h28f7352\_1  
send2trash 1.5.0 py36\_0  
setuptools 40.6.2 py36\_0  
sip 4.19.8 py36h0a44026\_0  
six 1.11.0 py36\_1  
sqlite 3.25.3 ha441bb4\_0  
sympy 1.3 py36\_0  
tensorboard 1.12.0 py36hdc36e2c\_0  
tensorflow 1.12.0 mkl\_py36h2b2bbaf\_0  
tensorflow-base 1.12.0 mkl\_py36h70e0e9a\_0  
termcolor 1.1.0 py36\_1  
terminado 0.8.1 py36\_1  
testpath 0.4.2 py36\_0  
tk 8.6.8 ha441bb4\_0  
tornado 5.1.1 py36h1de35cc\_0  
traitlets 4.3.2 py36h65bd3ce\_0  
wcwidth 0.1.7 py36h8c6ec74\_0  
webencodings 0.5.1 py36\_1  
werkzeug 0.14.1 py36\_0  
wheel 0.32.3 py36\_0  
widgetsnbextension 3.4.2 py36\_0  
xz 5.2.4 h1de35cc\_4  
yaml 0.1.7 hc338f04\_2  
zeromq 4.2.5 h0a44026\_1  
zlib 1.2.11 h1de35cc\_3

I downgraded keras to 2.1.6 but the error is persisting.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:31pm UTC](https://forum.knime.com/t/python-error-an-error-occured-during-training-of-the-keras-deep-learning-network/12706/4 "2023-06-23T20:31:37Z")

</div>


