R Training data format of 'data\stories.yml' is 'unk'

“” The following error is showing, I am not able to figure out what kind of error is this? Please help me this""""""

2021-06-29 04:46:11 DEBUG rasa.shared.nlu.training_data.loading - Training data format of ‘data\nlu.yml’ is ‘rasa_yml’. 2021-06-29 04:46:11 DEBUG rasa.shared.nlu.training_data.loading - Training data format of ‘data\rules.yml’ is ‘rasa_yml’. 2021-06-29 04:46:11 DEBUG rasa.shared.nlu.training_data.loading - Training data format of ‘data\stories.yml’ is ‘rasa_yml’. Traceback (most recent call last): File “c:\users\manoj.conda\envs\rasa_covid\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:\users\manoj.conda\envs\rasa_covid\lib\runpy.py”, line 85, in run_code 2021-06-29 04:46:12 exec(code, run_globals) DEBUG File "C:\Users\manoj.conda\envs\rasa_covid\Scripts\rasa.exe_main.py", line 7, in File "c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa_main.py", line 117, in main urllib3.connectionpool - Starting new HTTPS connection (1): o251570.ingest.sentry.io:443 cmdline_arguments.func(cmdline_arguments) File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\cli\train.py”, line 59, in train_parser.set_defaults(func=lambda args: run_training(args, can_exit=True)) File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\cli\train.py”, line 103, in run_training finetuning_epoch_fraction=args.epoch_fraction, File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\api.py”, line 124, in train loop, File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\utils\common.py”, line 296, in run_in_loop result = loop.run_until_complete(f) File “c:\users\manoj.conda\envs\rasa_covid\lib\asyncio\base_events.py”, line 579, in run_until_complete return future.result() File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\model_training.py”, line 100, in train_async domain = await file_importer.get_domain() File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\utils\common.py”, line 141, in decorated return await cache.cached_result() File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\importers\importer.py”, line 449, in get_domain self.importer.get_domain(), self._get_domain_with_e2e_actions() File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\importers\importer.py”, line 455, in _get_domain_with_e2e_actions stories = await self.get_stories() File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\importers\importer.py”, line 491, in get_stories template_variables, use_e2e, exclusion_percentage File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\importers\importer.py”, line 400, in get_stories template_variables, use_e2e, exclusion_percentage File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\utils\common.py”, line 141, in decorated return await cache.cached_result() File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\importers\importer.py”, line 272, in get_stories stories = await asyncio.gather(*stories) File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\importers\rasa.py”, line 55, in get_stories await self.get_domain(), File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\importers\rasa.py”, line 79, in get_domain domain = Domain.load(self._domain_path) File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\core\domain.py”, line 151, in load other = cls.from_path(path) File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\core\domain.py”, line 161, in from_path domain = cls.from_file(path) File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\core\domain.py”, line 175, in from_file return cls.from_yaml(rasa.shared.utils.io.read_file(path), path) File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\core\domain.py”, line 188, in from_yaml return cls.from_dict(data) File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\core\domain.py”, line 204, in from_dict slots = cls.collect_slots(data.get(KEY_SLOTS, {})) File “c:\users\manoj.conda\envs\rasa_covid\lib\site-packages\rasa\shared\core\domain.py”, line 327, in collect_slots slot_type = slot_dict[slot_name].pop(“type”, None) TypeError: pop() takes at most 1 argument (2 given) 2021-06-29 04:46:13 DEBUG urllib3.connectionpool - https://o251570.ingest.sentry.io:443 “POST /api/2801673/store/ HTTP/1.1” 200 41

@manojbanoth Hi! Can you share the rasa open source versions?

version: “2.0” config.yml (1.3 KB) credentials.yml (980 Bytes) domain.yml (4.7 KB) endpoints.yml (1.4 KB) requirements (4.2 KB)

I trying to solve the following challenge you can see the problem statement in link

@manojbanoth Ok no issue checked with requirements file. You using Rasa 2.7.1 and 2.7.0 fine. This error is coming whilst training the model? Right?

yes

@manojbanoth your indentation (means format) is not correct in domain.yml file check with this http://www.yamllint.com

I guess same issue with other files too. can you share nlu , stories, rules and other files please.

nlu.yml (4.7 KB) rules.yml (556 Bytes) stories.yml (918 Bytes)actions.py (4.6 KB)

@manojbanoth I can’t solve your assignment bro, but I can try fixing this issue. ok that will be fine?

yeah. That sounds good !!!

@manojbanoth stories.yml (891 Bytes) nlu.yml (4.7 KB) credentials.yml (980 Bytes) config.yml (1.3 KB) rules.yml (556 Bytes) endpoints.yml (1.4 KB) domain.yml (4.7 KB)

try this and try to run now? Acknowledge me then :slight_smile:

I hope you created the conda environment for rasa?

@manojbanoth Is it working? I hope it should work. If problem persist I will try fix tomorrow.

I am checking

@nik202 same problem occurred

@manojbanoth Sorry, for the late reply as per UK time its morning now. Can you share me the screenshot of the error please? Even all the updated files. Thanks.

@nik202 Good Morning please see the Screenshot of error in the png file

config.yml (1.3 KB) credentials.yml (980 Bytes) domain.yml (4.7 KB) endpoints.yml (1.4 KB) requirements (4.2 KB) nlu.yml (4.7 KB) rules.yml (556 Bytes) stories.yml (891 Bytes) actions.py (4.6 KB) ![Capture|635x500]

@manojbanoth check for you ok.

@nik202 yeah , Fine to me

@manojbanoth Is there any other related file? which you missed to upload?

Apart from model and test file all the files shared

@manojbanoth you error is fixed, I will send you the files soon ok. You have code and format issues in intent, slots and forms refer this Domain. Do compare your domain.yml,with mine domain.yml to get the difference ok.