Currently, when saving a QDesign using the save_design method, throws an error saying ERROR WHILE SAVING: 'NoneType' object is not callable.
When the save_design error is fixed using suggested solution (implementing getstate alone), then, another error appear when load_design. The error is RecursionError: maximum recursion depth exceeded.
Information
What is the current behavior?
Currently, when saving a QDesign using the save_design method, throws an error saying
ERROR WHILE SAVING: 'NoneType' object is not callable
.When the
save_design
error is fixed using suggested solution (implementing getstate alone), then, another error appear when load_design. The error isRecursionError: maximum recursion depth exceeded
.Steps to reproduce the problem
Saving design
save_design
methodAfter fixing saving design
load_design
methodWhat is the expected behavior?
Saving and loading design is successful
Suggested solutions
Adding
__getstate__
and__setstate__
method to the Components class seems to fix the issues.