A2plus missing parts in sub-assemblies

Need help, or want to share a macro? Post here!
User avatar
branilson
Posts: 5
Joined: Sun Jan 28, 2018 3:54 am

A2plus missing parts in sub-assemblies

Postby branilson » Thu Apr 08, 2021 1:50 am

Hello everybody,

Sorry if I am posting this message in the wrong place. I confess I felt confused when I was choosing the topic.

My installation:
OS: Ubuntu 20.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 9e3b630bbfb6807e93eeffb655e6c20f218644fc
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United States (en_US)

The problem:
I use A2plus a lot to make my assemblies, even often having to start the work from scratch always I need to modify the geometry of a base part within the assembly. Complaints apart, right now I am facing a new problem regarding missing parts in imported a2plus subassemblies. Take a look at the pictures below.

The first picture is an a2plus assembly that I am trying to import in the final assembly of the second picture. Notice there are some parts missing.

When I try to update the assembly I am getting the error messages below. Please, help me to understand what is happening.

Thank you in advance.

Code: Select all

22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  
===== Start Solving System ====== 
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  TARGET   POS-ACCURACY :1e-05
22:13:47  REACHED  POS-ACCURACY :6.41261195323249e-08
22:13:47  TARGET  SPIN-ACCURACY :1e-05
22:13:47  REACHED SPIN-ACCURACY :0.0
22:13:47  SA SPIN-ACCURACY      :0.0
22:13:47  ===== System solved using partial + recursive unfixing =====
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:13:47  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:13:47  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
22:25:13  PropertyPythonObject::toString(): failed for <class 'PEMInserts.FSPcbStandOffObject'>
22:25:13  Traceback (most recent call last):
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type Quantity is not JSON serializable
Attachments
FreeCAD_a2p_Subassembly.png
FreeCAD_a2p_Subassembly.png (43.27 KiB) Viewed 52 times
FreeCAD_a2p_Import_error.png
FreeCAD_a2p_Import_error.png (65.12 KiB) Viewed 52 times
Last edited by branilson on Thu Apr 08, 2021 1:37 pm, edited 1 time in total.
User avatar
branilson
Posts: 5
Joined: Sun Jan 28, 2018 3:54 am

Re: A2plus missing parts in sub-assemblies

Postby branilson » Thu Apr 08, 2021 1:32 pm

Now I see the error messages have to do with Fasteners WB. Every time I add a PCB metric standoff this error appears. The Fastener WB would be fantastic besides that.