[SERVER-40579] MongoDB failed to pip.exe install Created: 11/Apr/19  Updated: 27/Oct/23  Resolved: 23/Apr/19

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: LinGao Assignee: Shreyas Kalyan
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

VS 2017 + Windows Server 2016 + MongoDB master branch latest revision


Attachments: Text File log_setup.log    
Issue Links:
Related
Operating System: ALL
Steps To Reproduce:

Reproduce steps:
1. git clone -c core.autocrlf=true https://github.com/mongodb/mongo D:\MongoDB\src
2. Open a VS 2017 x64 command prompt and browse to D:\MongoDB\src
3. git checkout master.
4. git pull
5. git checkout 8dd6d47
6. pip.exe install --user -r .\etc\pip\dev-requirements.txt

Acutal result:

Collecting pylint==2.3.1 (from -r .\etc\pip\components/lint.req (line 3))
  Could not find a version that satisfies the requirement pylint==2.3.1 (from -r .\etc\pip\components/lint.req (line 3)) (from versions: 0.15.2, 0.16.0, 0.18.0, 0.18.1, 0.19.0, 0.20.0, 0.21.0, 0.21.1, 0.21.2, 0.21.3, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.25.1, 0.25.2, 0.26.0, 0.27.0, 0.28.0, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4)
No matching distribution found for pylint==2.3.1 (from -r .\etc\pip\components/lint.req (line 3))
[command took 7 seconds]

 

Sprint: Security 2019-04-22, Security 2019-05-06
Participants:

 Description   

MongoDB failed to pip.exe install --user -r .\etc\pip\dev-requirements.txt.  And this issue can be first reproduced on 8dd6d47 reversion. Could you please help to take a look at this? Thanks in advance!

 



 Comments   
Comment by Shreyas Kalyan [ 23/Apr/19 ]

Closing this as works as designed. Please feel free to reopen or create a new ticket if this issue resurfaces.

Comment by Shreyas Kalyan [ 17/Apr/19 ]

Python 2.7 will no longer be compatible because it will be deprecated within a year. If you look at the commit message for the commit that you have referenced, it says migrate to Python 3.

Let me know when you get a successful build and I'll mark this as closed, and let me know if you have any other questions.

Comment by LinGao [ 17/Apr/19 ]

Hi Shreyas,

Thanks for your reply!

D:\MongoDB\src>pip.exe --version
pip 19.0.3 from c:\tools\python2\lib\site-packages\pip (python 2.7)

 

I will try to build with python3 and Python 2.7 will no longer be compatible or will it be fixed?

 

 

Comment by Shreyas Kalyan [ 16/Apr/19 ]

spacelg I was able to reproduce this issue while running pip from python2, but when I switched to python3, this issue went away. Can you try running pip.exe --version and see what output you get? If you get that it's running from python27\lib\... , you need to upgrade to python3 and possibly reset your %PATH% variables to prefer python3 when building. 

Comment by Shreyas Kalyan [ 16/Apr/19 ]

Yes I'm currently taking a look. Will try and have a fix up soon.

Comment by LinGao [ 16/Apr/19 ]

Hi, is there someone looking on it? This issue still block us to build MongoDB with MSVC.

Comment by Danny Hatcher (Inactive) [ 11/Apr/19 ]

Thanks for your report! I've assigned the ticket to the relevant team for them to take a look.

Generated at Thu Feb 08 04:55:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.