# I have an problem when i train my model

**URL:** <https://forum.rasa.com/t/i-have-an-problem-when-i-train-my-model/60955>\
**Category:** Rasa Open Source\
**Created:** [February 5, 2024, 9:43am UTC](https://forum.rasa.com/t/i-have-an-problem-when-i-train-my-model/60955 "2024-02-05T09:43:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rayenMerghmi](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rayenMerghmi](https://forum.rasa.com/u/rayenMerghmi)\
**Post date:** [February 5, 2024, 9:43am UTC](https://forum.rasa.com/t/i-have-an-problem-when-i-train-my-model/60955/1 "2024-02-05T09:43:21Z")

</div>

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’

---

_[View the full topic](https://forum.rasa.com/t/i-have-an-problem-when-i-train-my-model/60955)._
