However, this environment results in the following error, when one tries to import requests_pkcs12.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/jessicamoore/Documents/PythonEnvs/test-requestspkcs12/lib/python3.10/site-packages/requests_pkcs12.py", line 30, in <module>
import urllib3.contrib.pyopenssl
File "/Users/jessicamoore/Documents/PythonEnvs/test-requestspkcs12/lib/python3.10/site-packages/urllib3/contrib/pyopenssl.py", line 53, in <module>
from cryptography.hazmat.backends.openssl.x509 import _Certificate
ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509'
The easiest solution seems to be adding a minimum version of urllib3 (>=1.26.13).
The following packages and versions are a valid environment set-up, given the current dependencies in
requests_pkcs12
and its dependencies.However, this environment results in the following error, when one tries to
import requests_pkcs12
.The easiest solution seems to be adding a minimum version of
urllib3
(>=1.26.13).