You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "….py", line 5, in <module>
d = rubymarshal.reader.load(f)
File "…/.local/lib/python3.8/site-packages/rubymarshal/reader.py", line 289, in load
return loader.read()
File "…/.local/lib/python3.8/site-packages/rubymarshal/reader.py", line 197, in read
attributes = self.read_attributes()
File "…/.local/lib/python3.8/site-packages/rubymarshal/reader.py", line 233, in read_attributes
attr_value = self.read()
File "…/.local/lib/python3.8/site-packages/rubymarshal/reader.py", line 125, in read
result[key] = value
TypeError: unhashable type: 'list'
Ruby doesn't (IIRC) have a different concept of tuples and arrays. I hacked around it by adding
ifisinstance(key, list): # Workaround for non-hashable lists used as keykey=tuple(key)
to the reading code for TYPE_HASH. It's a bit ad-hoc but I'm not sure what a consistent fix would be.
The text was updated successfully, but these errors were encountered:
I ran into an error while reading ruby data:
Ruby doesn't (IIRC) have a different concept of tuples and arrays. I hacked around it by adding
to the reading code for
TYPE_HASH
. It's a bit ad-hoc but I'm not sure what a consistent fix would be.The text was updated successfully, but these errors were encountered: