Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40629

mongosymb.py incompatible with python3

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL

      When running buildscripts/mongosymb.py using python3, I receive the following error:

      Traceback (most recent call last):
        File "buildscripts/mongosymb.py", line 204, in <module>
          main(sys.argv)
        File "buildscripts/mongosymb.py", line 199, in main
          dsym_hint=options.dsym_hint)
        File "buildscripts/mongosymb.py", line 105, in symbolize_frames
          symbolizer_process.stdin.write("CODE %(path)s 0x%(addr)X\n" % frame)
      TypeError: a bytes-like object is required, not 'str'

      I am able to successfully run mongosymb with python2.

            Assignee:
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Reporter:
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: