The backtrace shows it failing when writing the report file on line 84. This is because write in problem_report.py checks that it was opened in binary mode, with a comment that it is required. Changing line 82 in apportcheckresume so it opens report_file in binary mode with 'wb' instead of just 'w' seems to fix it.
Running it manually triggers bug #1046092 because the script assumes /var/lib/pm-utils/status exists. Not sure if that was the case all along, or if either the change to python3 or changes to attach_file_if_exists changed the behavior. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1040353 Title: apportcheckresume crashed with AssertionError in _assert_bin_mode(): file stream must be in binary mode To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1040353/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
