Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-15862

Update grpcio and grpcio-tools to support Python 3.10

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: current_quarter
    • Component/s: plt
    • Labels:
      None

      Description

      Hit this error when running resmoke with Python 3.10

      $ python3 buildscripts/resmoke.py run test.js
      Traceback (most recent call last):
        File "/home/mark/src/mongo/buildscripts/resmoke.py", line 12, in <module>
          import buildscripts.resmokelib.cli as cli
        File "/home/mark/src/mongo/buildscripts/resmokelib/__init__.py", line 6, in <module>
          from buildscripts.resmokelib import parser
        File "/home/mark/src/mongo/buildscripts/resmokelib/parser.py", line 8, in <module>
          from buildscripts.resmokelib.hang_analyzer import HangAnalyzerPlugin
        File "/home/mark/src/mongo/buildscripts/resmokelib/hang_analyzer/__init__.py", line 6, in <module>
          from buildscripts.resmokelib.hang_analyzer.hang_analyzer import HangAnalyzerPlugin
        File "/home/mark/src/mongo/buildscripts/resmokelib/hang_analyzer/hang_analyzer.py", line 28, in <module>
          from buildscripts.resmokelib.hang_analyzer.extractor import download_debug_symbols
        File "/home/mark/src/mongo/buildscripts/resmokelib/hang_analyzer/extractor.py", line 8, in <module>
          from buildscripts.resmokelib.run import compare_start_time
        File "/home/mark/src/mongo/buildscripts/resmokelib/run/__init__.py", line 18, in <module>
          import grpc_tools.protoc
        File "/home/mark/.local/lib/python3.10/site-packages/grpc_tools/protoc.py", line 101, in <module>
          class ProtoLoader(importlib.abc.Loader):
      

      The fix is add "import importlib.abc" to the file which was done upstream.

        Attachments

          Activity

            People

            Assignee:
            julian.edwards Julian Edwards
            Reporter:
            mark.benvenuto Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: