[Bug 1007826] Re: crash with AssertionError: file stream must be in binary mode when trying to save report to file
Steve Langasek
1007826 at bugs.launchpad.net
Thu Oct 14 01:48:32 UTC 2021
The Precise Pangolin has reached end of life, so this bug will not be
fixed for that release
** Changed in: apport (Ubuntu Precise)
Status: Confirmed => Won't Fix
--
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/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
Status in apport source package in Precise:
Won't Fix
Bug description:
laney at 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 at 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
More information about the foundations-bugs
mailing list