Skip to content

PYTHON-2431 Fix MONGODB-AWS auth tests on macOS #521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 21, 2020

Conversation

ShaneHarvey
Copy link
Member

@ShaneHarvey ShaneHarvey commented Nov 20, 2020

Tested here: https://evergreen.mongodb.com/version/5fb843b761837d105a7a3fa2

This change fixes this error:

[2020/11/12 23:45:52.296] Running command 'shell.exec' in "run aws auth test with assume role credentials" (step 4.1 of 8)
[2020/11/12 23:45:52.512] /usr/local/lib/python2.7/site-packages/virtualenv.py:1047: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
[2020/11/12 23:45:52.512]   import imp
[2020/11/12 23:45:52.559] Using base prefix '/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9'
[2020/11/12 23:45:52.559] New python executable in /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/mongovenv/bin/python3.9
[2020/11/12 23:45:52.559] Also creating executable in /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/mongovenv/bin/python
[2020/11/12 23:45:52.559] ERROR: The executable /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/mongovenv/bin/python3.9 is not functioning
[2020/11/12 23:45:52.559] ERROR: It thinks sys.prefix is '/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9' (should be '/data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/mongovenv')
[2020/11/12 23:45:52.559] ERROR: virtualenv is not compatible with this system or executable
[2020/11/12 23:45:52.569] Running virtualenv with interpreter /usr/local/bin/python3
[2020/11/12 23:45:52.569] Command failed: command encountered problem: error waiting on process '39b22b81-ce96-418a-bcd8-2ab60de7cec9': exit status 100

My initial attempt to workaround this error was to always use venv if it existed however that proved to be a bad idea as venv doesn't work everywhere (see https://jira.mongodb.org/browse/PYTHON-2437). Instead, we only attempt to use venv on macOS.

@ShaneHarvey
Copy link
Member Author

ShaneHarvey commented Nov 20, 2020

