apport-hook crashes with NameError: global name 'tags' is not defined

Bug #704848 reported by Jean-Baptiste Lallement on 2011-01-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Bryce Harrington

Bug Description

Binary package hint: compiz

When running the following command from a terminal:
$ ubuntu-bug compiz

This traceback is displayed:
$ ubuntu-bug compiz
hook /usr/share/apport/package-hooks// crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport/", line 636, in add_hooks_info
    symb['add_info'](self, ui)
  File "/usr/share/apport/package-hooks//", line 410, in add_info
    if check_is_reportable(report, ui) == False:
  File "/usr/share/apport/package-hooks//", line 228, in check_is_reportable
NameError: global name 'tags' is not defined

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: compiz 1:
ProcVersionSignature: Ubuntu 2.6.37-12.26-generic 2.6.37
Uname: Linux 2.6.37-12-generic i686
Architecture: i386
Date: Wed Jan 19 12:48:35 2011
EcryptfsInUse: Yes
PackageArchitecture: all
 PATH=(custom, user)
SourcePackage: compiz

Related branches

Jean-Baptiste Lallement (jibel) wrote :
Changed in compiz (Ubuntu):
assignee: nobody → Bryce Harrington (bryce)
importance: Undecided → High
status: New → Triaged
Brian Murray (brian-murray) wrote :

Elsewhere in the hook this is used:

report['Tags'] += ' ' + report['DistroCodename']

And while trying to recreate this bug I noticed that 'natty' was in the tag list twice. While Launchpad will likely strip the redundant one it'd be neat if it wasn't sent at all. The reason for the duplication is that apport is adding the DistroCodename already.

Bryce Harrington (bryce) wrote :


tags: added: compiz-0.9
tags: added: mago
Bryce Harrington (bryce) on 2011-03-09
affects: compiz (Ubuntu) → xorg (Ubuntu)
Bryce Harrington (bryce) wrote :

This was fixed in 1:7.5+6ubuntu8, guess the bug report didn't close since it was filed against compiz rather than xorg at the time.

xorg (1:7.5+6ubuntu8) natty; urgency=low

  * debian/apport/ Fix tagging for bugs filed on machines
    with manually-installed -nvidia drivers.
    (LP: #704848)

 -- Bryce Harrington <email address hidden> Wed, 19 Jan 2011 12:40:38 -0800

Changed in xorg (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers