crash with AssertionError: file stream must be in binary mode when trying to save report to file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
High
|
Martin Pitt | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
laney@raleigh> sudo apport-cli nova-common
[...]
What would you like to do? Your options are:
S: Send report (4.5 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): k
Traceback (most recent call last):
File "/usr/bin/
if not app.run_argv():
File "/usr/lib/
return self.run_
File "/usr/lib/
response = self.ui_
File "/usr/bin/
self.
File "/usr/lib/
self.
File "/usr/lib/
assert (type(file) == BytesIO or 'b' in file.mode), 'file stream must be in binary mode'
AssertionError: file stream must be in binary mode
laney@raleigh> apt-cache policy apport
apport:
Installed: 2.1.1-0ubuntu2
Candidate: 2.1.1-0ubuntu2
Version table:
*** 2.1.1-0ubuntu2 0
500 http://
100 /var/lib/
Changed in apport (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → Martin Pitt (pitti) |
Changed in apport (Ubuntu Precise): | |
status: | In Progress → Confirmed |
This bug was fixed in the package apport - 2.2.4-0ubuntu1
---------------
apport (2.2.4-0ubuntu1) quantal; urgency=low
* debian/ tests/control: Simplify Depends: line by using "@" and dropping tests/control: Drop undefined "no-build-needed" feature.
packages which are already dependencies of apport's packages.
* debian/
* New upstream bug fix release. Changes since our previous trunk snapshot:
- apport-cli: Unbreak "keep" option. (LP: #1007826)
- launchpad.py: Fix str vs. bytes crash for already known bugs.
(LP: #1015788)
-- Martin Pitt <email address hidden> Thu, 21 Jun 2012 09:13:56 +0200