Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2366

Test OCSP+FLE with Python 3.9 on Windows

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.12, 3.11.3, 4.0
    • Affects Version/s: None
    • Component/s: None

      OCSP and FLE both depend on cryptography. Attempting to install cryptography with Python 3.9 on Windows fails with this error:

       [2020/09/10 22:01:33.470] Processing c:\data\mci\6e7c1c744a4daa0c42080ee3a3bd6af6\src\libmongocrypt_git\bindings\python
       [2020/09/10 22:01:36.694] Collecting cffi<2,>=1.12.0
       [2020/09/10 22:01:36.694]   Using cached cffi-1.14.2.tar.gz (470 kB)
       [2020/09/10 22:01:36.694] Collecting cryptography<3,>=2.0
       [2020/09/10 22:01:37.068]   Downloading cryptography-2.9.2.tar.gz (517 kB)
       [2020/09/10 22:01:37.068]   Installing build dependencies: started
       [2020/09/10 22:01:47.834]   Installing build dependencies: finished with status 'done'
       [2020/09/10 22:01:47.834]   Getting requirements to build wheel: started
       [2020/09/10 22:01:48.260]   Getting requirements to build wheel: finished with status 'done'
       [2020/09/10 22:01:48.260]     Preparing wheel metadata: started
       [2020/09/10 22:01:49.229]     Preparing wheel metadata: finished with status 'done'
       [2020/09/10 22:01:49.229] Collecting pycparser
       [2020/09/10 22:01:49.242]   Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
       [2020/09/10 22:01:49.242] Requirement already satisfied, skipping upgrade: six>=1.4.1 in c:\python\python39\lib\site-packages (from cryptography<3,>=2.0->pymongocrypt==1.0.2.dev0) (1.15.0)
       [2020/09/10 22:01:49.246] Building wheels for collected packages: pymongocrypt, cffi, cryptography
       [2020/09/10 22:01:49.246]   Building wheel for pymongocrypt (setup.py): started
       [2020/09/10 22:01:49.682]   Building wheel for pymongocrypt (setup.py): finished with status 'done'
       [2020/09/10 22:01:49.682]   Created wheel for pymongocrypt: filename=pymongocrypt-1.0.2.dev0-py2.py3-none-win_amd64.whl size=30800 sha256=69c550ae3cb004b5208a1aa5497f3e12e475210b8b66831f795b055f8eaeb8f1
       [2020/09/10 22:01:49.682]   Stored in directory: Z:\data\mci\6e7c1c744a4daa0c42080ee3a3bd6af6\drivers-tools\.evergreen\orchestration\db\pip-ephem-wheel-cache-j__o0t_9\wheels\a9\4d\98\010ab82186e31a2c8cc12d874c1cd8d6c77a190dbc436a42b0
       [2020/09/10 22:01:55.121]   Building wheel for cffi (setup.py): started
       [2020/09/10 22:01:55.121]   Building wheel for cffi (setup.py): finished with status 'done'
       [2020/09/10 22:01:55.126]   Created wheel for cffi: filename=cffi-1.14.2-cp39-cp39-win_amd64.whl size=186947 sha256=91bfb07b7185db38c4a342543190add5d9aa4ee4a6b1102804e7f4176196f19e
       [2020/09/10 22:01:55.126]   Stored in directory: c:\users\mci-exec\appdata\local\pip\cache\wheels\0d\f3\e1\97704469c4669ae2b938d73113970662ea1ca617503966eaac
       [2020/09/10 22:01:57.968]   Building wheel for cryptography (PEP 517): started
       [2020/09/10 22:01:57.968]   Building wheel for cryptography (PEP 517): finished with status 'error'
       [2020/09/10 22:01:57.969] Cloning into 'libmongocrypt_git'...
       [2020/09/10 22:01:57.969]   ERROR: Command errored out with exit status 1:
       [2020/09/10 22:01:57.969]    command: 'C:\python\Python39\python.exe' 'C:\python\Python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\data\mci\6e7c1c744a4daa0c42080ee3a3bd6af6\drivers-tools\.evergreen\orchestration\db\tmpbpkzivxo'
       [2020/09/10 22:01:57.969]        cwd: Z:\data\mci\6e7c1c744a4daa0c42080ee3a3bd6af6\drivers-tools\.evergreen\orchestration\db\pip-install-l5w2gdtf\cryptography
       [2020/09/10 22:01:57.969]   Complete output (137 lines):
       [2020/09/10 22:01:57.969]   running bdist_wheel
       [2020/09/10 22:01:57.969]   running build
       [2020/09/10 22:01:57.969]   running build_py
       [2020/09/10 22:01:57.969]   creating build
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography
       [2020/09/10 22:01:57.969]   copying src\cryptography\exceptions.py -> build\lib.win-amd64-3.9\cryptography
       [2020/09/10 22:01:57.969]   copying src\cryptography\fernet.py -> build\lib.win-amd64-3.9\cryptography
       [2020/09/10 22:01:57.969]   copying src\cryptography\utils.py -> build\lib.win-amd64-3.9\cryptography
       [2020/09/10 22:01:57.969]   copying src\cryptography\__about__.py -> build\lib.win-amd64-3.9\cryptography
       [2020/09/10 22:01:57.969]   copying src\cryptography\__init__.py -> build\lib.win-amd64-3.9\cryptography
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\_der.py -> build\lib.win-amd64-3.9\cryptography\hazmat
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\_oid.py -> build\lib.win-amd64-3.9\cryptography\hazmat
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\x509
       [2020/09/10 22:01:57.969]   copying src\cryptography\x509\base.py -> build\lib.win-amd64-3.9\cryptography\x509
       [2020/09/10 22:01:57.969]   copying src\cryptography\x509\certificate_transparency.py -> build\lib.win-amd64-3.9\cryptography\x509
       [2020/09/10 22:01:57.969]   copying src\cryptography\x509\extensions.py -> build\lib.win-amd64-3.9\cryptography\x509
       [2020/09/10 22:01:57.969]   copying src\cryptography\x509\general_name.py -> build\lib.win-amd64-3.9\cryptography\x509
       [2020/09/10 22:01:57.969]   copying src\cryptography\x509\name.py -> build\lib.win-amd64-3.9\cryptography\x509
       [2020/09/10 22:01:57.969]   copying src\cryptography\x509\ocsp.py -> build\lib.win-amd64-3.9\cryptography\x509
       [2020/09/10 22:01:57.969]   copying src\cryptography\x509\oid.py -> build\lib.win-amd64-3.9\cryptography\x509
       [2020/09/10 22:01:57.969]   copying src\cryptography\x509\__init__.py -> build\lib.win-amd64-3.9\cryptography\x509
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\backends
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\interfaces.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\bindings
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\bindings\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\bindings
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\primitives
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\cmac.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\constant_time.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\hashes.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\hmac.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\keywrap.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\padding.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\poly1305.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\aead.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\backend.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\ciphers.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\cmac.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\decode_asn1.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\dh.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\dsa.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\ec.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\ed25519.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\ed448.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\encode_asn1.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\hashes.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\hmac.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\ocsp.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\poly1305.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\rsa.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\utils.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\x25519.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\x448.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\x509.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\backends\openssl\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\backends\openssl
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\bindings\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\bindings\openssl\binding.py -> build\lib.win-amd64-3.9\cryptography\hazmat\bindings\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\bindings\openssl\_conditional.py -> build\lib.win-amd64-3.9\cryptography\hazmat\bindings\openssl
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\bindings\openssl\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\bindings\openssl
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\dh.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\dsa.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\ec.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\ed25519.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\ed448.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\padding.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\rsa.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\utils.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\x25519.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\x448.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\asymmetric\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\asymmetric
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\primitives\ciphers
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\ciphers\aead.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\ciphers
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\ciphers\algorithms.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\ciphers
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\ciphers\base.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\ciphers
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\ciphers\modes.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\ciphers
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\ciphers\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\ciphers
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\primitives\kdf
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\kdf\concatkdf.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\kdf
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\kdf\hkdf.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\kdf
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\kdf\kbkdf.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\kdf
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\kdf\pbkdf2.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\kdf
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\kdf\scrypt.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\kdf
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\kdf\x963kdf.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\kdf
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\kdf\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\kdf
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\primitives\serialization
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\serialization\base.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\serialization
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\serialization\pkcs12.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\serialization
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\serialization\ssh.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\serialization
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\serialization\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\serialization
       [2020/09/10 22:01:57.969]   creating build\lib.win-amd64-3.9\cryptography\hazmat\primitives\twofactor
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\twofactor\hotp.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\twofactor
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\twofactor\totp.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\twofactor
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\twofactor\utils.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\twofactor
       [2020/09/10 22:01:57.969]   copying src\cryptography\hazmat\primitives\twofactor\__init__.py -> build\lib.win-amd64-3.9\cryptography\hazmat\primitives\twofactor
       [2020/09/10 22:01:57.969]   running egg_info
       [2020/09/10 22:01:57.969]   writing src\cryptography.egg-info\PKG-INFO
       [2020/09/10 22:01:57.969]   writing dependency_links to src\cryptography.egg-info\dependency_links.txt
       [2020/09/10 22:01:57.969]   writing requirements to src\cryptography.egg-info\requires.txt
       [2020/09/10 22:01:57.969]   writing top-level names to src\cryptography.egg-info\top_level.txt
       [2020/09/10 22:01:57.969]   reading manifest file 'src\cryptography.egg-info\SOURCES.txt'
       [2020/09/10 22:01:57.969]   reading manifest template 'MANIFEST.in'
       [2020/09/10 22:01:57.969]   no previously-included directories found matching 'docs\_build'
       [2020/09/10 22:01:57.969]   warning: no previously-included files found matching 'vectors'
       [2020/09/10 22:01:57.969]   warning: no previously-included files matching '*' found under directory 'vectors'
       [2020/09/10 22:01:57.969]   warning: no previously-included files found matching 'azure-pipelines.yml'
       [2020/09/10 22:01:57.969]   warning: no previously-included files found matching '.azure-pipelines'
       [2020/09/10 22:01:57.969]   warning: no previously-included files found matching '.travis.yml'
       [2020/09/10 22:01:57.969]   warning: no previously-included files found matching '.travis'
       [2020/09/10 22:01:57.969]   warning: no previously-included files matching '*' found under directory '.azure-pipelines'
       [2020/09/10 22:01:57.969]   warning: no previously-included files matching '*' found under directory '.travis'
       [2020/09/10 22:01:57.970]   warning: no previously-included files found matching 'release.py'
       [2020/09/10 22:01:57.970]   warning: no previously-included files found matching '.coveragerc'
       [2020/09/10 22:01:57.970]   warning: no previously-included files found matching 'codecov.yml'
       [2020/09/10 22:01:57.970]   warning: no previously-included files found matching 'dev-requirements.txt'
       [2020/09/10 22:01:57.970]   warning: no previously-included files found matching 'rtd-requirements.txt'
       [2020/09/10 22:01:57.970]   warning: no previously-included files found matching 'tox.ini'
       [2020/09/10 22:01:57.970]   writing manifest file 'src\cryptography.egg-info\SOURCES.txt'
       [2020/09/10 22:01:57.970]   running build_ext
       [2020/09/10 22:01:57.970]   generating cffi module 'build\\temp.win-amd64-3.9\\Release\\_padding.c'
       [2020/09/10 22:01:57.970]   creating build\temp.win-amd64-3.9
       [2020/09/10 22:01:57.970]   creating build\temp.win-amd64-3.9\Release
       [2020/09/10 22:01:57.970]   generating cffi module 'build\\temp.win-amd64-3.9\\Release\\_constant_time.c'
       [2020/09/10 22:01:57.970]   generating cffi module 'build\\temp.win-amd64-3.9\\Release\\_openssl.c'
       [2020/09/10 22:01:57.970]   building '_openssl' extension
       [2020/09/10 22:01:57.970]   creating build\temp.win-amd64-3.9\Release\build
       [2020/09/10 22:01:57.970]   creating build\temp.win-amd64-3.9\Release\build\temp.win-amd64-3.9
       [2020/09/10 22:01:57.970]   creating build\temp.win-amd64-3.9\Release\build\temp.win-amd64-3.9\Release
       [2020/09/10 22:01:57.970]   C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\python\Python39\include -IC:\python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcbuild\temp.win-amd64-3.9\Release\_openssl.c /Fobuild\temp.win-amd64-3.9\Release\build\temp.win-amd64-3.9\Release\_openssl.obj
       [2020/09/10 22:01:57.970]   _openssl.c
       [2020/09/10 22:01:57.970]   build\temp.win-amd64-3.9\Release\_openssl.c(575): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory
       [2020/09/10 22:01:57.970]   error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
       [2020/09/10 22:01:57.970]   ----------------------------------------
       [2020/09/10 22:01:57.971]   ERROR: Failed building wheel for cryptography
       [2020/09/10 22:01:57.971] ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
       [2020/09/10 22:01:57.988] WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
       [2020/09/10 22:01:57.988] You should consider upgrading via the 'C:\python\Python39\python.exe -m pip install --upgrade pip' command.
       [2020/09/10 22:01:58.226] Successfully built pymongocrypt cffi
       [2020/09/10 22:01:58.226] Failed to build cryptography
       [2020/09/10 22:01:58.226] Command failed: command encountered problem: error waiting on process '7aebf011-e90d-4475-a403-cc2dbcea81b6': exit status 1
       [2020/09/10 22:01:58.226] Task completed - FAILURE.
      

      We can fix this by building cryptography from source as outlined here: https://cryptography.io/en/latest/installation/#building-cryptography-on-windows

      Related to: https://github.com/pyca/cryptography/issues/5463

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: