mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
3.02k stars 583 forks source link

AttributeError: 'DataStore' object has no attribute 'fast_hash' #2185

Closed MarcelHeu closed 8 months ago

MarcelHeu commented 8 months ago

Hello,

I recently updated the trimesh library. When i try to load in some older file with the pickle module, i always get the following error message:

_AttributeError: 'DataStore' object has no attribute 'fasthash'

I know that this error is related to the trimesh update 3.15.2. Is there a way to fix it, so i can still load the old files?

Best regards, Marcel

mikedh commented 8 months ago

Hey, I don't think you can pickle across different versions of objects, if you want to pickle you probably have to dump and load using the same version of trimesh (i.e. pin your version). You could also open the mesh with the older version and save it as a neutral format like GLB.