Pin cryptography to 3.3.2
See original GitHub issueIs your feature request related to a problem? Please describe.
Yesterday an update to cryptography was released which adds rust as a dependency for building it. This breaks compatibility with many systems and pip versions. I’m encountering an error when running az devops login
:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-cdqmxaug/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
Cleaning up...
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cdqmxaug/cryptography/
Exception information:
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib64/az/lib/python3.6/site-packages/pip/commands/install.py", line 346, in run
requirement_set.prepare_files(finder)
File "/usr/lib64/az/lib/python3.6/site-packages/pip/req/req_set.py", line 381, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib64/az/lib/python3.6/site-packages/pip/req/req_set.py", line 637, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/lib64/az/lib/python3.6/site-packages/pip/req/req_set.py", line 130, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/lib64/az/lib/python3.6/site-packages/pip/req/req_install.py", line 439, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib64/az/lib/python3.6/site-packages/pip/utils/__init__.py", line 717, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cdqmxaug/cryptography/
Describe the solution you’d like
Cryptography should be pinned to 3.3.2 to give people time to fix their pip version. For example, I’m using the installation script from the documentation shown here - Install Azure CLI Linux which no longer works because python3-pip 9.0.3-8.el7
is not compatible.
Describe alternatives you’ve considered Upgrade pip
Additional context https://github.com/pyca/cryptography/issues/5753 https://github.com/pyca/cryptography/issues/5771
Issue Analytics
- State:
- Created 3 years ago
- Reactions:19
- Comments:20 (4 by maintainers)
Top Results From Across the Web
Installation — Cryptography 3.3.2 documentation
Currently we test cryptography on Python 2.7, 3.6+, PyPy 7.3.1, and PyPy3 7.3.1 on these operating ... To install cryptography , you will...
Read more >cryptography 36.0.2 - PyPI
cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Read more >AWS Encryption SDK for Python
Download and install the AWS Encryption SDK for Python. ... of the AWS Encryption SDK for Python pin the cryptography dependency between 2.5.0...
Read more >Encryption Requirements of Publication 1075 - IRS
Data encryption is essential for safeguarding FTI. ... 1075, Section 3.3.2 Email Communications states that if FTI is included in email, ...
Read more >Trusted Platform Module ST33TPHF20SPI & ST33TPHF20I2C
The security module is used primarily for cryptographic key generation, ... The pin layouts for the ST33TPHF20SPI are shown in Figure 11 and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here is how I worked around the issue.
You might be able to get away doing number 2. I have done that anyway.
On CentOS 7, Upgrading pip directly into the az installation seems to fix this for the time being… I can then run
az devops login
etc without issuepython3 -m pip install --upgrade pip --target /usr/lib64/az/lib/python3.6/site-packages/