FCCamera 0.14 fails importing PySide2.QtXml

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!
Post Reply
drmacro
Veteran
Posts: 9003
Joined: Sun Mar 02, 2014 4:35 pm

FCCamera 0.14 fails importing PySide2.QtXml

Post by drmacro »

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

Re: FCCamera 0.14 fails importing PySide2.QtXml

Post by Syres »

Try replacing line 477 with:

Code: Select all

from PySide2 import QtXml
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

Re: FCCamera 0.14 fails importing PySide2.QtXml

Post by drmacro »

Syres wrote: Thu Mar 31, 2022 2:20 pm Try replacing line 477 with:

Code: Select all

from PySide2 import QtXml
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... :roll:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
chennes
Veteran
Posts: 3914
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FCCamera 0.14 fails importing PySide2.QtXml

Post by chennes »

There's no real way to maintain such a list: macro authors can import whatever they like in their code.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
drmacro
Veteran
Posts: 9003
Joined: Sun Mar 02, 2014 4:35 pm

Re: FCCamera 0.14 fails importing PySide2.QtXml

Post by drmacro »

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... 8-)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
chennes
Veteran
Posts: 3914
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FCCamera 0.14 fails importing PySide2.QtXml

Post by chennes »

For the core, the list of dependencies is here:
https://wiki.freecadweb.org/Compile_on_ ... pendencies

(We don't worry about it on Windows because it's just coordinated with @apeltauer when he creates the libpacks)
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
drmacro
Veteran
Posts: 9003
Joined: Sun Mar 02, 2014 4:35 pm

Re: FCCamera 0.14 fails importing PySide2.QtXml

Post by drmacro »

chennes wrote: Thu Mar 31, 2022 4:38 pm For the core, the list of dependencies is here:
https://wiki.freecadweb.org/Compile_on_ ... pendencies
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. :mrgreen:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply