Getting an error for rasa init command

I am getting rule error after rasa init command… I don’t know how to solve this… I am new to rasa, if anyone could guide me, it would be very helpful

(chatbot) D:\ML\My Projects\chatbot>rasa init 2021-03-20 19:26:57.459169: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll ┌────────────────────────────────────────────────────────────────────────────────┐ │ Rasa Open Source reports anonymous usage telemetry to help improve the product │ │ for all its users. │ │ │ │ If you’d like to opt-out, you can use rasa telemetry disable. │ │ To learn more, check out Rasa Telemetry. │ └────────────────────────────────────────────────────────────────────────────────┘ Welcome to Rasa! :robot:

To get started quickly, an initial project will be created. If you need some help, check out the documentation at Introduction to Rasa Open Source. Now let’s start! :point_down:t4:

? Please enter a path where the project will be created [default: current directory] ? Directory ‘D:\ML\My Projects\chatbot’ is not empty. Continue? Yes Created project directory at ‘D:\ML\My Projects\chatbot’. Finished creating project structure. ? Do you want to train an initial model? :muscle:t4: Yes Training an initial model… Traceback (most recent call last): File “c:\users\chinmay\anaconda3\envs\chatbot\lib\runpy.py”, line 192, in _run_module_as_main return run_code(code, main_globals, None, File “c:\users\chinmay\anaconda3\envs\chatbot\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Users\chinmay\anaconda3\envs\chatbot\Scripts\rasa.exe_main.py", line 7, in File "c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa_main.py", line 116, in main cmdline_arguments.func(cmdline_arguments) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\cli\scaffold.py”, line 234, in run init_project(args, path) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\cli\scaffold.py”, line 129, in init_project print_train_or_instructions(args, path) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\cli\scaffold.py”, line 68, in print_train_or_instructions training_result = rasa.train(domain, config, training_files, output) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\train.py”, line 94, in train return rasa.utils.common.run_in_loop( File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\utils\common.py”, line 307, in run_in_loop result = loop.run_until_complete(f) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\asyncio\base_events.py”, line 608, in run_until_complete return future.result() File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\train.py”, line 151, in train_async file_importer = TrainingDataImporter.load_from_config( File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\shared\importers\importer.py”, line 84, in load_from_config config = rasa.shared.utils.io.read_config_file(config_path) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\shared\utils\io.py”, line 560, in read_config_file return read_validated_yaml(filename, CONFIG_SCHEMA_FILE) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\shared\utils\io.py”, line 544, in read_validated_yaml rasa.shared.utils.validation.validate_yaml_schema(content, schema) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\rasa\shared\utils\validation.py”, line 170, in validate_yaml_schema c.validate(raise_exception=True) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\pykwalify\core.py”, line 164, in validate self._start_validate(self.source) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\pykwalify\core.py”, line 196, in _start_validate r = Rule(schema=v) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\pykwalify\rule.py”, line 64, in init self.init(schema, “”) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\pykwalify\rule.py”, line 428, in init func_mapping[k](v, rule, path) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\pykwalify\rule.py”, line 1145, in init_mapping_value regex_rule.init(v, u"{0}/mapping;regex/{1}".format(path, regex[1:-1])) File “c:\users\chinmay\anaconda3\envs\chatbot\lib\site-packages\pykwalify\rule.py”, line 438, in init raise RuleError( pykwalify.errors.RuleError: <RuleError: error code 4: Unknown key: nullable found: Path: ‘/mapping;regex/.+’>

Hi Chinmay,

if you want to share logs you can use the markdown syntax to give the code proper highlighting and rendering. You can read more about that syntax here. We also have a guide on how to ask great questions that gives me details on this feature.

Just to check, what version of Rasa are you running? You can confirm the version by running this command;

rasa --version

Hi Chinmay. Have you solved the problem? I have the same

For me updating pykwalify helped. pip install -U pykwalify

2 Likes