# Esrally error executing./esrally configure command

**URL:** <https://discuss.elastic.co/t/esrally-error-executing-esrally-configure-command/274894>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [June 3, 2021, 2:52pm UTC](https://discuss.elastic.co/t/esrally-error-executing-esrally-configure-command/274894 "2021-06-03T14:52:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuliugang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liuliugang/32/89053_2.png) [@liuliugang](https://discuss.elastic.co/u/liuliugang)\
**Post date:** [June 3, 2021, 2:52pm UTC](https://discuss.elastic.co/t/esrally-error-executing-esrally-configure-command/274894/1 "2021-06-03T14:52:57Z")

</div>

Please give advice or comments,thanks

[root@xm-ls001 bin]# ./esrally configure  
Traceback (most recent call last):  
File "./esrally", line 7, in   
from esrally.rally import main  
File "/usr/local/python3.7/lib/python3.7/site-packages/esrally/ **init**.py", line 24, in   
**version** = pkg\_resources.require("esrally")[0].version  
File "/usr/local/python3.7/lib/python3.7/site-packages/pkg\_resources/ **init**.py", line 892, in require  
needed = self.resolve(parse\_requirements(requirements))  
File "/usr/local/python3.7/lib/python3.7/site-packages/pkg\_resources/ **init**.py", line 783, in resolve  
raise VersionConflict(dist, req).with\_context(dependent\_req)  
pkg\_resources.ContextualVersionConflict: (urllib3 1.26.5 (/usr/local/python3.7/lib/python3.7/site-packages), Requirement.parse('urllib3\<1.26,\>=1.20; python\_version \>= "3.4"'), {'botocore'})

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [June 3, 2021, 6:43pm UTC](https://discuss.elastic.co/t/esrally-error-executing-esrally-configure-command/274894/2 "2021-06-03T18:43:41Z")

</div>

Hi!

Thanks for using Rally 🙂  
I personally recommend using a virtual environment to install rally so that the dependencies it comes with don't conflict with anything else you may have: [Installation — Rally 2.2.0 documentation](https://esrally.readthedocs.io/en/stable/install.html#virtualenv-install)

Also, note that the `configure` sub-command [has been removed](https://esrally.readthedocs.io/en/stable/migrate.html#configure-subcommand-is-dropped) in Rally 2.0.3, and you should be composing rally.ini per the documentation [here](https://esrally.readthedocs.io/en/stable/configuration.html) if you are using a recent version.

Hope that helps,  
Rick B

---

<div class="post-metadata">

**Author:** ![liuliugang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liuliugang/32/89053_2.png) [@liuliugang](https://discuss.elastic.co/u/liuliugang)\
**Post date:** [June 4, 2021, 3:38am UTC](https://discuss.elastic.co/t/esrally-error-executing-esrally-configure-command/274894/3 "2021-06-04T03:38:16Z")

</div>

Thank you, I tried to install with virtual environment, but not yet

WARNING: Discarding [https://files.pythonhosted.org/packages/0c/6b/d0842547d79e116892910c3bb145979df19c0e1ebce2a397c93b62377a5a/py-cpuinfo-0.2.3.zip#sha256=1c564c616350639400443b44772263b82e6133bb3c7c75f8bea06bbad71e965c](https://files.pythonhosted.org/packages/0c/6b/d0842547d79e116892910c3bb145979df19c0e1ebce2a397c93b62377a5a/py-cpuinfo-0.2.3.zip#sha256=1c564c616350639400443b44772263b82e6133bb3c7c75f8bea06bbad71e965c) (from [Links for py-cpuinfo](https://pypi.org/simple/py-cpuinfo/)). Command errored out with exit status 1: python setup.py egg\_info Check the logs for full command output.  
Using cached py-cpuinfo-0.2.3.tar.gz (21 kB)  
ERROR: Command errored out with exit status 1:  
command: /usr/local/python3/bin/.venv/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j3he\_33o/py-cpuinfo\_fc566acfdb9e456c920e204678318938/setup.py'"'"'; **file** ='"'"'/tmp/pip-install-j3he\_33o/py-cpuinfo\_fc566acfdb9e456c920e204678318938/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)( **file** ) if os.path.exists( **file** ) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, **file** , '"'"'exec'"'"'))' egg\_info --egg-base /tmp/pip-pip-egg-info-ig2856p3  
cwd: /tmp/pip-install-j3he\_33o/py-cpuinfo\_fc566acfdb9e456c920e204678318938/  
Complete output (11 lines):  
Traceback (most recent call last):  
File "", line 1, in   
File "/usr/local/python3/bin/.venv/lib/python3.8/site-packages/setuptools/ **init**.py", line 20, in   
from setuptools.dist import Distribution, Feature  
File "/usr/local/python3/bin/.venv/lib/python3.8/site-packages/setuptools/dist.py", line 35, in   
from setuptools import windows\_support  
File "/usr/local/python3/bin/.venv/lib/python3.8/site-packages/setuptools/windows\_support.py", line 2, in   
import ctypes  
File "/usr/local/python3/lib/python3.8/ctypes/ **init**.py", line 7, in   
from \_ctypes import Union, Structure, Array  
ModuleNotFoundError: No module named '\_ctypes'  
----------------------------------------  
WARNING: Discarding [https://files.pythonhosted.org/packages/84/84/0a736376cedd59f9c6ca931debfbce75c6e5f8c90399d40bdc73a76107f7/py-cpuinfo-0.2.3.tar.gz#sha256=f6a016fdbc4e7fadf2d519090fcb4fa9d0831bad4e85245d938e5c2fe7623ca6](https://files.pythonhosted.org/packages/84/84/0a736376cedd59f9c6ca931debfbce75c6e5f8c90399d40bdc73a76107f7/py-cpuinfo-0.2.3.tar.gz#sha256=f6a016fdbc4e7fadf2d519090fcb4fa9d0831bad4e85245d938e5c2fe7623ca6) (from [Links for py-cpuinfo](https://pypi.org/simple/py-cpuinfo/)). Command errored out with exit status 1: python setup.py egg\_info Check the logs for full command output.  
ERROR: Cannot install esrally==0.10.0, esrally==0.10.1, esrally==0.11.0, esrally==0.2.0, esrally==0.2.1, esrally==0.3.0, esrally==0.3.1, esrally==0.3.2, esrally==0.3.3, esrally==0.4.0, esrally==0.4.1, esrally==0.4.2, esrally==0.4.3, esrally==0.4.4, esrally==0.4.5, esrally==0.4.6, esrally==0.4.7, esrally==0.4.8, esrally==0.5.0, esrally==0.5.1, esrally==0.5.2, esrally==0.5.3, esrally==0.6.0, esrally==0.6.1, esrally==0.6.2, esrally==0.7.0, esrally==0.7.1, esrally==0.7.2, esrally==0.7.3, esrally==0.7.4, esrally==0.8.0, esrally==0.8.1, esrally==0.9.0, esrally==0.9.1, esrally==0.9.2, esrally==0.9.3, esrally==0.9.4, esrally==1.0.0, esrally==1.0.1, esrally==1.0.2, esrally==1.0.3, esrally==1.0.4, esrally==1.1.0, esrally==1.2.1, esrally==1.3.0, esrally==1.4.0, esrally==1.4.1, esrally==2.0.0, esrally==2.0.1, esrally==2.0.2, esrally==2.0.3, esrally==2.0.4, esrally==2.1.0 and esrally==2.2.0 because these package versions have conflicting dependencies.

To fix this you could try to:

1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit [User Guide - pip documentation v21.2.dev0](https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 2, 2021, 3:38am UTC](https://discuss.elastic.co/t/esrally-error-executing-esrally-configure-command/274894/4 "2021-07-02T03:38:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
