Version utils error

cannot import name ‘version_utils’ from ‘tensorflow.python.keras.utils’ I am getting the above error while training

any help would be appreciated

Hi @ritik872000 could you please post the full stacktrace here and command you tried running? and also give more information on your set-up: rasa version, OS?

Hi @anca

Thanks for responding!

I got rid of the issue:)

That’s great @ritik872000 - could you please give a brief overview of the solution you found?

Sure, So this issue was due to dependency conflicts.

This Versions of libraries runs smoothly,

Note: you can check the version by the ‘pip freeze’ command.

  1. Make sure you have pip version 20.2
  2. Make sure you have a TensorFlow addon that is compatible with your tensorflow version. You can check the compatibility here GitHub - tensorflow/addons: Useful extra functionality for TensorFlow 2.x maintained by SIG-addons
  3. Rasa version 2.6.1 is required
  4. Rasa-SDK version 2.6.0 is required
  5. Rasa x version 0.39.3 is required.

you can install it via this ‘pip install rasa-x==0.39.3 --extra-index-url https://pypi.rasa.com/simple’ command.

If you have the above versions installed installing rasa and rasa x will be seamless.

I’ve summed up all this info from several other discussion, articles and Github issues.

Hope it helps!