AttributeError: module 'tensorflow.python.keras.utils.tf_utils' has no attribute 'smart_cond'

I’ve been trying to train my data in RASA, and I get this error prompted “AttributeError: module ‘tensorflow.python.keras.utils.tf_utils’ has no attribute ‘smart_cond’” and due to this my bot is not loaded properly. However, I have already installed tensorflow, keras and numpy on my machine. My rasa is Rasa Open Source 3.0. Tensorflow is 2.4.

Hi @sss. Did you install Rasa Open Source in clean virtual environment? The latest version of Rasa Open Source is 2.4, so can you please double check which version you are using