Comment 2 for bug 829635

Revision history for this message
Martin Pitt (pitti) wrote : Re: apport-gtk crashed with TypeError in function(): markup_escape_text() takes exactly 2 argument(s) (1 given)

This particular problem was fixed with a newer apport release. However, now we have the opposite problem, as the API of markup_escape_text() was actually fixed in pygobject:

 Traceback (most recent call last):
   File "/usr/share/apport/apport-gtk", line 368, in <module>
     app.run_argv()
   File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 599, in run_argv
     return self.run_crashes()
   File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 177, in run_crashes
     self.run_crash(f)
   File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 246, in run_crash
     response = self.ui_present_crash(desktop_entry)
   File "/usr/share/apport/apport-gtk", line 75, in ui_present_crash
     n = GLib.markup_escape_text(n, -1).decode('UTF-8')
 TypeError: glib.markup_escape_text() takes at most 1 argument (2 given)