Investigating this Windows Python 3.5 failure:
https://evergreen.mongodb.com/task/mongo_python_driver_aws_auth_test_windows__platform~windows_64_vsMulti_small_python_version_windows~3.5_aws_auth_test_4.4_patch_4928b9088d65e994a3f9acf75ed87fe77728e585_5fb843b761837d105a7a3fa2_20_11_20_22_32_16

 [2020/11/20 22:49:21.927] + C:/python/Python35/python.exe -m virtualenv --never-download --system-site-packages venvaws
 [2020/11/20 22:49:23.996] Python 3.5.4
 [2020/11/20 22:49:23.996] 16.7.10
 [2020/11/20 22:49:23.996] Using base prefix 'C:\\python\\Python35'
 [2020/11/20 22:49:23.996] New python executable in C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\Scripts\python.exe
 [2020/11/20 22:49:23.996] Installing setuptools, pip, wheel...
 [2020/11/20 22:49:28.837] + '[' Windows_NT = Windows_NT ']'
 [2020/11/20 22:49:28.837] + . venvaws/Scripts/activate
 [2020/11/20 22:49:28.837] ++ '[' venvaws/Scripts/activate = .evergreen/run-mongodb-aws-test.sh ']'
 [2020/11/20 22:49:28.837] ++ deactivate nondestructive
 [2020/11/20 22:49:28.837] ++ unset -f pydoc
 [2020/11/20 22:49:28.837] ++ '[' -z '' ']'
 [2020/11/20 22:49:28.837] ++ '[' -z '' ']'
 [2020/11/20 22:49:28.837] ++ '[' -n /bin/bash ']'
 [2020/11/20 22:49:28.837] ++ hash -r
 [2020/11/20 22:49:28.837] ++ '[' -z '' ']'
 [2020/11/20 22:49:28.837] ++ unset VIRTUAL_ENV
 [2020/11/20 22:49:28.837] ++ '[' '!' nondestructive = nondestructive ']'
 [2020/11/20 22:49:28.845] +++ '[' cygwin == cygwin ']'
 [2020/11/20 22:49:28.845] +++ cygpath -u 'C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws'
 [2020/11/20 22:49:28.866] ++ VIRTUAL_ENV=/cygdrive/c/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/src/venvaws
 [2020/11/20 22:49:28.866] ++ export VIRTUAL_ENV
 [2020/11/20 22:49:28.866] ++ _OLD_VIRTUAL_PATH='C:/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/drivers-tools/mongodb/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/Users/Administrator/AppData/Roaming/ActiveState/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Windows/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Program Files/Amazon/cfn-bootstrap:/cygdrive/c/Program Files/Docker:/cygdrive/c/ProgramData/chocolatey/bin:/cygdrive/c/Program Files/dotnet:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/openssl/bin:/cygdrive/c/sasl/bin:/cygdrive/c/snmp/bin:/cygdrive/c/go/bin:/cygdrive/c/Program Files/Git/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Perl64/bin:/cygdrive/c/curl/dlls:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Users/mci-exec/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/mci-exec/.dotnet/tools:/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin:/cygdrive/c/Users/Administrator/AppData/Roaming/npm:/cygdrive/c/go/bin:/cygdrive/c/Windows/Sysnative:/cygdrive/c/mingw-w64/x86_64-4.9.1-posix-seh-rt_v3-rev1/mingw64/bin'
 [2020/11/20 22:49:28.866] ++ PATH='/cygdrive/c/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/src/venvaws/Scripts:C:/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/drivers-tools/mongodb/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/Users/Administrator/AppData/Roaming/ActiveState/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Windows/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Program Files/Amazon/cfn-bootstrap:/cygdrive/c/Program Files/Docker:/cygdrive/c/ProgramData/chocolatey/bin:/cygdrive/c/Program Files/dotnet:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/openssl/bin:/cygdrive/c/sasl/bin:/cygdrive/c/snmp/bin:/cygdrive/c/go/bin:/cygdrive/c/Program Files/Git/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Perl64/bin:/cygdrive/c/curl/dlls:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Users/mci-exec/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/mci-exec/.dotnet/tools:/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin:/cygdrive/c/Users/Administrator/AppData/Roaming/npm:/cygdrive/c/go/bin:/cygdrive/c/Windows/Sysnative:/cygdrive/c/mingw-w64/x86_64-4.9.1-posix-seh-rt_v3-rev1/mingw64/bin'
 [2020/11/20 22:49:28.867] ++ export PATH
 [2020/11/20 22:49:28.867] ++ '[' -z '' ']'
 [2020/11/20 22:49:28.867] ++ '[' -z '' ']'
 [2020/11/20 22:49:28.867] ++ _OLD_VIRTUAL_PS1=
 [2020/11/20 22:49:28.867] ++ '[' x '!=' x ']'
 [2020/11/20 22:49:28.892] +++ basename /cygdrive/c/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/src/venvaws
 [2020/11/20 22:49:28.892] ++ PS1='(venvaws) '
 [2020/11/20 22:49:28.893] ++ export PS1
 [2020/11/20 22:49:28.893] ++ alias pydoc
 [2020/11/20 22:49:28.893] ++ true
 [2020/11/20 22:49:28.893] ++ '[' -n /bin/bash ']'
 [2020/11/20 22:49:28.893] ++ hash -r
 [2020/11/20 22:49:28.893] + '[' Windows_NT = Windows_NT ']'
 [2020/11/20 22:49:28.894] + . venvaws/Scripts/activate
 [2020/11/20 22:49:28.894] ++ '[' venvaws/Scripts/activate = .evergreen/run-mongodb-aws-test.sh ']'
 [2020/11/20 22:49:28.894] ++ deactivate nondestructive
 [2020/11/20 22:49:28.894] ++ unset -f pydoc
 [2020/11/20 22:49:28.894] ++ '[' -z _ ']'
 [2020/11/20 22:49:28.894] ++ PATH='C:/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/drivers-tools/mongodb/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/Users/Administrator/AppData/Roaming/ActiveState/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Windows/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Program Files/Amazon/cfn-bootstrap:/cygdrive/c/Program Files/Docker:/cygdrive/c/ProgramData/chocolatey/bin:/cygdrive/c/Program Files/dotnet:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/openssl/bin:/cygdrive/c/sasl/bin:/cygdrive/c/snmp/bin:/cygdrive/c/go/bin:/cygdrive/c/Program Files/Git/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Perl64/bin:/cygdrive/c/curl/dlls:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Users/mci-exec/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/mci-exec/.dotnet/tools:/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin:/cygdrive/c/Users/Administrator/AppData/Roaming/npm:/cygdrive/c/go/bin:/cygdrive/c/Windows/Sysnative:/cygdrive/c/mingw-w64/x86_64-4.9.1-posix-seh-rt_v3-rev1/mingw64/bin'
 [2020/11/20 22:49:28.894] ++ export PATH
 [2020/11/20 22:49:28.894] ++ unset _OLD_VIRTUAL_PATH
 [2020/11/20 22:49:28.894] ++ '[' -z '' ']'
 [2020/11/20 22:49:28.894] ++ '[' -n /bin/bash ']'
 [2020/11/20 22:49:28.894] ++ hash -r
 [2020/11/20 22:49:28.894] ++ '[' -z _ ']'
 [2020/11/20 22:49:28.894] ++ PS1=
 [2020/11/20 22:49:28.894] ++ export PS1
 [2020/11/20 22:49:28.894] ++ unset _OLD_VIRTUAL_PS1
 [2020/11/20 22:49:28.894] ++ unset VIRTUAL_ENV
 [2020/11/20 22:49:28.894] ++ '[' '!' nondestructive = nondestructive ']'
 [2020/11/20 22:49:28.902] +++ '[' cygwin == cygwin ']'
 [2020/11/20 22:49:28.902] +++ cygpath -u 'C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws'
 [2020/11/20 22:49:28.922] ++ VIRTUAL_ENV=/cygdrive/c/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/src/venvaws
 [2020/11/20 22:49:28.923] ++ export VIRTUAL_ENV
 [2020/11/20 22:49:28.923] ++ _OLD_VIRTUAL_PATH='C:/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/drivers-tools/mongodb/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/Users/Administrator/AppData/Roaming/ActiveState/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Windows/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Program Files/Amazon/cfn-bootstrap:/cygdrive/c/Program Files/Docker:/cygdrive/c/ProgramData/chocolatey/bin:/cygdrive/c/Program Files/dotnet:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/openssl/bin:/cygdrive/c/sasl/bin:/cygdrive/c/snmp/bin:/cygdrive/c/go/bin:/cygdrive/c/Program Files/Git/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Perl64/bin:/cygdrive/c/curl/dlls:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Users/mci-exec/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/mci-exec/.dotnet/tools:/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin:/cygdrive/c/Users/Administrator/AppData/Roaming/npm:/cygdrive/c/go/bin:/cygdrive/c/Windows/Sysnative:/cygdrive/c/mingw-w64/x86_64-4.9.1-posix-seh-rt_v3-rev1/mingw64/bin'
 [2020/11/20 22:49:28.923] ++ PATH='/cygdrive/c/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/src/venvaws/Scripts:C:/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/drivers-tools/mongodb/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/Users/Administrator/AppData/Roaming/ActiveState/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Windows/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Program Files/Amazon/cfn-bootstrap:/cygdrive/c/Program Files/Docker:/cygdrive/c/ProgramData/chocolatey/bin:/cygdrive/c/Program Files/dotnet:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/openssl/bin:/cygdrive/c/sasl/bin:/cygdrive/c/snmp/bin:/cygdrive/c/go/bin:/cygdrive/c/Program Files/Git/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Perl64/bin:/cygdrive/c/curl/dlls:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Users/mci-exec/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/mci-exec/.dotnet/tools:/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin:/cygdrive/c/Users/Administrator/AppData/Roaming/npm:/cygdrive/c/go/bin:/cygdrive/c/Windows/Sysnative:/cygdrive/c/mingw-w64/x86_64-4.9.1-posix-seh-rt_v3-rev1/mingw64/bin'
 [2020/11/20 22:49:28.923] ++ export PATH
 [2020/11/20 22:49:28.923] ++ '[' -z '' ']'
 [2020/11/20 22:49:28.923] ++ '[' -z '' ']'
 [2020/11/20 22:49:28.923] ++ _OLD_VIRTUAL_PS1=
 [2020/11/20 22:49:28.923] ++ '[' x '!=' x ']'
 [2020/11/20 22:49:28.947] +++ basename /cygdrive/c/data/mci/0dce4e0b5f325a18485ea00fc1f6e75a/src/venvaws
 [2020/11/20 22:49:28.947] ++ PS1='(venvaws) '
 [2020/11/20 22:49:28.948] ++ export PS1
 [2020/11/20 22:49:28.948] ++ alias pydoc
 [2020/11/20 22:49:28.948] ++ true
 [2020/11/20 22:49:28.948] ++ '[' -n /bin/bash ']'
 [2020/11/20 22:49:28.948] ++ hash -r
 [2020/11/20 22:49:28.948] + pip install '.[aws]'
 [2020/11/20 22:49:34.438] done.
 [2020/11/20 22:49:34.438] Processing c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src
 [2020/11/20 22:49:34.438] Collecting pymongo-auth-aws<2.0.0
 [2020/11/20 22:49:34.438]   Downloading https://files.pythonhosted.org/packages/b2/c7/bc939477a76e071032670a5585a3d86bec6f33932593827b88052e8cf736/pymongo_auth_aws-1.0.2-py2.py3-none-any.whl
 [2020/11/20 22:49:34.534] Collecting requests<3.0.0
 [2020/11/20 22:49:34.534]   Using cached https://files.pythonhosted.org/packages/39/fc/f91eac5a39a65f75a7adb58eac7fa78871ea9872283fb9c44e6545998134/requests-2.25.0-py2.py3-none-any.whl
 [2020/11/20 22:49:35.286] Collecting botocore
 [2020/11/20 22:49:35.286]   Downloading https://files.pythonhosted.org/packages/77/49/c8c99477416fdebb59078bda624acc5b3c7008f891c60d56d6ff1570d83e/botocore-1.19.23-py2.py3-none-any.whl (6.8MB)
 [2020/11/20 22:49:37.305] Collecting idna<3,>=2.5
 [2020/11/20 22:49:37.305]   Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl
 [2020/11/20 22:49:37.403] Collecting urllib3<1.27,>=1.21.1
 [2020/11/20 22:49:37.403]   Using cached https://files.pythonhosted.org/packages/f5/71/45d36a8df68f3ebb098d6861b2c017f3d094538c0fb98fa61d4dc43e69b9/urllib3-1.26.2-py2.py3-none-any.whl
 [2020/11/20 22:49:37.515] Collecting certifi>=2017.4.17
 [2020/11/20 22:49:37.515]   Using cached https://files.pythonhosted.org/packages/c1/6f/3d85f0850962279a7e4c622695d7b3171e95ac65308a57d3b29738b27149/certifi-2020.11.8-py2.py3-none-any.whl
 [2020/11/20 22:49:37.568] Collecting chardet<4,>=3.0.2
 [2020/11/20 22:49:37.568]   Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
 [2020/11/20 22:49:37.654] Collecting python-dateutil<3.0.0,>=2.1
 [2020/11/20 22:49:37.654]   Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
 [2020/11/20 22:49:37.727] Collecting jmespath<1.0.0,>=0.7.1
 [2020/11/20 22:49:37.727]   Downloading https://files.pythonhosted.org/packages/07/cb/5f001272b6faeb23c1c9e0acc04d48eaaf5c862c17709d20e3469c6e0139/jmespath-0.10.0-py2.py3-none-any.whl
 [2020/11/20 22:49:37.755] Requirement already satisfied: six>=1.5 in c:\python\python35\lib\site-packages (from python-dateutil<3.0.0,>=2.1->botocore->pymongo-auth-aws<2.0.0->pymongo==4.0.dev0) (1.15.0)
 [2020/11/20 22:49:37.758] Building wheels for collected packages: pymongo
 [2020/11/20 22:49:38.329]   Building wheel for pymongo (setup.py): started
 [2020/11/20 22:49:38.330]   ERROR: Command errored out with exit status 1:
 [2020/11/20 22:49:38.330]    command: 'c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\data\\mci\\0dce4e0b5f325a18485ea00fc1f6e75a\\drivers-tools\\.evergreen\\orchestration\\db\\pip-req-build-q8hmn3bl\\setup.py'"'"'; __file__='"'"'C:\\data\\mci\\0dce4e0b5f325a18485ea00fc1f6e75a\\drivers-tools\\.evergreen\\orchestration\\db\\pip-req-build-q8hmn3bl\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-wheel-3vil5sfb' --python-tag cp35
 [2020/11/20 22:49:38.330]        cwd: C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-req-build-q8hmn3bl\
 [2020/11/20 22:49:38.330]   Complete output (137 lines):
 [2020/11/20 22:49:38.330]   running bdist_wheel
 [2020/11/20 22:49:38.330]   running build
 [2020/11/20 22:49:38.330]   running build_py
 [2020/11/20 22:49:38.330]   creating build
 [2020/11/20 22:49:38.330]   creating build\lib.win-amd64-3.5
 [2020/11/20 22:49:38.330]   creating build\lib.win-amd64-3.5\bson
 [2020/11/20 22:49:38.330]   copying bson\binary.py -> build\lib.win-amd64-3.5\bson
