[Bug 1574671] Re: bytes has no attribute encode

Brian Murray brian at ubuntu.com
Tue May 3 14:50:17 UTC 2016


*** This bug is a duplicate of bug 1548421 ***
    https://bugs.launchpad.net/bugs/1548421

** This bug has been marked a duplicate of bug 1548421
   python stacktrace during 'apport-bug'

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1574671

Title:
  bytes has no attribute encode

Status in apport package in Ubuntu:
  New

Bug description:
  During reporting of a separate bug (1574566), the following was seen:

  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/ubuntu.py", line 66, in add_info
      check_attachment_for_errors(report, attachment)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 170, in check_attachment_for_errors
      trim_dpkg_log(report)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 468, in trim_dpkg_log
      report['DpkgTerminalLog'] = '\n'.join([str(line.encode('utf-8')) for line in lines])
    File "/usr/share/apport/general-hooks/ubuntu.py", line 468, in <listcomp>
      report['DpkgTerminalLog'] = '\n'.join([str(line.encode('utf-8')) for line in lines])
  AttributeError: 'bytes' object has no attribute 'encode'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1574671/+subscriptions



More information about the foundations-bugs mailing list