MASH Error - unhashable type: 'list' #

MASH Error - unhashable type: 'list' #

sublist
Advocate Advocate
2,080 Views
6 Replies
Message 1 of 7

MASH Error - unhashable type: 'list' #

sublist
Advocate
Advocate

MY referenced MASH Objects generate this error on startup. Luckily they still work.

Any Idea what's happening here?

 

# Error: TypeError: file C:\Program Files\Autodesk\Maya2018\plug-ins\MASH\scripts\mash_repro_utils.py line 202: unhashable type: 'list' #

 

 

Greetz

Guido

0 Likes
2,081 Views
6 Replies
Replies (6)
Message 2 of 7

jordan.giboney
Autodesk Support
Autodesk Support

Hi @sublist 

 

Thanks for posting! Would you be able to share your scene file? You can upload it directly to this thread in a .ZIP file, or send me a private link to a google drive/dropbox/etc account to download it from 🙂

 

What version of Maya were the MASH objects created in? What version of Maya re they being referenced into?

 

Thanks for being a part of our community!



Jordan Giboney
Technical Solutions Engineer | Media & Entertainment
Installation & Licensing forums | Contact product support | Autodesk AREA


0 Likes
Message 3 of 7

jordan.giboney
Autodesk Support
Autodesk Support

Hi @sublist 

 

I hope you had a good weekend! 🙂 I wanted to check in and see how your project was going, any new developments? Any new issues I can help with?

 

Thanks again for being a part of our community! I look forward to hearing from you.



Jordan Giboney
Technical Solutions Engineer | Media & Entertainment
Installation & Licensing forums | Contact product support | Autodesk AREA


0 Likes
Message 4 of 7

sublist
Advocate
Advocate

Hello.

 

i will try to setup a scene which will reproduce this error hopefully

 

 

best

guido

0 Likes
Message 5 of 7

sublist
Advocate
Advocate

Here is an example scene.

 

Pathing inside Maya and Textures are missing, but should not affect the problem.

 

# Error: TypeError: file C:\Program Files\Autodesk\Maya2018\plug-ins\MASH\scripts\mash_repro_utils.py line 202: unhashable type: 'list' #

0 Likes
Message 6 of 7

murphybeck
Community Visitor
Community Visitor

The error says that you try to use a list as dictionary key, you'll have to change your list into tuples if you want to put them as keys in your dictionary. TypeError: unhashable type: 'list' usually means that you are trying to use a list as an hash argument. The only types of values not acceptable as keys are values containing lists or dictionaries or other mutable types that are compared by value rather than by object identity, the reason being that the efficient implementation of dictionaries requires a key’s hash value to remain constant.

 

0 Likes
Message 7 of 7

sublist
Advocate
Advocate

Yes for sure, but this happens inside a shipped maya internal script. So the bug is theirs

0 Likes