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

Poetry windows install cannot overwrite its own dependencies when building

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      On windows poetry cannot self update. If you run poetry install and on of the packages installed is a different version of poetry windows will throw an error that looks like the following (mainly the permission error part of this)

      [2023/09/05 18:28:40.090]   PermissionError: [WinError 5] Access is denied: 'Z:\\data\\mci\\ae68c42c2af0b203b416c9ffe7d4824a\\venv\\Lib\\site-packages\\~ulwich\\_diff_tree.cp39-win_amd64.pyd'
      [2023/09/05 18:28:40.090]   at C:\data\mci\ae68c42c2af0b203b416c9ffe7d4824a\venv\lib\site-packages\poetry\utils\env.py:1525 in _run 

      The correct way to handle this is to install poetry into a separate venv then bootstrap that venv to install the normal venv.

            Assignee:
            alex.neben@mongodb.com Alex Neben
            Reporter:
            alex.neben@mongodb.com Alex Neben
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: