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

No module named 'jsonschema' when compiling mongod

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

      I followed the instructions for compiling the server here: https://github.com/mongodb/mongo/blob/master/docs/building.md

      And ran

      python3 -m pip install -r etc/pip/compile-requirements.txt
      

      Followed by

      python3 buildscripts/scons.py install-mongod
      

      And I get the following error:

      scons: Reading SConscript files ...
      scons: running with /usr/bin/python buildscripts/scons.py install-mongod
      Failed import while loading options for tool: build_metrics
      No module named 'jsonschema'
      

      From a quick glance it seems like SERVER-67044 may have added a dependency that's only defined in toolchain-requirements.txt (via build_metrics.req) and not installed as part of compile-requirements.txt. I am also a bit curious how this hasn't broken any tests yet, perhaps we aren't testing just compile-requirements in isolation?

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

              Created:
              Updated:
              Resolved: