install error on RHEL7
If you're filing a bug (as opposed to a feature request), please try the following things:
- Upgrade to the latest version of
setuptoolsandpip - Make sure you're on a supported version of OpenSSL
- Try with the latest version of
cryptography
If none of that works, please make sure to include the following information in your bug report:
Python version: 2.7.5 cryptography: 2.7 cffi: 1.12.3 pip: 19.2.2 setuptools: 41.1.0
Below is the error message:
# pip install cryptography==2.7
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting cryptography==2.7
Using cached https://files.pythonhosted.org/packages/c2/95/f43d02315f4ec074219c6e3124a87eba1d2d12196c2767fadfdc07a83884/cryptography-2.7.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python /usr/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpUfZKx7
cwd: /tmp/pip-install-EFgKFN/cryptography
Complete output (4 lines):
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 13, in <module>
from glob import glob
ImportError: No module named glob
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpUfZKx7 Check the logs for full command output.
- Versions of Python,
cryptography,cffi,pip, andsetuptoolsyou're using - How you installed
cryptography - Clear steps for reproducing your bug
Please do not report security issues on Github! Follow the instructions in our documentation for reporting security issues: https://cryptography.io/en/latest/security/
I don't hvae a RHEL7, but I just tried creating a virtualenv and installing cryptography into it on CentOS7, and it worked fine.
Can you give us complete instructions from a base system?
Thanks for looking into that! Below are the steps I did.
-
yum install -y python-devel python-setuptools libffi-devel openssl-devel gcc make
-
easy_install pip
-
pip install docker-compose
When I tried to install docker-compose, I got below error messages.
Collecting docker-compose
Using cached https://files.pythonhosted.org/packages/dd/e6/1521d1dfd9c0da1d1863b18e592d91c3df222e55f258b9876fa1e59bc4b5/docker_compose-1.24.1-py2.py3-none-any.whl
Collecting docker[ssh]<4.0,>=3.7.0 (from docker-compose)
Using cached https://files.pythonhosted.org/packages/09/da/7cc7ecdcd01145e9924a8ccbe9c1baf3a362fc75d4cb150676eb5231ea60/docker-3.7.3-py2.py3-none-any.whl
Collecting websocket-client<1.0,>=0.32.0 (from docker-compose)
Using cached https://files.pythonhosted.org/packages/29/19/44753eab1fdb50770ac69605527e8859468f3c0fd7dc5a76dd9c4dbd7906/websocket_client-0.56.0-py2.py3-none-any.whl
Requirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < "3.5" in /usr/lib/python2.7/site-packages (from docker-compose) (3.5.0.1)
Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3" in /usr/lib/python2.7/site-packages (from docker-compose) (1.0.16)
Requirement already satisfied: enum34<2,>=1.0.4; python_version < "3.4" in /usr/lib/python2.7/site-packages (from docker-compose) (1.1.6)
Requirement already satisfied: PyYAML<4.3,>=3.10 in /usr/lib/python2.7/site-packages/PyYAML-3.11-py2.7-linux-s390x.egg (from docker-compose) (3.11)
Collecting dockerpty<0.5,>=0.4.1 (from docker-compose)
Using cached https://files.pythonhosted.org/packages/8d/ee/e9ecce4c32204a6738e0a5d5883d3413794d7498fe8b06f44becc028d3ba/dockerpty-0.4.1.tar.gz
Collecting texttable<0.10,>=0.9.0 (from docker-compose)
Using cached https://files.pythonhosted.org/packages/02/e1/2565e6b842de7945af0555167d33acfc8a615584ef7abd30d1eae00a4d80/texttable-0.9.1.tar.gz
Requirement already satisfied: requests!=2.11.0,!=2.12.2,!=2.18.0,<2.21,>=2.6.1 in /usr/lib/python2.7/site-packages/requests-2.11.1-py2.7.egg (from docker-compose) (2.11.1)
Requirement already satisfied: six<2,>=1.3.0 in /usr/lib/python2.7/site-packages (from docker-compose) (1.9.0)
Collecting cached-property<2,>=1.2.0 (from docker-compose)
Using cached https://files.pythonhosted.org/packages/3b/86/85c1be2e8db9e13ef9a350aecd6dea292bd612fa288c2f40d035bb750ded/cached_property-1.5.1-py2.py3-none-any.whl
Collecting jsonschema<3,>=2.5.1 (from docker-compose)
Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting docopt<0.7,>=0.6.1 (from docker-compose)
Using cached https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Collecting docker-pycreds>=0.4.0 (from docker[ssh]<4.0,>=3.7.0->docker-compose)
Using cached https://files.pythonhosted.org/packages/f5/e8/f6bd1eee09314e7e6dee49cbe2c5e22314ccdb38db16c9fc72d2fa80d054/docker_pycreds-0.4.0-py2.py3-none-any.whl
Collecting paramiko>=2.4.2; extra == "ssh" (from docker[ssh]<4.0,>=3.7.0->docker-compose)
Using cached https://files.pythonhosted.org/packages/4b/80/74dace9e48b0ef923633dfb5e48798f58a168e4734bca8ecfaf839ba051a/paramiko-2.6.0-py2.py3-none-any.whl
Collecting functools32; python_version == "2.7" (from jsonschema<3,>=2.5.1->docker-compose)
Using cached https://files.pythonhosted.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz
Requirement already satisfied: pynacl>=1.0.1 in /usr/lib64/python2.7/site-packages (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]<4.0,>=3.7.0->docker-compose) (1.2.0)
Collecting cryptography>=2.5 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]<4.0,>=3.7.0->docker-compose)
Using cached https://files.pythonhosted.org/packages/c2/95/f43d02315f4ec074219c6e3124a87eba1d2d12196c2767fadfdc07a83884/cryptography-2.7.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python /usr/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp8xYSG6
cwd: /tmp/pip-install-L1P3Sr/cryptography
Complete output (4 lines):
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 13, in <module>
from glob import glob
ImportError: No module named glob
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp8xYSG6 Check the logs for full command output.
So that's why I tried to install cryptography separately.
Below is the python site info.
sys.path = [
'/root',
'/usr/lib/python2.7/site-packages/setuptools-26.0.0-py2.7.egg',
'/usr/lib/python2.7/site-packages/cloud_init-0.7.6-py2.7.egg',
'/usr/lib/python2.7/site-packages/jsonpatch-1.14-py2.7.egg',
'/usr/lib/python2.7/site-packages/requests-2.11.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/argparse-1.4.0-py2.7.egg',
'/usr/lib/python2.7/site-packages/PyYAML-3.11-py2.7-linux-s390x.egg',
'/usr/lib/python2.7/site-packages/pyserial-3.1.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/oauth-1.0.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/prettytable-0.7.2-py2.7.egg',
'/usr/lib/python2.7/site-packages/Jinja2-2.8-py2.7.egg',
'/usr/lib/python2.7/site-packages/Cheetah-2.4.4-py2.7.egg',
'/usr/lib/python2.7/site-packages/jsonpointer-1.10-py2.7.egg',
'/usr/lib/python2.7/site-packages/MarkupSafe-0.23-py2.7.egg',
'/usr/lib/python2.7/site-packages/Markdown-2.6.6-py2.7.egg',
'/usr/lib/python2.7/site-packages/pip-19.2.2-py2.7.egg',
'/usr/lib64/python27.zip',
'/usr/lib64/python2.7',
'/usr/lib64/python2.7/plat-linux2',
'/usr/lib64/python2.7/lib-tk',
'/usr/lib64/python2.7/lib-old',
'/usr/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages/PyNaCl-1.3.0-py2.7-linux-s390x.egg',
'/root/PyNaCl-1.3.0/.eggs/cffi-1.12.3-py2.7-linux-s390x.egg',
'/root/PyNaCl-1.3.0/.eggs/pycparser-2.19-py2.7.egg',
'/usr/lib64/python2.7/site-packages/cryptography-2.7-py2.7-linux-s390x.egg',
'/usr/lib64/python2.7/site-packages/enum34-1.1.6-py2.7.egg',
'/usr/lib64/python2.7/site-packages/asn1crypto-0.24.0-py2.7.egg',
'/usr/lib64/python2.7/site-packages/bcrypt-3.1.7-py2.7-linux-s390x.egg',
'/usr/lib64/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages',
]
USER_BASE: '/root/.local' (doesn't exist)
USER_SITE: '/root/.local/lib/python2.7/site-packages' (doesn't exist)
ENABLE_USER_SITE: True
BTW, the architecture is s390x. But from RHEL perspective, it's the same as x86. I was working with the older versions of those python modules.
In a fresh CentOS 7 container, those instructions work fine:
alexgaynor@penguin ~/p/graphicsmagick> docker run --rm -it centos:7
Unable to find image 'centos:7' locally
7: Pulling from library/centos
8ba884070f61: Pull complete
Digest: sha256:a799dd8a2ded4a83484bbae769d97655392b3f86533ceb7dd96bbac929809f3c
Status: Downloaded newer image for centos:7
[root@8bf03235b760 /]# yum install -y python-devel python-setuptools libffi-devel openssl-devel gcc make
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
* base: linux.mirrors.es.net
* extras: linux.mirrors.es.net
* updates: centos.sonn.com
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): base/7/x86_64/group_gz | 166 kB 00:00:00
(2/4): extras/7/x86_64/primary_db | 215 kB 00:00:00
(3/4): base/7/x86_64/primary_db | 6.0 MB 00:00:03
(4/4): updates/7/x86_64/primary_db | 7.4 MB 00:00:03
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-36.el7_6.2 will be installed
--> Processing Dependency: libgomp = 4.8.5-36.el7_6.2 for package: gcc-4.8.5-36.el7_6.2.x86_64
--> Processing Dependency: cpp = 4.8.5-36.el7_6.2 for package: gcc-4.8.5-36.el7_6.2.x86_64
--> Processing Dependency: libgcc >= 4.8.5-36.el7_6.2 for package: gcc-4.8.5-36.el7_6.2.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-36.el7_6.2.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-36.el7_6.2.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-36.el7_6.2.x86_64
--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.8.5-36.el7_6.2.x86_64
---> Package libffi-devel.x86_64 0:3.0.13-18.el7 will be installed
---> Package make.x86_64 1:3.82-23.el7 will be installed
---> Package openssl-devel.x86_64 1:1.0.2k-16.el7_6.1 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-16.el7_6.1 for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64
--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64
---> Package python-devel.x86_64 0:2.7.5-80.el7_6 will be installed
--> Processing Dependency: python(x86-64) = 2.7.5-80.el7_6 for package: python-devel-2.7.5-80.el7_6.x86_64
---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-36.el7_6.2 will be installed
---> Package glibc-devel.x86_64 0:2.17-260.el7_6.6 will be installed
--> Processing Dependency: glibc-headers = 2.17-260.el7_6.6 for package: glibc-devel-2.17-260.el7_6.6.x86_64
--> Processing Dependency: glibc = 2.17-260.el7_6.6 for package: glibc-devel-2.17-260.el7_6.6.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-260.el7_6.6.x86_64
---> Package krb5-devel.x86_64 0:1.15.1-37.el7_6 will be installed
--> Processing Dependency: libkadm5(x86-64) = 1.15.1-37.el7_6 for package: krb5-devel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-36.el7_6.2 will be an update
---> Package libgomp.x86_64 0:4.8.5-36.el7_6.2 will be installed
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
---> Package openssl-libs.x86_64 1:1.0.2k-16.el7 will be updated
---> Package openssl-libs.x86_64 1:1.0.2k-16.el7_6.1 will be an update
---> Package python.x86_64 0:2.7.5-76.el7 will be updated
---> Package python.x86_64 0:2.7.5-80.el7_6 will be an update
--> Processing Dependency: python-libs(x86-64) = 2.7.5-80.el7_6 for package: python-2.7.5-80.el7_6.x86_64
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed
--> Processing Dependency: python-ipaddress for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed
--> Running transaction check
---> Package glibc.x86_64 0:2.17-260.el7_6.3 will be updated
--> Processing Dependency: glibc = 2.17-260.el7_6.3 for package: glibc-common-2.17-260.el7_6.3.x86_64
---> Package glibc.x86_64 0:2.17-260.el7_6.6 will be an update
---> Package glibc-headers.x86_64 0:2.17-260.el7_6.6 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-260.el7_6.6.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-260.el7_6.6.x86_64
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package libcom_err-devel.x86_64 0:1.42.9-13.el7 will be installed
---> Package libkadm5.x86_64 0:1.15.1-37.el7_6 will be installed
---> Package libselinux-devel.x86_64 0:2.5-14.1.el7 will be installed
--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-14.1.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-14.1.el7.x86_64
--> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.5-14.1.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
---> Package python-libs.x86_64 0:2.7.5-76.el7 will be updated
---> Package python-libs.x86_64 0:2.7.5-80.el7_6 will be an update
--> Running transaction check
---> Package glibc-common.x86_64 0:2.17-260.el7_6.3 will be updated
---> Package glibc-common.x86_64 0:2.17-260.el7_6.6 will be an update
---> Package kernel-headers.x86_64 0:3.10.0-957.27.2.el7 will be installed
---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed
---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
gcc x86_64 4.8.5-36.el7_6.2 updates 16 M
libffi-devel x86_64 3.0.13-18.el7 base 23 k
make x86_64 1:3.82-23.el7 base 420 k
openssl-devel x86_64 1:1.0.2k-16.el7_6.1 updates 1.5 M
python-devel x86_64 2.7.5-80.el7_6 updates 398 k
python-setuptools noarch 0.9.8-7.el7 base 397 k
Installing for dependencies:
cpp x86_64 4.8.5-36.el7_6.2 updates 5.9 M
glibc-devel x86_64 2.17-260.el7_6.6 updates 1.1 M
glibc-headers x86_64 2.17-260.el7_6.6 updates 684 k
kernel-headers x86_64 3.10.0-957.27.2.el7 updates 8.0 M
keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k
krb5-devel x86_64 1.15.1-37.el7_6 updates 271 k
libcom_err-devel x86_64 1.42.9-13.el7 base 31 k
libgomp x86_64 4.8.5-36.el7_6.2 updates 158 k
libkadm5 x86_64 1.15.1-37.el7_6 updates 178 k
libmpc x86_64 1.0.1-3.el7 base 51 k
libselinux-devel x86_64 2.5-14.1.el7 base 187 k
libsepol-devel x86_64 2.5-10.el7 base 77 k
libverto-devel x86_64 0.2.5-4.el7 base 12 k
mpfr x86_64 3.1.1-4.el7 base 203 k
pcre-devel x86_64 8.32-17.el7 base 480 k
python-backports x86_64 1.0-8.el7 base 5.8 k
python-backports-ssl_match_hostname noarch 3.5.0.1-1.el7 base 13 k
python-ipaddress noarch 1.0.16-2.el7 base 34 k
zlib-devel x86_64 1.2.7-18.el7 base 50 k
Updating for dependencies:
glibc x86_64 2.17-260.el7_6.6 updates 3.7 M
glibc-common x86_64 2.17-260.el7_6.6 updates 12 M
libgcc x86_64 4.8.5-36.el7_6.2 updates 102 k
openssl-libs x86_64 1:1.0.2k-16.el7_6.1 updates 1.2 M
python x86_64 2.7.5-80.el7_6 updates 95 k
python-libs x86_64 2.7.5-80.el7_6 updates 5.6 M
Transaction Summary
==================================================================================================================
Install 6 Packages (+19 Dependent packages)
Upgrade ( 6 Dependent packages)
Total download size: 59 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/updates/packages/glibc-devel-2.17-260.el7_6.6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for glibc-devel-2.17-260.el7_6.6.x86_64.rpm is not installed
(1/31): glibc-devel-2.17-260.el7_6.6.x86_64.rpm | 1.1 MB 00:00:01
(2/31): glibc-2.17-260.el7_6.6.x86_64.rpm | 3.7 MB 00:00:05
(3/31): cpp-4.8.5-36.el7_6.2.x86_64.rpm | 5.9 MB 00:00:05
Public key for keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm is not installed ] 2.7 MB/s | 21 MB 00:00:14 ETA
(4/31): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00:00
(5/31): krb5-devel-1.15.1-37.el7_6.x86_64.rpm | 271 kB 00:00:00
(6/31): libcom_err-devel-1.42.9-13.el7.x86_64.rpm | 31 kB 00:00:00
(7/31): libffi-devel-3.0.13-18.el7.x86_64.rpm | 23 kB 00:00:00
(8/31): libgcc-4.8.5-36.el7_6.2.x86_64.rpm | 102 kB 00:00:00
(9/31): libgomp-4.8.5-36.el7_6.2.x86_64.rpm | 158 kB 00:00:00
(10/31): libkadm5-1.15.1-37.el7_6.x86_64.rpm | 178 kB 00:00:00
(11/31): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00:00
(12/31): libselinux-devel-2.5-14.1.el7.x86_64.rpm | 187 kB 00:00:00
(13/31): libsepol-devel-2.5-10.el7.x86_64.rpm | 77 kB 00:00:00
(14/31): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:00:00
(15/31): make-3.82-23.el7.x86_64.rpm | 420 kB 00:00:00
(16/31): mpfr-3.1.1-4.el7.x86_64.rpm | 203 kB 00:00:00
(17/31): openssl-devel-1.0.2k-16.el7_6.1.x86_64.rpm | 1.5 MB 00:00:01
(18/31): openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm | 1.2 MB 00:00:01
(19/31): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:00:00
(20/31): python-2.7.5-80.el7_6.x86_64.rpm | 95 kB 00:00:00
(21/31): python-backports-1.0-8.el7.x86_64.rpm | 5.8 kB 00:00:00
(22/31): python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm | 13 kB 00:00:00
(23/31): glibc-common-2.17-260.el7_6.6.x86_64.rpm | 12 MB 00:00:13
(24/31): python-devel-2.7.5-80.el7_6.x86_64.rpm | 398 kB 00:00:00
(25/31): python-ipaddress-1.0.16-2.el7.noarch.rpm | 34 kB 00:00:00
(26/31): kernel-headers-3.10.0-957.27.2.el7.x86_64.rpm | 8.0 MB 00:00:08
(27/31): python-setuptools-0.9.8-7.el7.noarch.rpm | 397 kB 00:00:00
(28/31): zlib-devel-1.2.7-18.el7.x86_64.rpm | 50 kB 00:00:00
(29/31): gcc-4.8.5-36.el7_6.2.x86_64.rpm | 16 MB 00:00:16
(30/31): python-libs-2.7.5-80.el7_6.x86_64.rpm | 5.6 MB 00:00:02
(31/31): glibc-headers-2.17-260.el7_6.6.x86_64.rpm | 684 kB 00:00:14
------------------------------------------------------------------------------------------------------------------
Total 3.5 MB/s | 59 MB 00:00:16
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-6.1810.2.el7.centos.x86_64 (@CentOS)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : libgcc-4.8.5-36.el7_6.2.x86_64 1/37
Updating : glibc-common-2.17-260.el7_6.6.x86_64 2/37
Updating : glibc-2.17-260.el7_6.6.x86_64 3/37
Installing : mpfr-3.1.1-4.el7.x86_64 4/37
Installing : libmpc-1.0.1-3.el7.x86_64 5/37
Updating : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64 6/37
Updating : python-libs-2.7.5-80.el7_6.x86_64 7/37
Updating : python-2.7.5-80.el7_6.x86_64 8/37
Installing : python-backports-1.0-8.el7.x86_64 9/37
Installing : python-ipaddress-1.0.16-2.el7.noarch 10/37
Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 11/37
Installing : cpp-4.8.5-36.el7_6.2.x86_64 12/37
Installing : libgomp-4.8.5-36.el7_6.2.x86_64 13/37
Installing : libkadm5-1.15.1-37.el7_6.x86_64 14/37
Installing : libverto-devel-0.2.5-4.el7.x86_64 15/37
Installing : libsepol-devel-2.5-10.el7.x86_64 16/37
Installing : zlib-devel-1.2.7-18.el7.x86_64 17/37
Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 18/37
Installing : libcom_err-devel-1.42.9-13.el7.x86_64 19/37
Installing : kernel-headers-3.10.0-957.27.2.el7.x86_64 20/37
Installing : glibc-headers-2.17-260.el7_6.6.x86_64 21/37
Installing : glibc-devel-2.17-260.el7_6.6.x86_64 22/37
Installing : pcre-devel-8.32-17.el7.x86_64 23/37
Installing : libselinux-devel-2.5-14.1.el7.x86_64 24/37
Installing : krb5-devel-1.15.1-37.el7_6.x86_64 25/37
Installing : 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 26/37
Installing : gcc-4.8.5-36.el7_6.2.x86_64 27/37
Installing : python-setuptools-0.9.8-7.el7.noarch 28/37
Installing : python-devel-2.7.5-80.el7_6.x86_64 29/37
Installing : 1:make-3.82-23.el7.x86_64 30/37
Installing : libffi-devel-3.0.13-18.el7.x86_64 31/37
install-info: No such file or directory for /usr/share/info/libffi.info.gz
warning: %post(libffi-devel-3.0.13-18.el7.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package libffi-devel-3.0.13-18.el7.x86_64
Cleanup : python-2.7.5-76.el7.x86_64 32/37
Cleanup : python-libs-2.7.5-76.el7.x86_64 33/37
Cleanup : 1:openssl-libs-1.0.2k-16.el7.x86_64 34/37
Cleanup : glibc-common-2.17-260.el7_6.3.x86_64 35/37
Cleanup : glibc-2.17-260.el7_6.3.x86_64 36/37
Cleanup : libgcc-4.8.5-36.el7.x86_64 37/37
Verifying : python-devel-2.7.5-80.el7_6.x86_64 1/37
Verifying : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 2/37
Verifying : python-2.7.5-80.el7_6.x86_64 3/37
Verifying : 1:make-3.82-23.el7.x86_64 4/37
Verifying : pcre-devel-8.32-17.el7.x86_64 5/37
Verifying : glibc-2.17-260.el7_6.6.x86_64 6/37
Verifying : kernel-headers-3.10.0-957.27.2.el7.x86_64 7/37
Verifying : gcc-4.8.5-36.el7_6.2.x86_64 8/37
Verifying : python-setuptools-0.9.8-7.el7.noarch 9/37
Verifying : libcom_err-devel-1.42.9-13.el7.x86_64 10/37
Verifying : krb5-devel-1.15.1-37.el7_6.x86_64 11/37
Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 12/37
Verifying : libffi-devel-3.0.13-18.el7.x86_64 13/37
Verifying : zlib-devel-1.2.7-18.el7.x86_64 14/37
Verifying : libgcc-4.8.5-36.el7_6.2.x86_64 15/37
Verifying : libgomp-4.8.5-36.el7_6.2.x86_64 16/37
Verifying : glibc-headers-2.17-260.el7_6.6.x86_64 17/37
Verifying : python-backports-1.0-8.el7.x86_64 18/37
Verifying : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64 19/37
Verifying : libmpc-1.0.1-3.el7.x86_64 20/37
Verifying : libsepol-devel-2.5-10.el7.x86_64 21/37
Verifying : 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 22/37
Verifying : libverto-devel-0.2.5-4.el7.x86_64 23/37
Verifying : python-libs-2.7.5-80.el7_6.x86_64 24/37
Verifying : libkadm5-1.15.1-37.el7_6.x86_64 25/37
Verifying : mpfr-3.1.1-4.el7.x86_64 26/37
Verifying : python-ipaddress-1.0.16-2.el7.noarch 27/37
Verifying : libselinux-devel-2.5-14.1.el7.x86_64 28/37
Verifying : cpp-4.8.5-36.el7_6.2.x86_64 29/37
Verifying : glibc-devel-2.17-260.el7_6.6.x86_64 30/37
Verifying : glibc-common-2.17-260.el7_6.6.x86_64 31/37
Verifying : python-2.7.5-76.el7.x86_64 32/37
Verifying : glibc-common-2.17-260.el7_6.3.x86_64 33/37
Verifying : libgcc-4.8.5-36.el7.x86_64 34/37
Verifying : 1:openssl-libs-1.0.2k-16.el7.x86_64 35/37
Verifying : glibc-2.17-260.el7_6.3.x86_64 36/37
Verifying : python-libs-2.7.5-76.el7.x86_64 37/37
Installed:
gcc.x86_64 0:4.8.5-36.el7_6.2 libffi-devel.x86_64 0:3.0.13-18.el7
make.x86_64 1:3.82-23.el7 openssl-devel.x86_64 1:1.0.2k-16.el7_6.1
python-devel.x86_64 0:2.7.5-80.el7_6 python-setuptools.noarch 0:0.9.8-7.el7
Dependency Installed:
cpp.x86_64 0:4.8.5-36.el7_6.2 glibc-devel.x86_64 0:2.17-260.el7_6.6
glibc-headers.x86_64 0:2.17-260.el7_6.6 kernel-headers.x86_64 0:3.10.0-957.27.2.el7
keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.15.1-37.el7_6
libcom_err-devel.x86_64 0:1.42.9-13.el7 libgomp.x86_64 0:4.8.5-36.el7_6.2
libkadm5.x86_64 0:1.15.1-37.el7_6 libmpc.x86_64 0:1.0.1-3.el7
libselinux-devel.x86_64 0:2.5-14.1.el7 libsepol-devel.x86_64 0:2.5-10.el7
libverto-devel.x86_64 0:0.2.5-4.el7 mpfr.x86_64 0:3.1.1-4.el7
pcre-devel.x86_64 0:8.32-17.el7 python-backports.x86_64 0:1.0-8.el7
python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 python-ipaddress.noarch 0:1.0.16-2.el7
zlib-devel.x86_64 0:1.2.7-18.el7
Dependency Updated:
glibc.x86_64 0:2.17-260.el7_6.6 glibc-common.x86_64 0:2.17-260.el7_6.6
libgcc.x86_64 0:4.8.5-36.el7_6.2 openssl-libs.x86_64 1:1.0.2k-16.el7_6.1
python.x86_64 0:2.7.5-80.el7_6 python-libs.x86_64 0:2.7.5-80.el7_6
Complete!
[root@8bf03235b760 /]#
[root@8bf03235b760 /]# pip
bash: pip: command not found
[root@8bf03235b760 /]# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 19.2.2
Downloading https://files.pythonhosted.org/packages/aa/1a/62fb0b95b1572c76dbc3cc31124a8b6866cbe9139eb7659ac7349457cf7c/pip-19.2.2.tar.gz#sha256=e05103825871e210d50a44c7e448587b0ed99dd775d3ef586304c58f40224a53
Processing pip-19.2.2.tar.gz
Writing /tmp/easy_install-26Dq0v/pip-19.2.2/setup.cfg
Running pip-19.2.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-26Dq0v/pip-19.2.2/egg-dist-tmp-KyYMfl
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
warning: no files found matching 'docs/docutils.conf'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'tox.ini'
warning: no files found matching 'Makefile' under directory 'docs'
warning: no files found matching '*.bat' under directory 'docs'
warning: no previously-included files found matching 'src/pip/_vendor/six'
warning: no previously-included files found matching 'src/pip/_vendor/six/moves'
warning: no previously-included files matching '*.pyi' found under directory 'src/pip/_vendor'
no previously-included directories found matching '.github'
no previously-included directories found matching '.azure-pipelines'
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'news'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
no previously-included directories found matching 'tools'
Adding pip 19.2.2 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip2.7 script to /usr/bin
Installing pip2 script to /usr/bin
Installed /usr/lib/python2.7/site-packages/pip-19.2.2-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
[root@8bf03235b760 /]#
[root@8bf03235b760 /]# pip install docker-compose
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting docker-compose
Downloading https://files.pythonhosted.org/packages/dd/e6/1521d1dfd9c0da1d1863b18e592d91c3df222e55f258b9876fa1e59bc4b5/docker_compose-1.24.1-py2.py3-none-any.whl (134kB)
|################################| 143kB 3.1MB/s
Collecting docker[ssh]<4.0,>=3.7.0 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/09/da/7cc7ecdcd01145e9924a8ccbe9c1baf3a362fc75d4cb150676eb5231ea60/docker-3.7.3-py2.py3-none-any.whl (134kB)
|################################| 143kB 14.8MB/s
Requirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < "3.5" in /usr/lib/python2.7/site-packages (from docker-compose) (3.5.0.1)
Collecting requests!=2.11.0,!=2.12.2,!=2.18.0,<2.21,>=2.6.1 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/ff/17/5cbb026005115301a8fb2f9b0e3e8d32313142fe8b617070e7baad20554f/requests-2.20.1-py2.py3-none-any.whl (57kB)
|################################| 61kB 16.7MB/s
Collecting six<2,>=1.3.0 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting PyYAML<4.3,>=3.10 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
|################################| 276kB 21.9MB/s
Collecting texttable<0.10,>=0.9.0 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/02/e1/2565e6b842de7945af0555167d33acfc8a615584ef7abd30d1eae00a4d80/texttable-0.9.1.tar.gz
Collecting dockerpty<0.5,>=0.4.1 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/8d/ee/e9ecce4c32204a6738e0a5d5883d3413794d7498fe8b06f44becc028d3ba/dockerpty-0.4.1.tar.gz
Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3" in /usr/lib/python2.7/site-packages (from docker-compose) (1.0.16)
Collecting websocket-client<1.0,>=0.32.0 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/29/19/44753eab1fdb50770ac69605527e8859468f3c0fd7dc5a76dd9c4dbd7906/websocket_client-0.56.0-py2.py3-none-any.whl (200kB)
|################################| 204kB 18.3MB/s
Collecting enum34<2,>=1.0.4; python_version < "3.4" (from docker-compose)
Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting docopt<0.7,>=0.6.1 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Collecting jsonschema<3,>=2.5.1 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting cached-property<2,>=1.2.0 (from docker-compose)
Downloading https://files.pythonhosted.org/packages/3b/86/85c1be2e8db9e13ef9a350aecd6dea292bd612fa288c2f40d035bb750ded/cached_property-1.5.1-py2.py3-none-any.whl
Collecting docker-pycreds>=0.4.0 (from docker[ssh]<4.0,>=3.7.0->docker-compose)
Downloading https://files.pythonhosted.org/packages/f5/e8/f6bd1eee09314e7e6dee49cbe2c5e22314ccdb38db16c9fc72d2fa80d054/docker_pycreds-0.4.0-py2.py3-none-any.whl
Collecting paramiko>=2.4.2; extra == "ssh" (from docker[ssh]<4.0,>=3.7.0->docker-compose)
Downloading https://files.pythonhosted.org/packages/4b/80/74dace9e48b0ef923633dfb5e48798f58a168e4734bca8ecfaf839ba051a/paramiko-2.6.0-py2.py3-none-any.whl (199kB)
|################################| 204kB 14.2MB/s
Collecting idna<2.8,>=2.5 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.21,>=2.6.1->docker-compose)
Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
|################################| 61kB 12.9MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.21,>=2.6.1->docker-compose)
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
|################################| 143kB 24.4MB/s
Collecting urllib3<1.25,>=1.21.1 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.21,>=2.6.1->docker-compose)
Downloading https://files.pythonhosted.org/packages/01/11/525b02e4acc0c747de8b6ccdab376331597c569c42ea66ab0a1dbd36eca2/urllib3-1.24.3-py2.py3-none-any.whl (118kB)
|################################| 122kB 22.0MB/s
Collecting certifi>=2017.4.17 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.21,>=2.6.1->docker-compose)
Downloading https://files.pythonhosted.org/packages/69/1b/b853c7a9d4f6a6d00749e94eb6f3a041e342a885b87340b79c1ef73e3a78/certifi-2019.6.16-py2.py3-none-any.whl (157kB)
|################################| 163kB 15.0MB/s
Collecting functools32; python_version == "2.7" (from jsonschema<3,>=2.5.1->docker-compose)
Downloading https://files.pythonhosted.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz
Collecting cryptography>=2.5 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]<4.0,>=3.7.0->docker-compose)
Downloading https://files.pythonhosted.org/packages/e6/68/50698ce24c61db7d44d93a5043c621a0ca7839d4ef9dff913e6ab465fc92/cryptography-2.7-cp27-cp27mu-manylinux1_x86_64.whl (2.3MB)
|################################| 2.3MB 19.1MB/s
Collecting pynacl>=1.0.1 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]<4.0,>=3.7.0->docker-compose)
Downloading https://files.pythonhosted.org/packages/b3/25/e605574f24948a8a53b497744e93f061eb1dbe7c44b6465fc1c172d591aa/PyNaCl-1.3.0-cp27-cp27mu-manylinux1_x86_64.whl (762kB)
|################################| 768kB 19.7MB/s
Collecting bcrypt>=3.1.3 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]<4.0,>=3.7.0->docker-compose)
Downloading https://files.pythonhosted.org/packages/ad/36/9a0227d048e98409f012570f7bef8a8c2373b9c9c5dfbf82963cbae05ede/bcrypt-3.1.7-cp27-cp27mu-manylinux1_x86_64.whl (59kB)
|################################| 61kB 7.9MB/s
Collecting asn1crypto>=0.21.0 (from cryptography>=2.5->paramiko>=2.4.2; extra == "ssh"->docker[ssh]<4.0,>=3.7.0->docker-compose)
Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
|################################| 102kB 16.7MB/s
Collecting cffi!=1.11.3,>=1.8 (from cryptography>=2.5->paramiko>=2.4.2; extra == "ssh"->docker[ssh]<4.0,>=3.7.0->docker-compose)
Downloading https://files.pythonhosted.org/packages/8d/e9/0c8afd1579e5cf7bc0f06fbcd7cdb954cbc0baadd505973949a99337da1c/cffi-1.12.3-cp27-cp27mu-manylinux1_x86_64.whl (415kB)
|################################| 419kB 16.8MB/s
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography>=2.5->paramiko>=2.4.2; extra == "ssh"->docker[ssh]<4.0,>=3.7.0->docker-compose)
Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
|################################| 163kB 33.0MB/s
Installing collected packages: six, websocket-client, docker-pycreds, idna, chardet, urllib3, certifi, requests, enum34, asn1crypto, pycparser, cffi, cryptography, pynacl, bcrypt, paramiko, docker, PyYAML, texttable, dockerpty, docopt, functools32, jsonschema, cached-property, docker-compose
Found existing installation: chardet 2.2.1
Uninstalling chardet-2.2.1:
Successfully uninstalled chardet-2.2.1
Running setup.py install for pycparser ... done
Running setup.py install for PyYAML ... done
Running setup.py install for texttable ... done
Running setup.py install for dockerpty ... done
Running setup.py install for docopt ... done
Running setup.py install for functools32 ... done
Successfully installed PyYAML-3.13 asn1crypto-0.24.0 bcrypt-3.1.7 cached-property-1.5.1 certifi-2019.6.16 cffi-1.12.3 chardet-3.0.4 cryptography-2.7 docker-3.7.3 docker-compose-1.24.1 docker-pycreds-0.4.0 dockerpty-0.4.1 docopt-0.6.2 enum34-1.1.6 functools32-3.2.3.post2 idna-2.7 jsonschema-2.6.0 paramiko-2.6.0 pycparser-2.19 pynacl-1.3.0 requests-2.20.1 six-1.12.0 texttable-0.9.1 urllib3-1.24.3 websocket-client-0.56.0
@cheeye the error appears to be that you don;t have glob installed for some reason. This is weird, because it's included in the standard library.
Collecting cryptography>=2.5 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]<4.0,>=3.7.0->docker-compose)
Using cached https://files.pythonhosted.org/packages/c2/95/f43d02315f4ec074219c6e3124a87eba1d2d12196c2767fadfdc07a83884/cryptography-2.7.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python /usr/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp8xYSG6
cwd: /tmp/pip-install-L1P3Sr/cryptography
Complete output (4 lines):
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 13, in <module>
from glob import glob
ImportError: No module named glob
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp8xYSG6 Check the logs for full command output.
@alex you appear to have glob installed so this isn't raising an error.
it worked for me . Tank you for guide bro