I have the same problem: the ‘unashable type’ error occurs when role are added in the domain.yml file for entities
entities:
- people
- number:
roles:
- min
- max
- color:
roles:
- favorite
The error stack:
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\a.porporato\Anaconda3\envs\rasatestenv\Scripts\rasa.exe\__main__.py", line 7, in <module>
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\__main__.py", line 117, in main
cmdline_arguments.func(cmdline_arguments)
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\cli\train.py", line 59, in <lambda>
train_parser.set_defaults(func=lambda args: run_training(args, can_exit=True))
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\cli\train.py", line 91, in run_training
training_result = train_all(
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\api.py", line 109, in train
return rasa.utils.common.run_in_loop(
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\utils\common.py", line 296, in run_in_loop
result = loop.run_until_complete(f)
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\asyncio\base_events.py", line 608, in run_until_complete
return future.result()
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\model_training.py", line 100, in train_async
domain = await file_importer.get_domain()
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\shared\utils\common.py", line 141, in decorated
return await cache.cached_result()
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\shared\importers\importer.py", line 448, in get_domain
original, e2e_domain = await asyncio.gather(
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\shared\utils\common.py", line 141, in decorated
return await cache.cached_result()
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\shared\importers\importer.py", line 331, in get_domain
existing_domain = existing_domain.merge(domain_with_retrieval_intents)
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\shared\core\domain.py", line 311, in merge
combined[key] = merge_lists(combined[key], domain_dict[key])
File "c:\users\a.porporato\anaconda3\envs\rasatestenv\lib\site-packages\rasa\shared\core\domain.py", line 281, in merge_lists
return sorted(list(set(l1 + l2)))
TypeError: unhashable type: 'dict'
Any solution for that? Is there an error in the documentation?
Rasa Version : 2.6.1
Minimum Compatible Version: 2.6.0
Rasa SDK Version : 2.7.0
Rasa X Version : None
Python Version : 3.8.0
Operating System : Windows-10-10.0.19041-SP0
Python Path : c:\users\a.porporato\anaconda3\envs\rasatestenv\python.exe
Thanks