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
packages which are already dependencies of apport's packages.
* debian/tests/control: Drop undefined "no-build-needed" feature.
* 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 protected]> Thu, 21 Jun 2012 09:13:56 +0200
** Changed in: apport (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1007826
Title:
crash with AssertionError: file stream must be in binary mode when
trying to save report to file
Status in “apport” package in Ubuntu:
Fix Released
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/apport-cli", line 366, in <module>
if not app.run_argv():
File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 558, in run_argv
return self.run_report_bug()
File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 399, in
run_report_bug
response = self.ui_present_report_details(allowed_to_report)
File "/usr/bin/apport-cli", line 216, in ui_present_report_details
self.report.write(os.fdopen(fd, 'w'))
File "/usr/lib/python2.7/dist-packages/problem_report.py", line 250, in
write
self._assert_bin_mode(file)
File "/usr/lib/python2.7/dist-packages/problem_report.py", line 628, in
_assert_bin_mode
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://archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1007826/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp