Joe McDonnell created IMPALA-14540:
--------------------------------------

             Summary: bin/dump_breakpad_symbols.py fails on Python 3 with -b 
option
                 Key: IMPALA-14540
                 URL: https://issues.apache.org/jira/browse/IMPALA-14540
             Project: IMPALA
          Issue Type: Bug
          Components: Infrastructure
    Affects Versions: Impala 5.0.0
            Reporter: Joe McDonnell


When bin/dump_breakpad_symbols.py switched to Python 3, the -b option started 
failing with this error:
{noformat}
 File "bin/dump_breakpad_symbols.py", line 271, in <genexpr>
    return (BinarySymbolInfo(f, None) for f in find_elf_files(args.build_dir))
  File "bin/dump_breakpad_symbols.py", line 186, in <genexpr>
    return (f for f in walk_path(path) if is_elf_file(f))
  File "bin/dump_breakpad_symbols.py", line 181, in is_elf_file
    return is_regular_file(path) and 'ELF' in magic.from_file(path)
TypeError: a bytes-like object is required, not 'str'
{noformat}
We should fix this and have tests for this script.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to