Training failed on RasaX

HI, i am new on this platform. I have installed Rasa X on a server. when i trained on the train model then found these errors. Please give me the right solution.

Training failed

An unexpected error occurred during training. Error: Failed to load the component 'EmbeddingIntentClassifier'. Cannot find class 'EmbeddingIntentClassifier' in global namespace. Please check that there is no typo in the class name and that you have imported the class into the global namespace. Either your pipeline configuration contains an error or the module you are trying to import is broken (e.g. the module is trying to import a package that is not installed). Traceback (most recent call last):
File "/opt/venv/lib/python3.8/site-packages/rasa/nlu/registry.py", line 121, in get_component_class
return rasa.shared.utils.common.class_from_module_path(component_name)
File "/opt/venv/lib/python3.8/site-packages/rasa/shared/utils/common.py", line 45, in class_from_module_path
raise ImportError(f"Cannot retrieve class from path {module_path}.")
ImportError: Cannot retrieve class from path EmbeddingIntentClassifier.

@MNR Share your rasa version rasa --version

1 Like

Hi, Thanks for your response Rasa Version: 2.2.9 Rasa SDK Version: 2.2.0 Python Version : 3.6.9

@MNR Please update the rasa and rasa-sdk to 2.8.1 respectively

pip install rasa==2.8.1
pip install rasa-sdk==2.8.1

Then;

Install this version rasa-x==0.39.3

pip install rasa-x==0.39.3 --extra-index-url https://pypi.rasa.com/simple

Some know errors:

ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’ try running pip install SQLAlchemy==1.3.22 should fix it.)

And, if you get an error not being able to import yaml then run pip install pyyaml.