...
 [2020/11/20 22:49:38.330]   running build_ext
 [2020/11/20 22:49:38.330]   building 'bson._cbson' extension
 [2020/11/20 22:49:38.330]   Traceback (most recent call last):
 [2020/11/20 22:49:38.330]     File "<string>", line 1, in <module>
 [2020/11/20 22:49:38.330]     File "C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-req-build-q8hmn3bl\setup.py", line 431, in <module>
 [2020/11/20 22:49:38.330]       **extra_opts
 [2020/11/20 22:49:38.330]     File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\site-packages\setuptools\__init__.py", line 145, in setup
 [2020/11/20 22:49:38.330]       return distutils.core.setup(**attrs)
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\core.py", line 148, in setup
 [2020/11/20 22:49:38.330]       dist.run_commands()
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\dist.py", line 955, in run_commands
 [2020/11/20 22:49:38.330]       self.run_command(cmd)
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\dist.py", line 974, in run_command
 [2020/11/20 22:49:38.330]       cmd_obj.run()
 [2020/11/20 22:49:38.330]     File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\site-packages\wheel\bdist_wheel.py", line 192, in run
 [2020/11/20 22:49:38.330]       self.run_command('build')
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\cmd.py", line 313, in run_command
 [2020/11/20 22:49:38.330]       self.distribution.run_command(command)
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\dist.py", line 974, in run_command
 [2020/11/20 22:49:38.330]       cmd_obj.run()
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\command\build.py", line 135, in run
 [2020/11/20 22:49:38.330]       self.run_command(cmd_name)
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\cmd.py", line 313, in run_command
 [2020/11/20 22:49:38.330]       self.distribution.run_command(command)
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\dist.py", line 974, in run_command
 [2020/11/20 22:49:38.330]       cmd_obj.run()
 [2020/11/20 22:49:38.330]     File "C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-req-build-q8hmn3bl\setup.py", line 286, in run
 [2020/11/20 22:49:38.330]       build_ext.run(self)
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\command\build_ext.py", line 339, in run
 [2020/11/20 22:49:38.330]       self.build_extensions()
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\command\build_ext.py", line 448, in build_extensions
 [2020/11/20 22:49:38.330]       self._build_extensions_serial()
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
 [2020/11/20 22:49:38.330]       self.build_extension(ext)
 [2020/11/20 22:49:38.330]     File "C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-req-build-q8hmn3bl\setup.py", line 298, in build_extension
 [2020/11/20 22:49:38.330]       build_ext.build_extension(self, ext)
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\command\build_ext.py", line 533, in build_extension
 [2020/11/20 22:49:38.330]       depends=ext.depends)
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\_msvccompiler.py", line 304, in compile
 [2020/11/20 22:49:38.330]       self.initialize()
 [2020/11/20 22:49:38.330]     File "C:\python\Python35\Lib\distutils\_msvccompiler.py", line 197, in initialize
 [2020/11/20 22:49:38.330]       vc_env = _get_vc_env(plat_spec)
 [2020/11/20 22:49:38.330]     File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env
 [2020/11/20 22:49:38.330]       return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
 [2020/11/20 22:49:38.330]     File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\site-packages\setuptools\msvc.py", line 1620, in return_env
 [2020/11/20 22:49:38.330]       if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist):
 [2020/11/20 22:49:38.330]     File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\genericpath.py", line 30, in isfile
 [2020/11/20 22:49:38.330]       st = os.stat(path)
 [2020/11/20 22:49:38.330]   TypeError: stat: can't specify None for path argument
 [2020/11/20 22:49:38.330]   ----------------------------------------
 [2020/11/20 22:49:38.330]   ERROR: Failed building wheel for pymongo
 [2020/11/20 22:49:38.330]   Building wheel for pymongo (setup.py): finished with status 'error'
 [2020/11/20 22:49:38.743]   Running setup.py clean for pymongo
 [2020/11/20 22:49:38.743] Failed to build pymongo
 [2020/11/20 22:49:38.743] Installing collected packages: idna, urllib3, certifi, chardet, requests, python-dateutil, jmespath, botocore, pymongo-auth-aws, pymongo
 [2020/11/20 22:49:42.235]     Running setup.py install for pymongo: started
 [2020/11/20 22:49:42.236]     ERROR: Command errored out with exit status 1:
 [2020/11/20 22:49:42.236]      command: 'c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\data\\mci\\0dce4e0b5f325a18485ea00fc1f6e75a\\drivers-tools\\.evergreen\\orchestration\\db\\pip-req-build-q8hmn3bl\\setup.py'"'"'; __file__='"'"'C:\\data\\mci\\0dce4e0b5f325a18485ea00fc1f6e75a\\drivers-tools\\.evergreen\\orchestration\\db\\pip-req-build-q8hmn3bl\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-record-yhjv6etp\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\include\site\python3.5\pymongo'
 [2020/11/20 22:49:42.236]          cwd: C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-req-build-q8hmn3bl\
 [2020/11/20 22:49:42.236]     Complete output (139 lines):
 [2020/11/20 22:49:42.236]     running install
 [2020/11/20 22:49:42.236]     running build
 [2020/11/20 22:49:42.236]     running build_py
 [2020/11/20 22:49:42.236]     creating build
 [2020/11/20 22:49:42.236]     creating build\lib.win-amd64-3.5
 [2020/11/20 22:49:42.236]     creating build\lib.win-amd64-3.5\bson
 [2020/11/20 22:49:42.236]     copying bson\binary.py -> build\lib.win-amd64-3.5\bson
