[Bug 1903567] Re: /usr/share/apport/apport:AttributeError:/usr/share/apport/apport at 447:parse_arguments:print_usage:_print_message

Brian Murray 1903567 at bugs.launchpad.net
Mon Nov 9 17:22:15 UTC 2020


Traceback (most recent call last):
  File "/usr/share/apport/apport", line 447, in <module>
    options = parse_arguments()
  File "/usr/share/apport/apport", line 393, in parse_arguments
    parser.print_usage()
  File "/usr/lib/python3.5/argparse.py", line 2362, in print_usage
    self._print_message(self.format_usage(), file)
  File "/usr/lib/python3.5/argparse.py", line 2373, in _print_message
    file.write(message)
AttributeError: 'NoneType' object has no attribute 'write'

This can happen if the path to the executable has a space in it e.g.:

bdmurray at clean-xenial-amd64:~$ /usr/bin/python3 /usr/share/apport/apport 14055 11 0 1 14055 /usr/lib/plexmediaserver/Plex Media Server
usage: apport [-h] [-p PID] [-s SIGNAL_NUMBER] [-c CORE_ULIMIT] [-d DUMP_MODE]
              [-P [GLOBAL_PID]] [-E [EXECUTABLE_PATH]]

Somehow apport needs to be modified to handle arguments where the
executable path has a space in the name.

-- 
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/1903567

Title:
  /usr/share/apport/apport:AttributeError:/usr/share/apport/apport at 447:parse_arguments:print_usage:_print_message

Status in apport package in Ubuntu:
  New

Bug description:
  The Ubuntu Error Tracker has been receiving reports about a problem regarding apport.  This problem was most recently seen with package version 2.20.1-0ubuntu2.26, the problem page at https://errors.ubuntu.com/problem/c999939b4b2ced24aa71d85b0995a56bd3813a39 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1903567/+subscriptions



More information about the foundations-bugs mailing list