Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
drmacro
Veteran
Posts: 9003 Joined: Sun Mar 02, 2014 4:35 pm
Post
by drmacro » Thu Mar 31, 2022 12:45 pm
Attempting to run FCCamera macro in latest build:
Code: Select all
ModuleNotFoundError'>: No module named 'PySide2.QtXml
Code: Select all
OS: Debian GNU/Linux 11 (bullseye) (XFCE/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.28572 (Git)
Build type: Release
Branch: master
Hash: cb9dda708494f3d20ec153c7881b9795a550c265
Python 3.9.2, Qt 5.15.2, Coin 4.0.0, OCC 7.7.0.dev
Locale: English/United States (en_US)
Installed mods:
* kicadStepUpMod 10.11.6
* Manipulator 1.4.3
* DynamicData 2.45.0
* fasteners 0.3.40
* fcgear 1.0.0
* plugins
* Defeaturing
* Assembly4 0.11.10
* OpticsWorkbench 1.0.8
* workfeature-macro
* sheetmetal 0.2.49
* A2plus 0.4.55a
* CurvedShapes 1.0.1
* Curves 0.3.0
* lattice2 1.0.0
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Syres
Veteran
Posts: 2902 Joined: Thu Aug 09, 2018 11:14 am
Post
by Syres » Thu Mar 31, 2022 2:20 pm
Try replacing line 477 with:
If that fails then you need to install the missing part of PySide2 IMHO.
Edit: if it is missing, try:
Code: Select all
sudo apt install python3-pyside2.qtxml
drmacro
Veteran
Posts: 9003 Joined: Sun Mar 02, 2014 4:35 pm
Post
by drmacro » Thu Mar 31, 2022 3:08 pm
Syres wrote: ↑ Thu Mar 31, 2022 2:20 pm
Try replacing line 477 with:
If that fails then you need to install the missing part of PySide2 IMHO.
Edit: if it is missing, try:
Code: Select all
sudo apt install python3-pyside2.qtxml
Hmm...thanks had to install it. No mention of that lib in the deps list. Is this new? Or just something needed to run macros included in the official Addon manager.
Is there a wiki or forum where the "Oh BTW, you need this now" list is kept. Or does one just stumble on these things...
If not maybe there should be...
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
chennes
Veteran
Posts: 3914 Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:
Post
by chennes » Thu Mar 31, 2022 3:34 pm
There's no real way to maintain such a list: macro authors can import whatever they like in their code.
drmacro
Veteran
Posts: 9003 Joined: Sun Mar 02, 2014 4:35 pm
Post
by drmacro » Thu Mar 31, 2022 4:00 pm
chennes wrote: ↑ Thu Mar 31, 2022 3:34 pm
There's no real way to maintain such a list: macro authors can import whatever they like in their code.
I know. But, it isn't like it never happens with core code...
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
drmacro
Veteran
Posts: 9003 Joined: Sun Mar 02, 2014 4:35 pm
Post
by drmacro » Thu Mar 31, 2022 5:47 pm
That has been in my bookmarks for a LOOOOONG time.
And, I had checked it for this before posting.
(Note: don't me too seriously with this particular...just me being curmudgeonly.
)
(We don't worry about it on Windows because it's just coordinated with @apeltauer when he creates the libpacks)
Fine by me...I've not used Windows for decades now...haven't missed it.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."