Module 'tensorflow.python.keras.engine.training' has no attribute 'enable_multi_worker' - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

👋 Introducing the Rasa Playground

Module ‘tensorflow.python.keras.engine.training’ has no attribute ‘enable_multi_worker’

post by sharsh on Mar 20, 2021

I got this error when I train rasa model… Please anyone tell me what is the error and how to fix it.

post by smkhant on Mar 31, 2021

Hi Shashank Did you get any solution for this problem? I am facing the same issue.

post by sharsh on Mar 31, 2021

Hi, yes, you have to setup as per conda. With pip it shows error only. Go for conda.

post by smkhant on Mar 31, 2021

sorry. Didn’t get your point. Can you please elaborate?

post by sharsh on Mar 31, 2021

HERE IS THE SOLUTION

==> Setup environment file with the conda, inside the anaconda file in user/admin of your windows. For pip it throws some errors. Mostly these errors come in the windows OS.

post by CarlStrathearn on Mar 31, 2021

I am also getting this error! Did you manage to resolve it in the end?

post by kiwoo on Apr 6, 2021

Meet the same issue…

post by sharsh on Apr 6, 2021

check the above comments.

post by Jaykeerti123 on Apr 28, 2021

Anyone tried without conda. i am unable to resolve this in the latest version

post by AminaDerouiche on May 10, 2021

I’m facing the same problem I upgraded tensorflow and then it appeared can someone help us plz ?

post by rmsharks4 on May 12, 2021

Same issue. Had to upgrade on Mac-M1 to 2.4.0 and now seeing this issue. I installed with miniconda and not pip.

post by chiranshu14 on Jun 28, 2021

Has anyone figured this out? Why does it work with conda but not with normal Python? How do we deploy this with our normal python versions? I already have django running, was planning on integrating rasa model inside that. But it won’t work.

post by captain7oxic on Aug 11, 2021

Same issue with me , please anyone tell me how to solve , rasa version 2.8.x with tf version 2.3.4

post by anca on Aug 11, 2021

Please try with TF version 2.3.3 - in the rasa poetry.lock file this is currently the required version.

post by sharsh on Aug 17, 2021

Check this out!

post by Italosayan on Mar 26, 2022

You need to uninstall the tensorflow version you have install outside the virtual enviroment. I don’t know why but rasa uses the tensorflow installed outside.


deactivate
pip3 uninstall tensorflow
source env/bin/activate
rasa train

post by aron-radvanyi on Jun 1, 2023

Hey guys! I had the same problems now but I have the solution. UPDATE 01/06/2023

  1. run: pip install --upgrade tensorflow
  2. it will download stuff but then will give you an error warning message that rasa 5.10 is using tensorflow x.y version and tensorflow-intel x.y version (cannot remember the exact version).
  3. just pip install the version it tells you it is compatible with your rasa

After this I could train the model.

Hope this helps, Cheers!