Cant execute the rasa tutorial mentioned in the github - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

👋 Introducing the Rasa Playground

Cant execute the rasa tutorial mentioned in the github

post by GBkiriti on Dec 1, 2020

Training NLU model…
Traceback (most recent call last):
File “/Users/kiriti/Voxlogic/venv/bin/rasa”, line 8, in
sys.exit(main())
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/ main.py”, line 116, in main
cmdline_arguments.func(cmdline_arguments)
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/cli/train.py”, line 90, in train
nlu_additional_arguments=extract_nlu_additional_arguments(args),
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/train.py”, line 55, in train
loop,
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/utils/common.py”, line 308, in run_in_loop
result = loop.run_until_complete(f)
File “uvloop/loop.pyx”, line 1456, in uvloop.loop.Loop.run_until_complete
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/train.py”, line 110, in train_async
nlu_additional_arguments=nlu_additional_arguments,
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/train.py”, line 207, in _train_async_internal
old_model_zip_path=old_model,
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/train.py”, line 246, in _do_training
additional_arguments=nlu_additional_arguments,
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/train.py”, line 547, in _train_nlu_with_validated_data
**additional_arguments,
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/nlu/train.py”, line 97, in train
trainer = Trainer(nlu_config, component_builder)
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/nlu/model.py”, line 155, in init
components.validate_requirements(cfg.component_names)
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/nlu/config.py”, line 152, in component_names
return [c.get(“name”) for c in self.pipeline]
File “/Users/kiriti/Voxlogic/venv/lib/python3.7/site-packages/rasa/nlu/config.py”, line 152, in
return [c.get(“name”) for c in self.pipeline]
AttributeError: ‘str’ object has no attribute ‘get’

Provide a new tutorial for the new version, if it is a version error.

post by ChikkaUdayaSai on Dec 1, 2020

Can you kindly post your question again? The question was not clear.

post by GBkiriti on Dec 1, 2020

Hey @ChikkaUdayaSai I have tried to implement the tutorial in the below-mentioned link. But I am stuck with an error which says the following.

I have added the schema and data to Grakn, but when I use the command “rasa train” to train the bot, the above-mentioned error is being displayed.
Tutorial: GitHub - RasaHQ/tutorial-knowledge-base: Integrating Rasa with a knowledge base to encode domain knowledge and resolve entities OS: OSX rasa==2.1.1 rasa-sdk==2.1.2

post by ChikkaUdayaSai on Dec 2, 2020

Hi @GBkiriti,
First things first. The GitHub tutorial is built with rasa 1.7.0 and rasa-sdk 1.7.0. Do check out the requirements.txt in that repo for more information.
Rasa team is actually updating each repository to the latest 2.X versions. Probably, you can raise an issue in that repo.
So, it is because of version change you are getting all these errors. Try installing rasa 1.7.0 in a virtual environment and do it again. Your understanding is correct. It is a version issue. Kindly raise an issue in the GitHub repo for quick resolution.
Thank you.