The error message "found unhashable key" occurs when trying to convert a mapping from YAML to a Python dict and the key is not hashable, which means it can't be used as a dictionary key.
This happens because mutable containers like lists are not hashable while immutable containers like tuples are hashable. If you control the input and are okay with language-specific tags, you can use full_load(), which resolves all tags except those known to be unsafe, including all the Python-specific tags.
If you don't control the input, you can use a custom constructor to convert the keys to something hashable, such as converting list keys to tuples.
If you don't know the key types in advance, you can let the mapping devolve into a list of pairs.
However, this method doesn't work if you need to round-trip the data or emit this kind of YAML yourself.















