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

Installing the poetry dependencies fails at zope-interface installation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Build
    • Fully Compatible
    • ALL
    • v8.0

      Start a new virtual workstation and try to install the poetry dependencies or run the Evergreen host configure command:

      ./evergreen host configure --project mongodb-mongo-master
      ...
      Installing zope-interface (5.0.0)
      
        ChefBuildError
      
        Backend subprocess exited when trying to invoke get_requires_for_build_wheel
        
        Traceback (most recent call last):
          File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
            main()
          File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 112, in get_requires_for_build_wheel
            backend = _build_backend()
          File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 74, in _build_backend
            ep = os.environ['PEP517_BUILD_BACKEND']
          File "/opt/mongodbtoolchain/revisions/69f4f0673ffcb290ce2307560a4883ecf2ad138c/stow/python3-v4.CBC/lib/python3.10/os.py", line 679, in __getitem__
            raise KeyError(key) from None
        KeyError: 'PEP517_BUILD_BACKEND'
        
      
        at python3-venv/lib/python3.10/site-packages/poetry/installation/chef.py:147 in _prepare
            143│ 
            144│                 error = ChefBuildError("\n\n".join(message_parts))
            145│ 
            146│             if error is not None:
          → 147│                 raise error from None
            148│ 
            149│             return path
            150│ 
            151│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
      
      Note: This error originates from the build backend, and is likely not a problem with poetry but with zope-interface (5.0.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "zope-interface (==5.0.0)"'
      

            Assignee:
            zack.winter@mongodb.com Zack Winter
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: