Bug 1630545 - [abrt] fros: _format_text(): argparse.py:487:_format_text:TypeError: a bytes-like object is required, not 'str'
Summary: [abrt] fros: _format_text(): argparse.py:487:_format_text:TypeError: a bytes-...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: fros
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Filak
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:82d55391b3ec34ab7a69b640a6b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-18 23:27 UTC by strasharo2000
Modified: 2019-05-28 22:28 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-28 22:28:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.75 KB, text/plain)
2018-09-18 23:27 UTC, strasharo2000
no flags Details
File: cgroup (341 bytes, text/plain)
2018-09-18 23:27 UTC, strasharo2000
no flags Details
File: cpuinfo (990 bytes, text/plain)
2018-09-18 23:27 UTC, strasharo2000
no flags Details
File: environ (3.43 KB, text/plain)
2018-09-18 23:27 UTC, strasharo2000
no flags Details
File: mountinfo (3.73 KB, text/plain)
2018-09-18 23:27 UTC, strasharo2000
no flags Details
File: namespaces (129 bytes, text/plain)
2018-09-18 23:27 UTC, strasharo2000
no flags Details
File: open_fds (583 bytes, text/plain)
2018-09-18 23:27 UTC, strasharo2000
no flags Details

Description strasharo2000 2018-09-18 23:27:28 UTC
Description of problem:
Trying to find the help command through the cli by appending -h and --help.

Version-Release number of selected component:
fros-1.1-15.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/fros --help
crash_function: _format_text
exception_type: TypeError
executable:     /usr/bin/fros
interpreter:    python3-3.6.6-1.fc28.x86_64
kernel:         4.17.19-200.fc28.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
argparse.py:487:_format_text:TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):
  File "/usr/bin/fros", line 87, in <module>
    args = commands.parse_args()
  File "/usr/lib64/python3.6/argparse.py", line 1734, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib64/python3.6/argparse.py", line 1766, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib64/python3.6/argparse.py", line 1972, in _parse_known_args
    start_index = consume_optional(start_index)
  File "/usr/lib64/python3.6/argparse.py", line 1912, in consume_optional
    take_action(action, args, option_string)
  File "/usr/lib64/python3.6/argparse.py", line 1840, in take_action
    action(self, namespace, argument_values, option_string)
  File "/usr/lib64/python3.6/argparse.py", line 1024, in __call__
    parser.print_help()
  File "/usr/lib64/python3.6/argparse.py", line 2366, in print_help
    self._print_message(self.format_help(), file)
  File "/usr/lib64/python3.6/argparse.py", line 2350, in format_help
    return formatter.format_help()
  File "/usr/lib64/python3.6/argparse.py", line 282, in format_help
    help = self._root_section.format_help()
  File "/usr/lib64/python3.6/argparse.py", line 213, in format_help
    item_help = join([func(*args) for func, args in self.items])
  File "/usr/lib64/python3.6/argparse.py", line 213, in <listcomp>
    item_help = join([func(*args) for func, args in self.items])
  File "/usr/lib64/python3.6/argparse.py", line 487, in _format_text
    if '%(prog)' in text:
TypeError: a bytes-like object is required, not 'str'

Local variables in innermost frame:
text: b'Screencasting cmdline'
self: <argparse.HelpFormatter object at 0x7fa0e0993f28>

Comment 1 strasharo2000 2018-09-18 23:27:33 UTC
Created attachment 1484516 [details]
File: backtrace

Comment 2 strasharo2000 2018-09-18 23:27:34 UTC
Created attachment 1484517 [details]
File: cgroup

Comment 3 strasharo2000 2018-09-18 23:27:35 UTC
Created attachment 1484518 [details]
File: cpuinfo

Comment 4 strasharo2000 2018-09-18 23:27:37 UTC
Created attachment 1484519 [details]
File: environ

Comment 5 strasharo2000 2018-09-18 23:27:38 UTC
Created attachment 1484520 [details]
File: mountinfo

Comment 6 strasharo2000 2018-09-18 23:27:40 UTC
Created attachment 1484521 [details]
File: namespaces

Comment 7 strasharo2000 2018-09-18 23:27:41 UTC
Created attachment 1484522 [details]
File: open_fds

Comment 8 Ben Cotton 2019-05-02 20:54:41 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Ben Cotton 2019-05-28 22:28:33 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.