Error while traning rasa core

I am running function train_init.py and facing the above error

Traceback (most recent call last):
File "train_init.py", line 37, in
run_chatbot_online(nlu_interpreter)
File "train_init.py", line 25, in run_chatbot_online
action_endpoint=action_endpoint)
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/agent.py", line 193, in **init**
self.domain = self._create_domain(domain)
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/agent.py", line 648, in _create_domain
return Domain.load(domain)
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/domain.py", line 88, in load
return cls.from_yaml(read_file(filename))
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/domain.py", line 92, in from_yaml
cls.validate_domain_yaml(yaml)
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/domain.py", line 170, in validate_domain_yaml
source_data = utils.read_yaml_string(yaml)
File "/root/anaconda3/lib/python3.6/site-packages/rasa_core/utils.py", line 327, in read_yaml_string
return yaml_parser.load(string)
File "/root/anaconda3/lib/python3.6/site-packages/ruamel/yaml/main.py", line 331, in load
return constructor.get_single_data()
File "/root/anaconda3/lib/python3.6/site-packages/ruamel/yaml/constructor.py", 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 .

intents:

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

actions:

  • 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?

utter_goodbye:

  • text: Bye

utter_iamabot:

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

utter_okay:

  • text: okay!

utter_Where_are_you_from:

  • text: Where are you from?

utter_Tell_me_about_your_academic_background:

  • text: Tell me about your academic background.

utter_thanks:

  • 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