Comments (6)
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.
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.
ha, thanks, that should do the trick!
from lattice2.
Is there a fix for this yet? I'm seeing this with latest Lattice2 and 0.21.2
from lattice2.
should be fixed now, enjoy =)
Sorry, i'm bad at maintaining my workbenches well these days...
from lattice2.
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)
- With latest FC build Lattice shapestirng doesn't work HOT 2
- Populate with copies: Build Array "Polar" Offset not working HOT 2
- Separate span / step rules / generator values for multiple property references separated by ";" HOT 1
- Lattice Icons have weird location in Linkstage. HOT 4
- Make tangent to construction geometry HOT 1
- Lattice2 Array Filter sketch HOT 1
- Placement has to be attached to edge called Edge1 HOT 13
- Generator properties don't disable when GeneratorMode and Values Source are changed
- Orient Mode cild.FaceAxis HOT 1
- Unit mismatch on keyboard editing attachment angle HOT 1
- Cryptic error message when creating linear array on an arc
- ShapeString doesn't work?
- Additive helix not working HOT 2
- Polar Array count is uneditable PartDesign in latest freecad weekly build HOT 1
- Possible placement error HOT 2
- Single space no longer work in ShapeString
- Error in current 0.22 development versions: Property container has no property 'Support' HOT 3
- String Has incorrect kerning HOT 2
- Lattice2 ShapeString doesn't work in FreeCAD 0.22 dev version HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lattice2.