Skip to content

Error Saving File After Creating A Frame with FrameBench Manager #23

@andres-hurtado-lopez

Description

@andres-hurtado-lopez

Hi:

When I try to draw a simple frame using the FrameBench Manager with a sketch that simply uses a rectangle and a custom profile built using the "Insert Sections" I get and error trying to save the file with the structure created:

2024-01-22_22-28

22:27:49  PropertyPythonObject::toString(): failed for <class 'fFeatures.ViewProviderFrameBranch'>
22:27:49  Traceback (most recent call last):
  File "/tmp/.mount_freecaisJjZw/usr/lib/python3.10/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/tmp/.mount_freecaisJjZw/usr/lib/python3.10/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/tmp/.mount_freecaisJjZw/usr/lib/python3.10/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/tmp/.mount_freecaisJjZw/usr/lib/python3.10/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type ViewProviderDocumentObject is not JSON serializable

I'm using freecad 0.21.2 from an Appimage and my computer setup is the following:

       _,met$$$$$gg.          andresh@andres-hurtado-lopez
    ,g$$$$$$$$$$$$$$$P.       ----------------------------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux trixie/sid x86_64
 ,$$P'              `$$$.     Host: ZenBook UX425QA_UM425QA 1.0
',$$P       ,ggs.     `$$b:   Kernel: 6.6.11-amd64
`d$$'     ,$P"'   .    $$$    Uptime: 30 mins
 $$P      d$'     ,    $$P    Packages: 3834 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.21
 $$;      Y$b._   _,d$P'      Resolution: 1920x1080
 Y$$.    `.`"Y$$$$P"'         WM: i3
 `$$b      "-.__              Theme: Adwaita [GTK3]
  `Y$$                        Icons: Adwaita [GTK3]
   `Y$$.                      Terminal: alacritty
     `$$b.                    CPU: AMD Ryzen 9 5900HX with Radeon Graphics (16) @ 4.680GHz
       `Y$$b.                 GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
          `"Y$b._             Memory: 2055MiB / 15395MiB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions