Error while traning rasa core

I am running function and facing the above error

Traceback (most recent call last):
File "", line 37, in
File "", line 25, in run_chatbot_online
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/", line 193, in **init**
self.domain = self._create_domain(domain)
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/", line 648, in _create_domain
return Domain.load(domain)
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/", line 88, in load
return cls.from_yaml(read_file(filename))
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/", line 92, in from_yaml
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/", line 170, in validate_domain_yaml
source_data = utils.read_yaml_string(yaml)
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/", line 327, in read_yaml_string
return yaml_parser.load(string)
File "/root/anaconda3/lib/python3.6/site-packages/ruamel/yaml/", line 331, in load
return constructor.get_single_data()
File "/root/anaconda3/lib/python3.6/site-packages/ruamel/yaml/", line 109, in get_single_data
node = self.composer.get_single_node()
File "_ruamel_yaml.pyx", line 706, in _ruamel_yaml.CParser.get_single_node
File "_ruamel_yaml.pyx", line 724, in _ruamel_yaml.CParser._compose_document
File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
File "_ruamel_yaml.pyx", line 889, in _ruamel_yaml.CParser._compose_mapping_node
File "_ruamel_yaml.pyx", line 731, in _ruamel_yaml.CParser._compose_node
File "_ruamel_yaml.pyx", line 904, in _ruamel_yaml.CParser._parse_next_event
ruamel.yaml.scanner.ScannerError: while scanning a simple key
in "", line 2, column 1
could not find expected ':'
in "", line 3, column 1

Rasa version :0.13.7 , rasa sdk 0.12.2

Python version : 3.6.0

Operating system (windows, osx, …):kali linux 2019

issue solved there was no proper space in .yml domain file.

Glad you got it figured out @aman19! For future reference, you can check your yaml files with YAMLint. :slightly_smiling_face:

This is my domain.yml file .


  • greet
  • goodbye
  • deny
  • bot_challenge
  • name
  • hometown
  • academics
  • okay
  • welcome


  • utter_greet
  • utter_goodbye
  • utter_iamabot
  • utter_Where_are_you_from
  • utter_Tell_me_about_your_academic_background
  • utter_thanks

responses: utter_greet:

  • text: Hey! What is your name?


  • text: Bye


  • text: I am a bot, powered by Rasa.


  • text: okay!


  • text: Where are you from?


  • text: Tell me about your academic background.


  • text: Thank you for the information.Have a good day.

session_config: session_expiration_time: 60 carry_over_slots_to_new_session: true

Can you please figure out where the space is needed? @aman19