Paramiko Install Doesn't Recognize Requirement Already Met
We are installing a bunch of packages into an Alpine docker image. The cryptography package installs the cffi 1.11.5. When we attempt to install paramiko, it fails on the cffi module reporting No matching distribution found for cffi>=1.4.1. This worked earlier today: 9/26. Here is the log from the failure:
fetch
http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86\_64/APKINDEX.tar.gz
fetch
http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86\_64/APKINDEX.tar.gz
v3.8.1-12-g678e5cc3
[http://dl-cdn.alpinelinux.org/alpine/v3.8/main\]
v3.8.1-6-g8fc23ec3
[http://dl-cdn.alpinelinux.org/alpine/v3.8/community\]
OK: 9539 distinct packages available
OK: 5 MiB in 14 packages
(1/42) Installing libgcc (6.4.0-r8)
(2/42) Installing libstdc (6.4.0-r8)
(3/42) Installing binutils (2.30-r5)
(4/42) Installing gmp (6.1.2-r1)
(5/42) Installing isl (0.18-r0)
(6/42) Installing libgomp (6.4.0-r8)
(7/42) Installing libatomic (6.4.0-r8)
(8/42) Installing pkgconf (1.5.3-r0)
(9/42) Installing mpfr3 (3.1.5-r1)
(10/42) Installing mpc1 (1.0.3-r1)
(11/42) Installing gcc (6.4.0-r8)
(12/42) Installing musl-dev (1.1.19-r10)
(13/42) Installing libc-dev (0.7.1-r0)
(14/42) Installing g (6.4.0-r8)
(15/42) Installing libffi (3.2.1-r4)
(16/42) Installing libffi-dev (3.2.1-r4)
(17/42) Installing linux-headers (4.4.6-r2)
(18/42) Installing make (4.2.1-r2)
(19/42) Installing zlib-dev (1.2.11-r1)
(20/42) Installing libcrypto1.0 (1.0.2p-r0)
(21/42) Installing libssl1.0 (1.0.2p-r0)
(22/42) Installing openssl-dev (1.0.2p-r0)
(23/42) Installing libbz2 (1.0.6-r6)
(24/42) Installing expat (2.2.5-r0)
(25/42) Installing gdbm (1.13-r1)
(26/42) Installing ncurses-terminfo-base (6.1_p20180818-r1)
(27/42) Installing ncurses-terminfo (6.1_p20180818-r1)
(28/42) Installing ncurses-libs (6.1_p20180818-r1)
(29/42) Installing readline (7.0.003-r0)
(30/42) Installing sqlite-libs (3.24.0-r0)
(31/42) Installing python2 (2.7.15-r1)
(32/42) Installing py-setuptools (39.1.0-r0)
(33/42) Installing xz-libs (5.2.4-r0)
(34/42) Installing python3 (3.6.6-r0)
(35/42) Installing py3-setuptools (39.1.0-r0)
(36/42) Installing py2-pip (10.0.1-r0)
(37/42) Installing db (5.3.28-r0)
(38/42) Installing libsasl (2.1.26-r13)
(39/42) Installing libldap (2.4.46-r0)
(40/42) Installing libpq (10.5-r0)
(41/42) Installing py3-psycopg2 (2.7.5-r0)
(42/42) Installing python2-dev (2.7.15-r1)
Executing busybox-1.28.4-r1.trigger
OK: 315 MiB in 56 packages
$ pip install cryptography && apk del openssl-dev && apk add
libressl-dev openldap-dev postgresql-dev
Collecting cryptography
Downloading
https://files.pythonhosted.org/packages/22/21/233e38f74188db94e8451ef6385754a98f3cad9b59bedf3a8e8b14988be4/cryptography-2.3.1.tar.gz
(449kB)
Collecting idna>=2.1 (from cryptography)
Downloading
https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
(58kB)
Collecting asn1crypto>=0.21.0 (from cryptography)
Downloading
https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
(101kB)
Collecting six>=1.4.1 (from cryptography)
Downloading
https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.7 (from cryptography)
Downloading
https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz
(438kB)
Collecting enum34 (from cryptography)
Downloading
https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting ipaddress (from cryptography)
Downloading
https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl
Collecting pycparser (from cffi!=1.11.3,>=1.7->cryptography)
Downloading
https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
(158kB)
Installing collected packages: idna, asn1crypto, six, pycparser, cffi,
enum34, ipaddress, cryptography
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status ‘done’
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status ‘done’
Running setup.py install for cryptography: started
Running setup.py install for cryptography: finished with status ‘done’
Successfully installed asn1crypto-0.24.0 cffi-1.11.5 cryptography-2.3.1
enum34-1.1.6 idna-2.7 ipaddress-1.0.22 pycparser-2.19 six-1.11.0
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the ‘pip install —upgrade pip’
command.
(1/4) Purging openssl-dev (1.0.2p-r0)
(2/4) Purging zlib-dev (1.2.11-r1)
(3/4) Purging libssl1.0 (1.0.2p-r0)
(4/4) Purging libcrypto1.0 (1.0.2p-r0)
OK: 294 MiB in 52 packages
(1/11) Installing libressl-dev (2.7.4-r0)
(2/11) Installing cyrus-sasl-dev (2.1.26-r13)
(3/11) Installing libuuid (2.32-r0)
(4/11) Installing libblkid (2.32-r0)
(5/11) Installing libfdisk (2.32-r0)
(6/11) Installing libmount (2.32-r0)
(7/11) Installing libsmartcols (2.32-r0)
(8/11) Installing util-linux-dev (2.32-r0)
(9/11) Installing openldap-dev (2.4.46-r0)
(10/11) Installing postgresql-libs (10.5-r0)
(11/11) Installing postgresql-dev (10.5-r0)
Executing busybox-1.28.4-r1.trigger
OK: 323 MiB in 63 packages
$ pip install -r infrastructure/requirements_api.txt -r
infrastructure/requirements_deploy.txt
Collecting pem (from -r infrastructure/requirements_api.txt (line 1))
Downloading
https://files.pythonhosted.org/packages/6b/ea/772d0bbcfb897e58538a81de6c8b85d818dddf883d7b114c8c0467ec6fff/pem-18.1.0-py2.py3-none-any.whl
Collecting pycrypto (from -r infrastructure/requirements_api.txt (line
2))
Downloading
https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz
(446kB)
Collecting redis (from -r infrastructure/requirements_api.txt (line
3))
Downloading
https://files.pythonhosted.org/packages/3b/f6/7a76333cf0b9251ecf49efff635015171843d9b977e4ffcf59f9c4428052/redis-2.10.6-py2.py3-none-any.whl
(64kB)
Collecting flask (from -r infrastructure/requirements_api.txt (line
4))
Downloading
https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl
(91kB)
Collecting requests (from -r infrastructure/requirements_api.txt (line
5))
Downloading
https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
(91kB)
Collecting boto3 (from -r infrastructure/requirements_api.txt (line
6))
Downloading
https://files.pythonhosted.org/packages/66/51/8e5ed5ed62dae064c1431b97f0df594150439fcde37d2e63a1adcf9f5f1b/boto3-1.9.11-py2.py3-none-any.whl
(128kB)
Collecting coverage (from -r infrastructure/requirements_api.txt (line
7))
Downloading
https://files.pythonhosted.org/packages/35/fe/e7df7289d717426093c68d156e0fd9117c8f4872b6588e8a8928a0f68424/coverage-4.5.1.tar.gz
(379kB)
Requirement already satisfied: enum34 in
/usr/lib/python2.7/site-packages (from -r
infrastructure/requirements_api.txt (line 8)) (1.1.6)
Collecting pg8000 (from -r infrastructure/requirements_api.txt (line
9))
Downloading
https://files.pythonhosted.org/packages/27/d7/5690d39cba88c2686fa90f6fc0510da9cfb29931894779d042ec40825290/pg8000-1.12.3-py2.py3-none-any.whl
Collecting psycopg2 (from -r infrastructure/requirements_api.txt (line
10))
Downloading
https://files.pythonhosted.org/packages/b2/c1/7bf6c464e903ffc4f3f5907c389e5a4199666bf57f6cd6bf46c17912a1f9/psycopg2-2.7.5.tar.gz
(426kB)
Requirement already satisfied: ipaddress in
/usr/lib/python2.7/site-packages (from -r
infrastructure/requirements_api.txt (line 11)) (1.0.22)
Collecting typing (from -r infrastructure/requirements_api.txt (line
12))
Downloading
https://files.pythonhosted.org/packages/cc/3e/29f92b7aeda5b078c86d14f550bf85cff809042e3429ace7af6193c3bc9f/typing-3.6.6-py2-none-any.whl
Collecting uwsgi (from -r infrastructure/requirements_api.txt (line
13))
Downloading
https://files.pythonhosted.org/packages/a2/c9/a2d5737f63cd9df4317a4acc15d1ddf4952e28398601d8d7d706c16381e0/uwsgi-2.0.17.1.tar.gz
(800kB)
Collecting netaddr (from -r infrastructure/requirements_deploy.txt
(line 1))
Downloading
https://files.pythonhosted.org/packages/ba/97/ce14451a9fd7bdb5a397abf99b24a1a6bb7a1a440b019bebd2e9a0dbec74/netaddr-0.7.19-py2.py3-none-any.whl
(1.6MB)
Collecting botocore (from -r infrastructure/requirements_deploy.txt
(line 3))
Downloading
https://files.pythonhosted.org/packages/6a/53/99f19feb5cd6d2515e2f092afb43664a7ebaa7aa5c8db154863309f555fa/botocore-1.12.11-py2.py3-none-any.whl
(4.7MB)
Collecting paramiko (from -r infrastructure/requirements_deploy.txt
(line 4))
Downloading
https://files.pythonhosted.org/packages/cf/ae/94e70d49044ccc234bfdba20114fa947d7ba6eb68a2e452d89b920e62227/paramiko-2.4.2-py2.py3-none-any.whl
(193kB)
Collecting cssselect (from -r infrastructure/requirements_deploy.txt
(line 5))
Downloading
https://files.pythonhosted.org/packages/7b/44/25b7283e50585f0b4156960691d951b05d061abf4a714078393e51929b30/cssselect-1.0.3-py2.py3-none-any.whl
Collecting urllib3 (from -r infrastructure/requirements_deploy.txt
(line 6))
Downloading
https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
(133kB)
Collecting pylint (from -r infrastructure/requirements_deploy.txt (line
7))
Downloading
https://files.pythonhosted.org/packages/40/5f/2ba2603512cbf48b2d5fa9c3ed494d61bef84fcf2f7a03e602cd15929727/pylint-1.9.3-py2.py3-none-any.whl
(694kB)
Collecting pyopenssl (from -r infrastructure/requirements_deploy.txt
(line 9))
Downloading
https://files.pythonhosted.org/packages/96/af/9d29e6bd40823061aea2e0574ccb2fcf72bfd6130ce53d32773ec375458c/pyOpenSSL-18.0.0-py2.py3-none-any.whl
(53kB)
Collecting scp (from -r infrastructure/requirements_deploy.txt (line
11))
Downloading
https://files.pythonhosted.org/packages/ef/8c/399c5ddffc8c1bd2593ee6c8937ed31f005dcfa0c591da149f7b4b993f14/scp-0.11.0-py2.py3-none-any.whl
Collecting itsdangerous>=0.24 (from flask->-r
infrastructure/requirements_api.txt (line 4))
Downloading
https://files.pythonhosted.org/packages/dc/b4/a60bcdba945c00f6d608d8975131ab3f25b22f2bcfe1dab221165194b2d4/itsdangerous-0.24.tar.gz
(46kB)
Collecting Jinja2>=2.10 (from flask->-r
infrastructure/requirements_api.txt (line 4))
Downloading
https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl
(126kB)
Collecting Werkzeug>=0.14 (from flask->-r
infrastructure/requirements_api.txt (line 4))
Downloading
https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl
(322kB)
Collecting click>=5.1 (from flask->-r
infrastructure/requirements_api.txt (line 4))
Downloading
https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
(81kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests->-r
infrastructure/requirements_api.txt (line 5))
Downloading
https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
(133kB)
Collecting certifi>=2017.4.17 (from requests->-r
infrastructure/requirements_api.txt (line 5))
Downloading
https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl
(147kB)
Requirement already satisfied: idna<2.8,>=2.5 in
/usr/lib/python2.7/site-packages (from requests->-r
infrastructure/requirements_api.txt (line 5)) (2.7)
Collecting s3transfer<0.2.0,>=0.1.10 (from boto3->-r
infrastructure/requirements_api.txt (line 6))
Downloading
https://files.pythonhosted.org/packages/d7/14/2a0004d487464d120c9fb85313a75cd3d71a7506955be458eebfe19a6b1d/s3transfer-0.1.13-py2.py3-none-any.whl
(59kB)
Collecting jmespath<1.0.0,>=0.7.1 (from boto3->-r
infrastructure/requirements_api.txt (line 6))
Downloading
https://files.pythonhosted.org/packages/b7/31/05c8d001f7f87f0f07289a5fc0fc3832e9a57f2dbd4d3b0fee70e0d51365/jmespath-0.9.3-py2.py3-none-any.whl
Requirement already satisfied: six>=1.10.0 in
/usr/lib/python2.7/site-packages (from pg8000->-r
infrastructure/requirements_api.txt (line 9)) (1.11.0)
Collecting python-dateutil<3.0.0,>=2.1; python_version >=
“2.7” (from botocore->-r infrastructure/requirements_deploy.txt
(line 3))
Downloading
https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python\_dateutil-2.7.3-py2.py3-none-any.whl
(211kB)
Collecting docutils>=0.10 (from botocore->-r
infrastructure/requirements_deploy.txt (line 3))
Downloading
https://files.pythonhosted.org/packages/50/09/c53398e0005b11f7ffb27b7aa720c617aba53be4fb4f4f3f06b9b5c60f28/docutils-0.14-py2-none-any.whl
(543kB)
Collecting pyasn1>=0.1.7 (from paramiko->-r
infrastructure/requirements_deploy.txt (line 4))
Downloading
https://files.pythonhosted.org/packages/d1/a1/7790cc85db38daa874f6a2e6308131b9953feb1367f2ae2d1123bb93a9f5/pyasn1-0.4.4-py2.py3-none-any.whl
(72kB)
Collecting bcrypt>=3.1.3 (from paramiko->-r
infrastructure/requirements_deploy.txt (line 4))
Downloading
https://files.pythonhosted.org/packages/f3/ec/bb6b384b5134fd881b91b6aa3a88ccddaad0103857760711a5ab8c799358/bcrypt-3.1.4.tar.gz
(42kB)
Requirement already satisfied: cryptography>=1.5 in
/usr/lib/python2.7/site-packages (from paramiko->-r
infrastructure/requirements_deploy.txt (line 4)) (2.3.1)
Collecting pynacl>=1.0.1 (from paramiko->-r
infrastructure/requirements_deploy.txt (line 4))
Downloading
https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
(3.4MB)
Could not find a version that satisfies the requirement cffi>=1.4.1
(from versions: )
No matching distribution found for cffi>=1.4.1
Here is the log from earlier today that was succeeding:
Requirement already satisfied: cffi>=1.1 in
/usr/lib/python2.7/site-packages (from bcrypt>=3.1.3paramiko>-r
infrastructure/requirements_deploy.txt (line 4)) (1.11.5)
(from redmine: issue id 9475, created on 2018-09-26)