Red Hat Bugzilla – Bug 623852
gtk-vnc indirectly uses PyCObject API (deprecated in Python 2.7)
Last modified: 2010-11-08 05:11:37 EST
Description of problem:
Python 2.7 deprecated the PyCObject API in favor of a new "capsule" API.
The deprecations are set to "ignore" by default, so in theory the API still works.
However the deprecation has caused at least one app to fail (virt-manager, see bug 620216, due to it modifying the warning settings), so I've been doublechecking the scope of usage of the PyCObject, and am filing bugs against components that are possibly affected.
You can trigger a hard failure of the API via:
>>> import warnings
>>> import gtkvnc
python: /root/rpmbuild/BUILD/Python-2.7/Objects/dictobject.c:759: PyDict_SetItem: Assertion `value' failed.
The usage (annoyingly) comes via macro code in header files in pygobject2 and pygtk2 (see bug 623844 and bug 621887).
I'm not yet sure what the best approach is to fixing this.
Version-Release number of selected component (if applicable):
I'm not particularly inclined to change / fix the GTK-VNC python module. With the arrival of GTK-3 the existing python module is being deprecated and all apps should switch to using GObject introspection via PyGObject. In the mean time, simply don't set 'filterwarnings(error)'