[SERVER-80781] Poetry windows install cannot overwrite its own dependencies when building Created: 05/Sep/23  Updated: 29/Oct/23  Resolved: 06/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Alex Neben Assignee: Alex Neben
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-80782 Upgrade dulwich pin Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 06/Sep/23 ]

Author:

{'name': 'Alex Neben', 'email': 'alex.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-80781 Installed poetry to a separate dir
Branch: master
https://github.com/mongodb/mongo/commit/df6fa5c1c283b9053f1af42e2f2d06cfd179a767

Generated at Thu Feb 08 06:44:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.