FEM CCX_Results: Unexpected type error

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
PMac
Posts: 119
Joined: Sat Sep 02, 2017 10:44 pm

FEM CCX_Results: Unexpected type error

Post by PMac »

Hi, have noticed an error from opening CCX_Results (dble click in tree to open) and selecting a displacement option to get the deflection. Dialog opens with selection at None. On changing to Displacement Magnitude or any of the XYZ displacement options, the following error repeatedly shows.

Code: Select all

19:55:18  Traceback (most recent call last):
19:55:18    File "/home/user5/Downloads/FCAD/FreeCAD0008/fc0008-build-release/Mod/Fem/femtaskpanels/task_result_mechanical.py", line 288, in abs_displacement_selected
19:55:18      self.result_selected("Uabs", self.result_obj.DisplacementLengths, "mm")
19:55:18    File "/home/user5/Downloads/FCAD/FreeCAD0008/fc0008-build-release/Mod/Fem/femtaskpanels/task_result_mechanical.py", line 501, in result_selected
19:55:18      fig_manager.window.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)    # stay ontop
19:55:18  TypeError: setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType]): argument 1 has unexpected type 'PySide2.QtCore.Qt.WindowType'
Had a ferret around today looking for help on this one, similar Qt related 'unexpected type' errors seem to occur often in many places, nothing seen on this particular one.

Any suggestions or fixes? Model file attached.

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon2d)
Word size of FreeCAD: 64-bit
Version: 0.20.28792 (Git)
Build type: Release
Branch: master
Hash: dc53e6dce1eb7f7a67d0f448355d92e4ac086d7f
Python 3.8.10, Qt 5.12.8, Coin 4.0.1, OCC 7.3.0
Locale: English/New Zealand (en_NZ)
Installed mods: 
  * Help 1.0.0-alpha
  * BIM 2021.12.0
Attachments
A00260002b FEM Simple Beam.FCStd
(887.78 KiB) Downloaded 12 times
user1234
Veteran
Posts: 1546
Joined: Mon Jul 11, 2016 5:08 pm

Re: FEM CCX_Results: Unexpected type error

Post by user1234 »

No issues here.

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.28805 (Git)
Build type: Release
Branch: master
Hash: 54edb231bb354892c1eff91f83f5e4e241f10d0e
Python 3.9.2, Qt 5.15.2, Coin 4.0.0, OCC 7.6.2
Locale: English/United States (en_US)

Greetings
user1234
PMac
Posts: 119
Joined: Sat Sep 02, 2017 10:44 pm

Re: FEM CCX_Results: Unexpected type error

Post by PMac »

Thanks user1234. Have updated to 28805 and am still getting the error.
Post Reply