I was installing esrally on RHEL7 machine. At the point of installing there was an problem, that not enough dependencies where installed at the time. That is not the problem for this topic, but the ERROR while installing esrally.
ERROR: botocore 1.13.50 has requirement urllib3<1.26,>=1.20; python_version >= "3.4", but you'll have urllib3 1.26.9 which is incompatible.
I used the latest version 2.4.0 of esrally, but the provided esrally-dist-2.4.0/bin/urllib3-1.26.9-py2.py3-none-any.whl is incompatible so it seems. Is this github bug worthy?
# python3 -m pip install esrally --no-index --find-links /data/scripts/elastic_rally/esrally -r /data/scripts/elastic_rally/esrally/requirements.txt
WARNING: Running pip install with root privileges is generally not a good idea. Try `python3 -m pip install --user` instead.
Looking in links: /data/scripts/elastic_rally/esrally
Processing ./esrally/esrally-1.4.1-py3-none-any.whl
Requirement already satisfied: thespian==3.9.3 in /root/.local/lib/python3.8/site-packages (from esrally) (3.9.3)
Processing ./esrally/tabulate-0.8.5.tar.gz
Processing ./esrally/psutil-5.6.5.tar.gz
Requirement already satisfied: certifi in /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages (from esrally) (2021.10.8)
Processing ./esrally/elasticsearch-7.0.5-py2.py3-none-any.whl
Processing ./esrally/boto3-1.10.32-py2.py3-none-any.whl
Processing ./esrally/py-cpuinfo-3.2.0.tar.gz
Requirement already satisfied: Jinja2==2.10.3 in /root/.local/lib/python3.8/site-packages (from esrally) (2.10.3)
Requirement already satisfied: jsonschema==3.1.1 in /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages (from esrally) (3.1.1)
Requirement already satisfied: urllib3>=1.21.1 in /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages (from elasticsearch==7.0.5->esrally) (1.26.9)
Processing ./esrally/s3transfer-0.2.1-py2.py3-none-any.whl
Processing ./esrally/botocore-1.13.50-py2.py3-none-any.whl
Processing ./esrally/jmespath-0.10.0-py2.py3-none-any.whl
Requirement already satisfied: MarkupSafe>=0.23 in /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages (from Jinja2==2.10.3->esrally) (2.0.1)
Requirement already satisfied: six>=1.11.0 in /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages (from jsonschema==3.1.1->esrally) (1.16.0)
Requirement already satisfied: setuptools in /opt/rh/rh-python38/root/usr/lib/python3.8/site-packages (from jsonschema==3.1.1->esrally) (41.6.0)
Requirement already satisfied: importlib-metadata in /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages (from jsonschema==3.1.1->esrally) (4.11.3)
Requirement already satisfied: pyrsistent>=0.14.0 in /opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages (from jsonschema==3.1.1->esrally) (0.18.1)
Requirement already satisfied: attrs>=17.4.0 in /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages (from jsonschema==3.1.1->esrally) (21.4.0)
Processing ./esrally/docutils-0.15.2-py3-none-any.whl
Processing ./esrally/python_dateutil-2.8.2-py2.py3-none-any.whl
Requirement already satisfied: zipp>=0.5 in /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages (from importlib-metadata->jsonschema==3.1.1->esrally) (3.7.0)
ERROR: botocore 1.13.50 has requirement urllib3<1.26,>=1.20; python_version >= "3.4", but you'll have urllib3 1.26.9 which is incompatible.
Installing collected packages: tabulate, psutil, elasticsearch, docutils, python-dateutil, jmespath, botocore, s3transfer, boto3, py-cpuinfo, esrally
Found existing installation: tabulate 0.8.9
Uninstalling tabulate-0.8.9:
Successfully uninstalled tabulate-0.8.9
Running setup.py install for tabulate ... done
Found existing installation: psutil 5.8.0
Uninstalling psutil-5.8.0:
Successfully uninstalled psutil-5.8.0
Running setup.py install for psutil ... error
ERROR: Command errored out with exit status 1:
command: /opt/rh/rh-python38/root/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wf8kdx35/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wf8kdx35/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-l830zfc6/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-wf8kdx35/psutil/
Complete output (41 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/psutil
copying psutil/__init__.py -> build/lib.linux-x86_64-3.8/psutil
copying psutil/_common.py -> build/lib.linux-x86_64-3.8/psutil
copying psutil/_compat.py -> build/lib.linux-x86_64-3.8/psutil
copying psutil/_psaix.py -> build/lib.linux-x86_64-3.8/psutil
copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.8/psutil
copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.8/psutil
copying psutil/_psosx.py -> build/lib.linux-x86_64-3.8/psutil
copying psutil/_psposix.py -> build/lib.linux-x86_64-3.8/psutil
copying psutil/_pssunos.py -> build/lib.linux-x86_64-3.8/psutil
copying psutil/_pswindows.py -> build/lib.linux-x86_64-3.8/psutil
creating build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/__init__.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/__main__.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/runner.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3.8/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3.8/psutil/tests
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/psutil
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -I/opt/rh/rh-python38/root/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -I/opt/rh/rh-python38/root/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=565 -DPSUTIL_LINUX=1 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -I/opt/rh/rh-python38/root/usr/include/python3.8 -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.8/psutil/_psutil_common.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of psutil
Moving to /opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/psutil-5.8.0.dist-info/
from /opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/~sutil-5.8.0.dist-info
Moving to /opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/psutil/
from /opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/~sutil
ERROR: Command errored out with exit status 1: /opt/rh/rh-python38/root/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wf8kdx35/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wf8kdx35/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-l830zfc6/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.