Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1009037: python3-pivy: breaking change in python 3.10 reqires upgrade/patch

90 views
Skip to first unread message

Michael Farmbauer

unread,
Apr 6, 2022, 7:30:03 AM4/6/22
to
Package: python3-pivy
Version: 0.6.5-1+b4
Severity: important
X-Debbugs-Cc: michael....@oth-regensburg.de

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***


After upgrade of system to python3 to 3.10.4-1 the path workbench within
freecad fails with the following backtrace:

Traceback (most recent call last):
File "/usr/share/freecad/Mod/Path/PathScripts/PathJobGui.py", line 133, in attach
self.axs = coin.SoType.fromName('SoAxisCrossKit').createInstance()
File "/usr/lib/python3/dist-packages/pivy/coin.py", line 491, in createInstance
return _coin.SoType_createInstance(self)
<class 'SystemError'>: <built-in function SoType_createInstance> returned a result with an exception set
PathJobGui.ERROR: <built-in function SoFieldContainer_getField> returned a result with an exception set
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/share/freecad/Mod/Path/PathScripts/PathJobGui.py", line 1389, in Create
obj.ViewObject.Proxy.editObject(obj.Stock)
File "/usr/share/freecad/Mod/Path/PathScripts/PathJobGui.py", line 194, in editObject
return self.openTaskPanel('Stock')
File "/usr/share/freecad/Mod/Path/PathScripts/PathJobGui.py", line 179, in openTaskPanel
self.showOriginAxis(True)
File "/usr/share/freecad/Mod/Path/PathScripts/PathJobGui.py", line 156, in showOriginAxis
self.switch.whichChild = sw
File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3998, in __setattr__
field = self.getField(name)
File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3873, in getField
return _coin.SoFieldContainer_getField(self, name)
SystemError: <built-in function SoFieldContainer_getField> returned a result with an exception set

The issue has been fixed in https://github.com/coin3d/pivy/pull/91

Upstream tracked the issue at https://github.com/coin3d/pivy/issues/88


-- System Information:
Debian Release: bookworm/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.16.0-6-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-pivy depends on:
ii libc6 2.33-7
ii libcoin80c 4.0.0+ds-2
ii libgcc-s1 12-20220319-1
ii libsoqt520 1.6.0+ds1-3
ii libstdc++6 12-20220319-1
ii python3 3.10.4-1
ii python3-pyside2.qtcore 5.15.2-2+b2
ii python3-pyside2.qtgui 5.15.2-2+b2
ii python3-pyside2.qtopengl 5.15.2-2+b2
ii python3-pyside2.qtwidgets 5.15.2-2+b2
ii shiboken2 5.15.2-2+b2

python3-pivy recommends no packages.

python3-pivy suggests no packages.

-- no debconf information

Adrian Bunk

unread,
May 11, 2022, 4:20:04 PM5/11/22
to
Control: tags 1009037 + patch
Control: tags 1009037 + pending

Dear maintainer,

I've prepared an NMU for pivy (versioned as 0.6.7-0.1) and
uploaded it to DELAYED/14. Please feel free to tell me if I
should cancel it.

cu
Adrian
pivy-0.6.7-0.1-nmu.diff
0 new messages