title: CFE-ConfigValidator-12: Item is not a dict
CFE-ConfigValidator-12: Item is not a dict
This error occurs when MPF expects a dictionary in a config setting but found something else.
show_tokens in a
show_player has to
be a dictionary:
show_player: some_event: your_show_name: show_tokens: dict_key1: "dict_value1" dict_key2: "dict_value2"
You can see which settings are dicts in the config reference of your device.
Using a List instead of a Dict
This is a list in yaml:
your_setting: - item1_in_list - item2_in_list
This is a dictionary:
your_setting: key1_in_dict: value1_in_dict key2_in_dict: value2_in_dict
This is a list of dictionaries (used in shows for example):
your_setting: - key1_in_dict_in_list1: value1_in_dict_in_list1 - key1_in_dict_in_list2: value1_in_dict_in_list2 key2_in_dict_in_list2: value2_in_dict_in_list2
With nested configs (i.e. show_player, slide_player or widget_player) you might have used an option which should be indented one level further or one level less. This can sometimes be a bit tricky. Using an IDE with the MPF language server can help here.
Need more help troubleshooting?
Have a look at our Troubleshooting section. It might give you some hints for certain classes of problems.
What if this did not fix your problem?
Is something missing here? Do you have a helpful hint for others experiencing this error?
Related How To guides
Something missing or wrong? You can fix it!
This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?
Please help us! You can fix it yourself and be an official "open source" contributor!
It's easy! See our Beginner's guide to editing the docs.
Page navigation via the keyboard: < >
You can navigate this site via the keyboard. There are two modes:
General navigation, when search is not focused:
- F , S , / : open search dialog
- P , , : go to previous page
- N , . : go to next page
While using the search function:
- Down , Up : select next / previous result
- Esc , Tab : close search
- Enter : go to highlighted page in the results