...
 [2020/11/20 22:49:42.236]     running build_ext
 [2020/11/20 22:49:42.236]     building 'bson._cbson' extension
 [2020/11/20 22:49:42.236]     Traceback (most recent call last):
 [2020/11/20 22:49:42.236]       File "<string>", line 1, in <module>
 [2020/11/20 22:49:42.236]       File "C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-req-build-q8hmn3bl\setup.py", line 431, in <module>
 [2020/11/20 22:49:42.236]         **extra_opts
 [2020/11/20 22:49:42.236]       File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\site-packages\setuptools\__init__.py", line 145, in setup
 [2020/11/20 22:49:42.236]         return distutils.core.setup(**attrs)
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\core.py", line 148, in setup
 [2020/11/20 22:49:42.236]         dist.run_commands()
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\dist.py", line 955, in run_commands
 [2020/11/20 22:49:42.236]         self.run_command(cmd)
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\dist.py", line 974, in run_command
 [2020/11/20 22:49:42.236]         cmd_obj.run()
 [2020/11/20 22:49:42.236]       File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\site-packages\setuptools\command\install.py", line 61, in run
 [2020/11/20 22:49:42.236]         return orig.install.run(self)
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\command\install.py", line 539, in run
 [2020/11/20 22:49:42.236]         self.run_command('build')
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\cmd.py", line 313, in run_command
 [2020/11/20 22:49:42.236]         self.distribution.run_command(command)
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\dist.py", line 974, in run_command
 [2020/11/20 22:49:42.236]         cmd_obj.run()
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\command\build.py", line 135, in run
 [2020/11/20 22:49:42.236]         self.run_command(cmd_name)
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\cmd.py", line 313, in run_command
 [2020/11/20 22:49:42.236]         self.distribution.run_command(command)
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\dist.py", line 974, in run_command
 [2020/11/20 22:49:42.236]         cmd_obj.run()
 [2020/11/20 22:49:42.236]       File "C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-req-build-q8hmn3bl\setup.py", line 286, in run
 [2020/11/20 22:49:42.236]         build_ext.run(self)
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\command\build_ext.py", line 339, in run
 [2020/11/20 22:49:42.236]         self.build_extensions()
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\command\build_ext.py", line 448, in build_extensions
 [2020/11/20 22:49:42.236]         self._build_extensions_serial()
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
 [2020/11/20 22:49:42.236]         self.build_extension(ext)
 [2020/11/20 22:49:42.236]       File "C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-req-build-q8hmn3bl\setup.py", line 298, in build_extension
 [2020/11/20 22:49:42.236]         build_ext.build_extension(self, ext)
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\command\build_ext.py", line 533, in build_extension
 [2020/11/20 22:49:42.236]         depends=ext.depends)
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\_msvccompiler.py", line 304, in compile
 [2020/11/20 22:49:42.236]         self.initialize()
 [2020/11/20 22:49:42.236]       File "C:\python\Python35\Lib\distutils\_msvccompiler.py", line 197, in initialize
 [2020/11/20 22:49:42.236]         vc_env = _get_vc_env(plat_spec)
 [2020/11/20 22:49:42.237]       File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env
 [2020/11/20 22:49:42.237]         return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
 [2020/11/20 22:49:42.237]       File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\site-packages\setuptools\msvc.py", line 1620, in return_env
 [2020/11/20 22:49:42.237]         if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist):
 [2020/11/20 22:49:42.237]       File "c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\lib\genericpath.py", line 30, in isfile
 [2020/11/20 22:49:42.237]         st = os.stat(path)
 [2020/11/20 22:49:42.237]     TypeError: stat: can't specify None for path argument
 [2020/11/20 22:49:43.228]     ----------------------------------------
 [2020/11/20 22:49:43.228] ERROR: Command errored out with exit status 1: 'c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\data\\mci\\0dce4e0b5f325a18485ea00fc1f6e75a\\drivers-tools\\.evergreen\\orchestration\\db\\pip-req-build-q8hmn3bl\\setup.py'"'"'; __file__='"'"'C:\\data\\mci\\0dce4e0b5f325a18485ea00fc1f6e75a\\drivers-tools\\.evergreen\\orchestration\\db\\pip-req-build-q8hmn3bl\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\drivers-tools\.evergreen\orchestration\db\pip-record-yhjv6etp\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\data\mci\0dce4e0b5f325a18485ea00fc1f6e75a\src\venvaws\include\site\python3.5\pymongo' Check the logs for full command output.
 [2020/11/20 22:49:43.357] WARNING: You are using pip version 19.3.1; however, version 20.2.4 is available.
 [2020/11/20 22:49:43.357] You should consider upgrading via the 'python -m pip install --upgrade pip' command.

@ShaneHarvey
Copy link
Member Author

@ShaneHarvey ShaneHarvey merged commit 22a7e80 into mongodb:master Nov 21, 2020
ShaneHarvey added a commit that referenced this pull request Nov 21, 2020
ShaneHarvey added a commit that referenced this pull request Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants