Closed numo68 closed 6 months ago
well, apparently, FreeCAD is now using json instead of pickle. For pickle, i have
def __getstate__(self):
return None
def __setstate__(self,state):
return None
that is supposed to prevent these errors. For json however, it seems like i can't override the serializer... I guess i have to dig fc forum a bit to figure out how to fix it, lattice2 can't be the only addon that is affected...
well, apparently, FreeCAD is now using json instead of pickle.
Digging through docs and texts they seem to be doing that for quite a long time, I have found mentioning it in some text for 0.19-dev. So maybe they just disabled something now.
I don't know anything about the internal structures work or how addons are developed. However, https://wiki.freecad.org/Scripted_objects suggests overriding dumps()
and loads()
. See also the end of the https://forum.freecad.org/viewtopic.php?t=40812 discussion.
ha, thanks, that should do the trick!
Is there a fix for this yet? I'm seeing this with latest Lattice2 and 0.21.2
should be fixed now, enjoy =) Sorry, i'm bad at maintaining my workbenches well these days...
should be fixed now, enjoy =) Sorry, i'm bad at maintaining my workbenches well these days...
Thanks! And I understand. Hard to keep up with stuff.
Not sure whether this is a FreeCAD or a Lattice2 problem, so I try here first:
Lattice2: v1.0.0 installed through Addon Manager
FreeCAD on a MacBook Air M2:
Project: Wago221-2411-Clip.FCStd.zip
Saving the project generates:
The saved (at least the timestamp changed) file still loads okay but I did not examine it thoroughly for subtle damage.
The message seems to be triggered by upgrading the FreeCAD from 0.21.1 to 0.21.2.
Thanks