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

Python 3.11 fails to run build_metrics.py

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

      Python 3.11 comes out in a few days and it drops support for @asyncio.coroutine as mentioned here: https://docs.python.org/3/library/asyncio-task.html#asyncio.coroutine

      When I try to run scons.py with Python 3.11, I get the following warning:

      Failed import while loading options for tool: build_metrics
      cannot import name 'coroutine' from 'asyncio' (/usr/local/python/lib/site-packages/asyncio/__init__.py)
      

      I think this is actually an error in a dependency of build_metrics, memory_profiler:
      https://github.com/pythonprofilers/memory_profiler/blob/eed3447369e5b0cd708de045b757e0bac853a83b/memory_profiler.py#L10. We should probably let users know that Python 3.11 isn't supported for running build_metrics until this is fixed.

            Assignee:
            trevor.guidry@mongodb.com Trevor Guidry
            Reporter:
            dylan.richardson@mongodb.com Dylan Richardson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: