Skip to content

crash_log_parser.py does not work with python3 #12290

@teetak01

Description

@teetak01

Description of defect

Traceback (most recent call last):
  File "mbed-os/tools/debug_tools/crash_log_parser/crash_log_parser.py", line 199, in <module>
    elfhelper = ElfHelper(args.elffile, args.mapfile)
  File "mbed-os/tools/debug_tools/crash_log_parser/crash_log_parser.py", line 38, in __init__
    self.matches = _PTN.findall(op)
TypeError: cannot use a string pattern on a bytes-like object

Target(s) affected by this defect ?

Toolchain(s) (name and version) displaying this defect ?

What version of Mbed-os are you using (tag or sha) ?

Mbed OS 5.15.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Python 3.6.8

Works with Python2.

How is this defect reproduced ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions