hook error in cloud_archive.py

Bug #1173240 reported by Brian Murray
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Low
Brian Murray

Bug Description

Running ubuntu-bug ubiquity on a Raring install produces the following traceback:

 $ ubuntu-bug ubiquity
ERROR: hook /usr/share/apport/general-hooks/cloud_archive.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/general-hooks/cloud_archive.py", line 18, in add_info
    if '~cloud' in packaging.get_version(package) and \
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 123, in get_version
    raise ValueError('package %s does not exist' % package)
ValueError: package ubiquity does not exist
dpkg-query: no packages found matching ubiquity

Probably best to use a try except for getting information about the package. This doesn't prevent bug filing regarding ubiquity, it just raises this error.

Changed in apport (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in apport (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.10-0ubuntu3

---------------
apport (2.10-0ubuntu3) saucy; urgency=low

  * data/general-hooks/cloud_archive.py: deal with the case where a bug is
    being reported about a package that is not installed (LP: #1173240)
 -- Brian Murray <email address hidden> Mon, 06 May 2013 08:29:51 -0700

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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