[MONGOCRYPT-256] Python tests fail on RHEL 6.2 because cryptography 2.9 dropped support for Python 3.4 Created: 14/May/20  Updated: 27/Oct/23  Resolved: 17/Jun/20

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Shane Harvey Assignee: Shane Harvey
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

The python binding tests fail on RHEL 6.2:
https://evergreen.mongodb.com/task/libmongocrypt_rhel_62_64_bit_test_python_c8e77c5cfe0bd858bcdddcbc00ffdd39c9acf3a5_20_04_14_18_38_33

The problem is that the latest cryptography release (2.9) dropped support for Python 3.4.

This shouldn’t cause our tests to fail though. Pip should simply install the latest release that does support Python 3.4. I suspect the problem is either that:

  • the Python 3.4 toolchain has an outdated version of pip (or setuptools?) which tries to install cryptography 2.9 even though it’s not supported
  • We’re relying on `/opt/python/3.4/bin/python3 setup.py test` to install the dependencies which does not use pip.

The fix is to install the test dependencies in a virtualenv or maybe to upgrade pip/setuptools.

Note that cryptography 2.9 also drops support for OpenSSL 1.0.1 and LibreSSL 2.6.x:

BACKWARDS INCOMPATIBLE: Support for OpenSSL 1.0.1 has been removed. Users on older version of OpenSSL will need to upgrade.
BACKWARDS INCOMPATIBLE: Support for LibreSSL 2.6.x has been removed.

This should also be fine for users because cryptogrpahy bundles its own version of OpenSSL with its release wheels: "Updated Windows, macOS, and manylinux wheels to be compiled with OpenSSL 1.1.1f."



 Comments   
Comment by Shane Harvey [ 17/Jun/20 ]

This seems to have been fixed by upgrading the python toolchain in BUILD-11204. I re-ran the latest task and it passed: https://evergreen.mongodb.com/task/libmongocrypt_rhel_62_64_bit_test_python_19bb1a4fed5d89a1265054b0b92c224e1a2c5d5e_20_06_04_15_11_53

Generated at Thu Feb 08 09:08:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.