AttributeError: module 'tensorflow' has no attribute 'ConfigProto'

I get this error when from rasa_core.agent import Agent AttributeError: module ‘tensorflow’ has no attribute ‘ConfigProto’

also get this error: Traceback (most recent call last): File “rasa_helper.py”, line 12, in from rasa_core.channels.console import ConsoleInputChannel ImportError: cannot import name ‘ConsoleInputChannel’ from ‘rasa_core.channels.console’ (/usr/local/lib/python3.7/site-packages/rasa_core/channels/console.py)

For reference. What version of rasa, python and tensorflow do you have? You might be able to varify the tool versions by running;

python -m pip freeze | grep tensorflow
python -m pip freeze | grep rasa