[Solved] Error shown when adding a Assembly 2 constraint

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
daaan
Posts: 15
Joined: Fri Oct 18, 2019 10:43 pm

[Solved] Error shown when adding a Assembly 2 constraint

Postby daaan » Sat Oct 19, 2019 5:57 pm

Error shown when adding a Assembly 2 constraint in the assembly,
no module named 'objectProxy'
OS: Ubuntu 18.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.3.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)

Code: Select all

<class 'TypeError'>: Object of type 'FeaturePython' is not JSON serializable
Traceback (most recent call last):
  File "/usr/lib/python3.6/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.6/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.6/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
<class 'TypeError'>: Object of type 'FeaturePython' is not JSON serializable
Attachments
no_module.png
no_module.png (170.43 KiB) Viewed 350 times
Last edited by daaan on Thu Nov 07, 2019 10:05 pm, edited 1 time in total.
vocx
Posts: 5029
Joined: Thu Oct 18, 2018 9:18 pm

Re: Error shown when adding a Assembly 2 constraint

Postby vocx » Sat Oct 19, 2019 6:21 pm

daaan wrote:
Sat Oct 19, 2019 5:57 pm
Error shown when adding a Assembly 2 constraint in the assembly,
Do not use Assembly2 because it is obsolete. Use A2plus Workbench instead. You have to re-create the assembly in this workbench.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
daaan
Posts: 15
Joined: Fri Oct 18, 2019 10:43 pm

Re: Error shown when adding a Assembly 2 constraint

Postby daaan » Sat Oct 19, 2019 8:24 pm

ok, thanks,
now, how could I make an animation with the dof and constraints in A2plus Workbench ?
User avatar
daaan
Posts: 15
Joined: Fri Oct 18, 2019 10:43 pm

Re: Error shown when adding a Assembly 2 constraint

Postby daaan » Sat Oct 19, 2019 10:04 pm

vocx wrote:
Sat Oct 19, 2019 6:21 pm
daaan wrote:
Sat Oct 19, 2019 5:57 pm
Error shown when adding a Assembly 2 constraint in the assembly,
Do not use Assembly2 because it is obsolete. Use A2plus Workbench instead. You have to re-create the assembly in this workbench.

ok, I see,
now, how could I make an animation with the dof and constraints in A2plus Workbench ?