ubiquity hook 'str' object has no attribute 'decode'

Bug #1501773 reported by Sebastien Bacher
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Low
Sebastien Bacher

Bug Description

Ubiquity reports from wily have an hookerror

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/package-hooks/source_ubiquity.py", line 60, in add_info
syslog = report['UbiquitySyslog'].decode('UTF-8')
AttributeError: 'str' object has no attribute 'decode'

That can be reproduce with "sudo ubuntu-bug ubiquity"

Tags: patch wily
Changed in apport (Ubuntu):
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Sebastien Bacher (seb128) wrote :

suggested fix for the issue

Changed in apport (Ubuntu):
assignee: nobody → Sebastien Bacher (seb128)
tags: added: wily
tags: added: patch
Revision history for this message
Sebastien Bacher (seb128) wrote :
Martin Pitt (pitti)
Changed in apport (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.19.1-0ubuntu2

---------------
apport (2.19.1-0ubuntu2) wily; urgency=medium

  * apt/dpkg: Don't mark packages downloaded from Launchpad for installation
    by apt. Thanks Brian Murray. (Cherry-picked from trunk.)

apport (2.19.1-0ubuntu1) wily; urgency=medium

  [ Martin Pitt ]
  * New upstream release:
    - Consistently intercept "report file already exists" errors in all writers
      of report files (package_hook, kernel_crashdump, and similar) to avoid
      unhandled exceptions on those. (LP: #1500450)
    - apt/dpkg: Fall back to direct Launchpad ddeb download if we can't find it
      in the apt cache. Thanks Brian Murray! (LP: #1500557)
    - doc/data-format.tex: Clarify that key names are being treated as case
      sensitive (unlike RFC822).

  [ Brian Murray ]
  * data/iwlwifi_error_dump: fix add_package call. (LP: #1496268)

  [ Sebastien Bacher ]
  * data/package-hooks/sources_ubiquity.py: Don't try decode() a str
    (LP: #1501773).

 -- Martin Pitt <email address hidden> Thu, 08 Oct 2015 08:04:12 +0200

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Wellington Torrejais da Silva (wellington1993) wrote :
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.