[Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Lars_G
Posts: 5
Joined: Fri Apr 01, 2022 10:36 pm

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by Lars_G »

I get the same error message as Kunda1 when I try to select the A2plus V0.4.55a workbench.
(Error message is "No module named 'PySide2.QtUiTools'").
I've installed freecad on Ubuntu via Snap. Details of the installation are:

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.28580 (Git)
Build type: Release
Branch: master
Hash: 8ccaac7264742da9e58a8238cc4d9d973bb57e98
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, OCC 7.6.1
Locale: English/United States (en_US)
Installed mods:
* BIM 2021.12.0
* fasteners 0.3.40
* Assembly4 0.11.10
* parts_library
* A2plus 0.4.55a
* ExplodedAssembly
* BOLTSFC

Any idea how to fix the problem?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by Kunda1 »

Lars_G wrote: Fri Apr 01, 2022 10:46 pm I get the same error message as Kunda1 when I try to select the A2plus V0.4.55a workbench.
(Error message is "No module named 'PySide2.QtUiTools'").
Can't reproduce on dan-miel's branch in A2plus

Code: Select all

OS: Ubuntu Core 20 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.28580 (Git)
Build type: Release
Branch: master
Hash: 8ccaac7264742da9e58a8238cc4d9d973bb57e98
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, OCC 7.6.1
Locale: English/United States (en_US)
Installed mods: 
  * ToolbarStyle
  * Assembly4 0.11.10
  * stickframe
  * sheetmetal 0.2.49
  * pinger
  * Assembly3 0.11.1
  * Behave-Dark-Colors 0.0.1
  * Curves 0.3.0
  * Ship
  * BIM 2021.12.0
  * A2plus 0.4.54b

But when I switch to the master branch I see the issue

Code: Select all

21:04:24  No module named 'PySide2.QtUiTools'
21:04:24  Traceback (most recent call last):
  File "<string>", line 82, in Initialize
  File "/home/beast/snap/freecad-ppd/common/Mod/A2plus/./CD_A2plusupdater.py", line 30, in <module>
    from PySide import QtUiTools
  File "/snap/freecad-ppd/214/usr/Ext/PySide/QtUiTools.py", line 1, in <module>
    from PySide2.QtUiTools import *

Code: Select all

OS: Ubuntu Core 20 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.28580 (Git)
Build type: Release
Branch: master
Hash: 8ccaac7264742da9e58a8238cc4d9d973bb57e98
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, OCC 7.6.1
Locale: English/United States (en_US)
Installed mods: 
  * ToolbarStyle
  * Assembly4 0.11.10
  * stickframe
  * sheetmetal 0.2.49
  * pinger
  * Assembly3 0.11.1
  * Behave-Dark-Colors 0.0.1
  * Curves 0.3.0
  * Ship
  * BIM 2021.12.0
  * A2plus 0.4.55a
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by Kunda1 »

Actually, this may be an issue with the Snap itself it may not have QtUiTools installed

Code: Select all

$ freecad-ppd.cmd 
FreeCAD 0.20, Libs: 0.20R28580 (Git)
.
.
.
[FreeCAD Console mode <Use Ctrl-D (i.e. EOF) to exit.>]
>>> from PySide2 import QtUiTools
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'QtUiTools' from 'PySide2' (/snap/freecad-ppd/214/usr/lib/python3/dist-packages/PySide2/__init__.py)


Edit: Opened a ticket on the snap repo
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by Kunda1 »

Next available edge and stable snaps will provide PySide2.QtUiTools
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
dan-miel
Posts: 391
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by dan-miel »

Kunda1 wrote: Sat Apr 02, 2022 1:22 am Next available edge and stable snaps will provide PySide2.QtUiTools
Thanks to all who has worked on this.
Also, these two features have been added to A2plus which is at Vers. 0.4.55a. There is also a help file in the viewer.
Dan
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by Kunda1 »

dan-miel wrote: Sat Apr 02, 2022 3:41 pm
@dan-miel any idea why when I invoke A2plus wb i see this warning in my report:

Code: Select all

14:00:30  languagePath of A2plus Workbench is: /home/foo/snap/freecad-ppd/common/Mod/A2plus/./translations
14:00:30  Loading Spreadsheet module... done
14:00:30  Cannot open file '/home/foo/icons/ConstraintDiagnostics.svg', because: No such file or directory
14:00:30  Cannot open file '/home/foo/icons/ConstraintDiagnostics.svg', because: No such file or directory
Is there something up with how CD_checkconstraints.py or CD_ConstraintDiagnostics.py are looking for ConstraintDiagnostics.svg ?

Code: Select all

OS: Ubuntu Core 20 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.28601 (Git)
Build type: Release
Branch: master
Hash: 9500706d6f2a98a3543a441083ceba475b7cfd86
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, OCC 7.6.1
Locale: English/United States (en_US)
Installed mods: 
  * ToolbarStyle
  * Assembly4 0.11.10
  * stickframe
  * sheetmetal 0.2.49
  * pinger
  * Assembly3 0.11.1
  * Behave-Dark-Colors 0.0.1
  * Curves 0.3.0
  * Ship
  * BIM 2021.12.0
  * A2plus 0.4.55a
Edit: Can't recreate on AppImage. I guess this is another Snap related issue

Code: Select all

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.28567 (Git) AppImage
Build type: Release
Branch: (HEAD detached at eb65256)
Hash: eb652569c1bc905b9ece89598ce99e2a2549acae
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * Behave-Dark-Colors 0.0.1
  * A2plus 0.4.55a
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
dan-miel
Posts: 391
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by dan-miel »

Kunda1 wrote: Sat Apr 02, 2022 6:14 pm Is there something up with how CD_checkconstraints.py or CD_ConstraintDiagnostics.py are looking for ConstraintDiagnostics.svg ?
I have seen that error sometimes but ConstraintDiagnostics.svg is in the icon folder.
Kunda1 wrote: Sat Apr 02, 2022 6:14 pm 14:00:30 Cannot open file '/home/foo/icons/ConstraintDiagnostics.svg', because: No such file or directory
I thought maybe the home meant the default FreeCAD directory. Other wise I don't know what causes the error.
Dan

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by Kunda1 »

@dan-miel why are you still using v0.19.x ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
dan-miel
Posts: 391
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by dan-miel »

Kunda1 wrote: Sat Apr 02, 2022 9:07 pm @dan-miel why are you still using v0.19.x ?
Lazy? I have a newer one but just happened to be using 19. This error came up when I started .20?

Code: Select all

14:17:37  languagePath of A2plus Workbench is: C:\Users\dan-m\AppData\Roaming\FreeCAD\Mod\A2plus\.\translations
14:17:37  Cannot open file 'C:/FreeCAD 20/FreeCAD_weekly-builds-27809-Win-Conda_vc14.x-x86_64/bin/icons/ConstraintDiagnostics.svg', because: The system cannot find the path specified.
14:17:37  Cannot open file 'C:/FreeCAD 20/FreeCAD_weekly-builds-27809-Win-Conda_vc14.x-x86_64/bin/icons/ConstraintDiagnostics.svg', because: The system cannot find the path specified.
The path is not correct.
Dan
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.27809 (Git)
Build type: Release
Python 3.8.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods:
* A2plus 0.4.55a
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Feature] Constraint Diagnostics for troubleshooting A2+ constraints.

Post by Kunda1 »

dan-miel wrote: Sat Apr 02, 2022 9:22 pm The path is not correct.
Right. Is there something up with how CD_checkconstraints.py or CD_ConstraintDiagnostics.py are looking for:
ConstraintDiagnostics.svg ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply