Here's a test case that should be easily reproducible using the data in this bug. Use download-crash from the bugpatterns bzr branch to create a crash file for this report e.g. ./download-crash 1582992. Then run the following in python:
$ python3 Python 3.5.2+ (default, Sep 22 2016, 12:18:14) [GCC 6.2.0 20160927] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import apport >>> report = apport.Report() >>> f = open('report-1582992.crash', 'rb') >>> report.load(f) >>> from apport import hookutils >>> hookutils.attach_mac_events(report, ['/usr/lib/libvirt/virt-aa-helper', >>> '/usr/bin/libvirtd', 'libvirt-.*']) This did not crash for me on yakkety. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1582992 Title: broken apport hook: TypeError: Can't convert 'bytes' object to str implicitly To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1582992/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs