gnome-control-center's apport hook breaks under python 3, as reported in
bug 1018357, now duped here. Here is a one-line patch that fixes this
error. And here's the original report pasted in from that bug:
On Quantal up to date
TEST CASE:
1. From a terminal run:
$ ubuntu-bug gnome-control-center
RESULT:
ERROR: hook /usr/share/apport/package-hooks//source_gnome-control-center.py
crashed:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 799, in
add_hooks_info
symb['add_info'](self, ui)
TypeError: add_info() takes exactly 1 positional argument (2 given)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 804, in
add_hooks_info
symb['add_info'](self)
File "/usr/share/apport/package-hooks//source_gnome-control-center.py", line
6, in add_info
if report.has_key("Stacktrace") and "/usr/lib/control-center-1" in
report["Stacktrace"]:
AttributeError: 'Report' object has no attribute 'has_key'
** Patch added: "python3 patch for gnome-control-center's apport hook"
https://bugs.launchpad.net/ubuntu/quantal/+source/gnome-control-center/+bug/1013171/+attachment/3206237/+files/gnome-control-center.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1013171
Title:
Many package hooks not ported to python3
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1013171/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs