Giter VIP home page Giter VIP logo

Comments (6)

DeepSOIC avatar DeepSOIC commented on August 25, 2024 1

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...

from lattice2.

numo68 avatar numo68 commented on August 25, 2024

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.

from lattice2.

DeepSOIC avatar DeepSOIC commented on August 25, 2024

ha, thanks, that should do the trick!

from lattice2.

Connor9220 avatar Connor9220 commented on August 25, 2024

Is there a fix for this yet? I'm seeing this with latest Lattice2 and 0.21.2

from lattice2.

DeepSOIC avatar DeepSOIC commented on August 25, 2024

should be fixed now, enjoy =)
Sorry, i'm bad at maintaining my workbenches well these days...

from lattice2.

Connor9220 avatar Connor9220 commented on August 25, 2024

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.

from lattice2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.