Slot = slot_class(slot_name, **slot_dict[slot_name]) TypeError: __init__() got an unexpected keyword argument 'values'

I am just beginner and trying to populate slots like in the image.getting the above error

Hello and Welcome to the forum @minakshimathpal check the indentation in code please.

it should be:

slots:
  color: 
     type: categorical
     values: 
       - black 
       - white 
     mappings:
     - type: from_entity
       entity: color

Ref: Domain

slots:
  risk_level:
    type: categorical
    values:
      - low
      - medium
      - high
    mappings:
    - type: custom

domain.yml (5.1 KB) Thank you for replying…I am still getting the same error…I am uploading the domain file…Please suggests me where are the errors…It will be great help…I have submit the report of this week’s sprint

can there be any version problem.This is the image from pip list

all the data files have version 3.0 mentioned

@minakshimathpal hey I saw your domain file just now and it seems ok with me. Sorry for the late reply was busy in work

@minakshimathpal can you share the error please? rasa shell --debug

@minakshimathpal share rasa --version?

So what can be the possible reasons for this error… Any suggestions

Rasa 3.0

@minakshimathpal please activate your environment and run rasa --version

@nik202

@nik202 next half of the window

@minakshimathpal please share me main error?

@nik202 this is the main error which i am getting on rasa train

@minakshimathpal can you copy and paste the error?

@nik202

image

@nik202

File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\cli\train.py”, line 91, in run_training training_result = train_all( File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\api.py”, line 105, in train return train( File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\model_training.py”, line 121, in train stories = file_importer.get_stories() File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\importers\importer.py”, line 458, in get_stories return self.importer.get_stories(exclusion_percentage) File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\importers\importer.py”, line 375, in get_stories return self._importer.get_stories(exclusion_percentage) File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\utils\common.py”, line 146, in decorated to_cache = f(self, *args, **kwargs) File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\importers\importer.py”, line 253, in get_stories stories = [ File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\importers\importer.py”, line 254, in importer.get_stories(exclusion_percentage) for importer in self._importers File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\importers\rasa.py”, line 52, in get_stories self._story_files, self.get_domain(), exclusion_percentage File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\importers\rasa.py”, line 73, in get_domain domain = Domain.load(self._domain_path) File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\core\domain.py”, line 147, in load other = cls.from_path(path) File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\core\domain.py”, line 157, in from_path domain = cls.from_file(path) File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\core\domain.py”, line 171, in from_file return cls.from_yaml(rasa.shared.utils.io.read_file(path), path) File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\core\domain.py”, line 184, in from_yaml return cls.from_dict(data) File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\core\domain.py”, line 203, in from_dict slots = cls.collect_slots(domain_slots) File “C:\Users\minak\anaconda3\envs\rasa_venv\lib\site-packages\rasa\shared\core\domain.py”, line 329, in collect_slots slot = slot_class(slot_name, **slot_dict[slot_name]) TypeError: init() got an unexpected keyword argument ‘values’

@minakshimathpal I am sure it’s an indentation issue an only error

Wait let me check

@nik202 yep…thank you for helping

@nik202 i don’t have it on github…but let me try to push it and share with you the repo

@nik202 GitHub - minakshimathpal/chatbot