Skip to content

Compatibility Issues for PySide2 #22

@Olobir

Description

@Olobir

Describe your issue

Thank you for maintaining the Quetzal workbench.

I'm using FreeCAD 1.0 on Linux Mint 22 with the Quetzal workbench 1.0.1.
I've installed Quetzal via the Addon Manager but I encounter an error trying to open the FrameBranch Manager. The error traceback indicates a missing module PySide2, which prevents the manager from opening.
The full error message reads:

02:49:04  pyException: Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/home/name/.var/app/org.freecad.FreeCAD/data/FreeCAD/Mod/Quetzal/./fFeatures.py", line 19, in <module>
    from PySide2.QtCore import *
<class 'ModuleNotFoundError'>: No module named 'PySide2'

A possible workaround seems to be to replace every occurrence of "PySide2" by "PySide" in fFeatures.py
After doing this the FrameBranch Manager starts without error and seems to work as expected.

A possible explanation could be:
"The recent AppImages use Qt6.x (Pyside6) whereas previously they used Qt5.x (PySide2) but Addon authors should only use the library name PySide as FreeCAD automatically does the necessary conversion to the one available..."
https://forum.freecad.org/viewtopic.php?p=824501#p824501

Thanks for your effort!

FreeCAD version info + Quetzal WB version

OS: KDE Flatpak runtime (X-Cinnamon/cinnamon/xcb)
Architecture: x86_64
Version: 1.0.2.39319 (Git) Flatpak
Build type: Release
Branch: (HEAD detached at 256fc7e)
Python 3.12.10, Qt 6.9.0, Coin 4.0.3, Vtk 9.3.1, OCC 7.8.1
Stylesheet/Theme/QtStyle: OpenDark.qss/OpenDark/
Installed mods: 
  * OpenTheme 2024.9.1
  * fasteners 0.5.36
  * Quetzal 1.0.1

What is the feature affected?

Frame tools

Steps to reproduce

  1. Install Quetzal
  2. Open FrameBranch Manager

What was the expected result?

No response

Put here any screenshots or videos (optional)

No response

Would you like to work on this issue?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions