[quantal] unhandled exception: /usr/lib/python3/dist-packages/apport/report.py

Bug #1015641 reported by dino99
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Medibuntu
Fix Released
Undecided
Unassigned

Bug Description

Quantal i386

Everytime i report from a terminal i get this error:

oem@dub:~$ ubuntu-bug apport
ERROR: hook /usr/share/apport/general-hooks/medibuntu.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 747, in add_hooks_info
    exec(compile(fd.read(), hook, 'exec'), symb)
  File "/usr/share/apport/general-hooks/medibuntu.py", line 17
    except ValueError, e:
                     ^
SyntaxError: invalid syntax

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: apport 2.2.3-0ubuntu6
Uname: Linux 3.4.3-030403-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.2.3-0ubuntu6
Architecture: i386
Date: Wed Jun 20 17:38:59 2012
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dino99 (9d9) wrote :
Revision history for this message
dino99 (9d9) wrote :

other outputs:

oem@dub:~$ ubuntu-bug 17191
ERROR: hook /usr/share/apport/general-hooks/medibuntu.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 747, in add_hooks_info
    exec(compile(fd.read(), hook, 'exec'), symb)
  File "/usr/share/apport/general-hooks/medibuntu.py", line 17
    except ValueError, e:
                     ^
SyntaxError: invalid syntax
ERROR: hook /usr/share/apport/package-hooks//source_nautilus.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_nautilus.py", line 6, in add_info
    if report.has_key("Stacktrace") and "/usr/lib/nautilus" in report["Stacktrace"]:
AttributeError: 'Report' object has no attribute 'has_key'

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Hello,

This bug is due to the apport hook in apport-hooks-medibuntu.
Here is a debdiff to fix this bug in Quantal because the apport hook has to be updated for python3 (see bug #1013171 )

affects: apport (Ubuntu) → medibuntu
Revision history for this message
Gauvain Pocentek (gpocentek) wrote :

Please give a try to the apport-hooks-medibuntu from the precise-staging repository. It should work with both python 2 and 3.

In sources.list.d/medibuntu.list, add this line:
deb http://pakcages.medibuntu.org/ precise-staging free

Revision history for this message
dino99 (9d9) wrote :

Applied the new apport-hooks-medibuntu 2 from the precise-staging repo, and it perfectly do the trick, thanks.

Changed in medibuntu:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.