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.
Hey @ChikkaUdayaSai I have tried to implement the tutorial in the below mentioned link.But I am stuck with an error which says as following
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’
I have added the schema and data to grakn but when i use command “rasa train” to train the bot the above mentioned error is being displayed.
Hi @GBkiriti,
First things first. The github tutorial is build 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 latest 2.X versions. Probably, you can raise a 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 github repo for quick resolution.