2024-02-05 10:38:46 INFO rasa.cli.train - Started validating domain and training data… Traceback (most recent call last): File “/home/rayen/.local/bin/rasa”, line 8, in sys.exit(main()) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/main.py”, line 133, in main cmdline_arguments.func(cmdline_arguments) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/cli/train.py”, line 61, in train_parser.set_defaults(func=lambda args: run_training(args, can_exit=True)) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/cli/train.py”, line 97, in run_training rasa.cli.utils.validate_files( File “/home/rayen/.local/lib/python3.10/site-packages/rasa/cli/utils.py”, line 231, in validate_files validator = Validator.from_importer(importer) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/validator.py”, line 58, in from_importer domain = importer.get_domain() File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/utils/common.py”, line 145, in decorated to_cache = f(self, *args, **kwargs) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/importers/importer.py”, line 474, in get_domain original = self.importer.get_domain() File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/utils/common.py”, line 145, in decorated to_cache = f(self, *args, **kwargs) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/importers/importer.py”, line 345, in get_domain existing_domain = self._importer.get_domain() File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/utils/common.py”, line 145, in decorated to_cache = f(self, *args, **kwargs) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/importers/importer.py”, line 272, in get_domain domains = [importer.get_domain() for importer in self._importers] File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/importers/importer.py”, line 272, in domains = [importer.get_domain() for importer in self._importers] File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/importers/rasa.py”, line 82, in get_domain domain = Domain.load(self._domain_path) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/core/domain.py”, line 185, in load other = cls.from_path(path) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/core/domain.py”, line 196, in from_path domain = cls.from_file(path) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/core/domain.py”, line 210, in from_file return cls.from_yaml(rasa.shared.utils.io.read_file(path), path) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/core/domain.py”, line 223, in from_yaml return cls.from_dict(data) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/core/domain.py”, line 263, in from_dict return cls( File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/core/domain.py”, line 776, in init self._data = self._preprocess_domain_dict( File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/core/domain.py”, line 408, in _preprocess_domain_dict data = self._sanitize_intents_in_domain_dict(data) File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/core/domain.py”, line 471, in _sanitize_intents_in_domain_dict data[KEY_INTENTS] = Domain._sort_intent_names_alphabetical_order( File “/home/rayen/.local/lib/python3.10/site-packages/rasa/shared/core/domain.py”, line 910, in _sort_intent_names_alphabetical_order sorted_intents = sorted(intents, key=sort) TypeError: ‘<’ not supported between instances of ‘NoneType’ and ‘str’
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Unable to train model | 3 | 282 | March 23, 2022 | |
Core training was skipped because no valid domain file was found. Please specify a valid domain using '--domain' argument or check if the provided domain file exists | 14 | 692 | November 14, 2022 | |
Core training was skipped because no valid domain file was found v | 16 | 678 | March 9, 2022 | |
Invalid Domain file while training model with 'rasa train core --domain domain.yml' | 1 | 246 | March 30, 2023 | |
YamlValidationException: Failed to validate the domain file | 4 | 1171 | February 4, 2022 |