Exception in pivy cast functions with Python 3.10 (upstream patches)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pivy (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
David Ward | ||
Kinetic |
Fix Released
|
High
|
David Ward | ||
Lunar |
Fix Released
|
High
|
Unassigned |
Bug Description
[ Impact ]
* Cast functions in pivy, prior to version 0.6.8, did not properly use the
Python API when extracting values from an argument list. With Python 3.10
and later, the improper calls cause Python exceptions.
* Users encounter the exceptions when running FreeCAD, which utilizes pivy,
preventing the application from functioning as intended.
* The issue is fixed upstream by conforming to the Python API requirements.
Backporting the fixes [1] [2] [3] onto affected stable releases of Ubuntu
will allow users to run FreeCAD without encountering these exceptions.
[ Test Plan ]
* The issue is reproduced by running "python3" and typing these statements,
which produce an error message due to an exception:
from pivy import coin
from pivy.gui import soqt
s = coin.SoTransform()
coin.cast(s, "SoNode")
soqt.cast(s, "SoNode")
[ Where problems could occur ]
* If other Python API compatibility issues exist in pivy, which are not yet
known, those could appear after this change.
* Aside from FreeCAD, no other packages in the Ubuntu repositories have any
type of dependency on pivy, except for the metapackages "science-viewing"
and "science-
to predominantly affect FreeCAD users, who are otherwise impacted by the
issue being addressed here.
[1] https:/
[2] https:/
[3] https:/
description: | updated |
description: | updated |
no longer affects: | pivy (Ubuntu Focal) |
Changed in pivy (Ubuntu Jammy): | |
assignee: | nobody → David Ward (dpward) |
Changed in pivy (Ubuntu Kinetic): | |
assignee: | nobody → David Ward (dpward) |
Changed in pivy (Ubuntu Jammy): | |
importance: | Undecided → High |
Changed in pivy (Ubuntu Kinetic): | |
importance: | Undecided → High |
Changed in pivy (Ubuntu Lunar): | |
importance: | Undecided → High |
Changed in pivy (Ubuntu Kinetic): | |
status: | New → Confirmed |
Changed in pivy (Ubuntu Jammy): | |
status: | New → Confirmed |
Changed in pivy (Ubuntu Lunar): | |
status: | Confirmed → Fix Released |
Confirmed on FreeCAD forum: https:/ /forum. freecadweb. org/viewtopic. php?p=650542# p650542