FS#73122 - [python-pivy] Freecad Draft and Arch workbench failure

Attached to Project: Community Packages
Opened by Shane (Locutus) - Thursday, 23 December 2021, 09:08 GMT
Last edited by Alexander F. Rødseth (xyproto) - Wednesday, 26 January 2022, 01:18 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description: Freecad workbench on the Draft and Arch workbenchs due to a pivy and Python 3.10 incompatibility.


Additional info:
* Freecad Version 0.19.3-11
* The same problem is mentioned in the forum https://bbs.archlinux.org/viewtopic.php?id=272209
and in the Freecad forum https://forum.freecadweb.org/viewtopic.php?style=5&f=15&t=64573

* Output from errored condition.
11:58:27 <built-in function SoFieldContainer_getField> returned a result with an exception set
11:58:27 Traceback (most recent call last):
File "<string>", line 132, in Activated
File "/usr/lib/freecad/Mod/Draft/draftguitools/gui_snapper.py", line 1635, in show
self.setTrackers()
File "/usr/lib/freecad/Mod/Draft/draftguitools/gui_snapper.py", line 1679, in setTrackers
self.grid = trackers.gridTracker()
File "/usr/lib/freecad/Mod/Draft/draftguitools/gui_trackers.py", line 974, in __init__
pick.style.setValue(coin.SoPickStyle.UNPICKABLE)
File "/usr/lib/python3.10/site-packages/pivy/coin.py", line 3989, in __getattr__
field = self.getField(name)
File "/usr/lib/python3.10/site-packages/pivy/coin.py", line 3873, in getField
return _coin.SoFieldContainer_getField(self, name)

Steps to reproduce: To reproduce simply start Freecad and create a new project. Then select the Draft or Arch workbench.
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Wednesday, 26 January 2022, 01:18 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 04 January 2022, 17:28 GMT
Thanks for reporting!

Upstream issue: https://github.com/coin3d/pivy/issues/88
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 04 January 2022, 17:30 GMT Comment by Alexander F. Rødseth (xyproto) - Tuesday, 25 January 2022, 23:26 GMT
I applied this patch to the python-pivy package: https://github.com/coin3d/pivy/pull/91/commits/377d97ce41519e879a6c0111f1193957653a06ae

Selecting the Draft workbench works here now. The latest python-pivy package in [community] is 0.6.6-4. Please re-open this issue if there should be further issues with this.

Loading...