Looks like setuptools >=41.4.0 don't work with ansible-lint
(venv) [ramishra@ramishra-laptop tripleo-common]$ tox -elinters
/usr/lib/python3.8/site-packages/tox/config/__init__.py:592: UserWarning: conflicting basepython version (set 3.8, should be 3.7) for env 'py37';resolve conflict or set ignore_basepython_conflict
warnings.warn(
linters installed: cfgv==3.1.0,identify==1.4.15,nodeenv==1.3.5,pre-commit==2.4.0,PyYAML==5.3.1,toml==0.10.0,virtualenv==16.3.0
linters run-test-pre: PYTHONHASHSEED='4233023659'
linters run-test: commands[0] | python -m pre_commit run -a
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.git.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/ansible/ansible-lint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/home/ramishra/.cache/pre-commit/repol54w0h4h/py_env-python3.8/bin/python', '-mpip', 'install', '.')
return code: 1
expected return code: 0
stdout:
Processing /home/ramishra/.cache/pre-commit/repol54w0h4h
stderr:
ERROR: Command errored out with exit status 1:
command: /home/ramishra/.cache/pre-commit/repol54w0h4h/py_env-python3.8/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/ramishra/.cache/pre-commit/repol54w0h4h/setup.py'"'"'; __file__='"'"'/home/ramishra/.cache/pre-commit/repol54w0h4h/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ncxxcbrf
cwd: /home/ramishra/.cache/pre-commit/repol54w0h4h/
Complete output (21 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ramishra/.cache/pre-commit/repol54w0h4h/setup.py", line 150, in <module>
__name__ == '__main__' and setuptools.setup(**setup_params)
File "/home/ramishra/.cache/pre-commit/repol54w0h4h/py_env-python3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib64/python3.8/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/home/ramishra/.cache/pre-commit/repol54w0h4h/py_env-python3.8/lib/python3.8/site-packages/setuptools/dist.py", line 425, in __init__
_Distribution.__init__(self, {
File "/usr/lib64/python3.8/distutils/dist.py", line 292, in __init__
self.finalize_options()
File "/home/ramishra/.cache/pre-commit/repol54w0h4h/py_env-python3.8/lib/python3.8/site-packages/setuptools/dist.py", line 717, in finalize_options
ep(self)
File "/home/ramishra/.cache/pre-commit/repol54w0h4h/py_env-python3.8/lib/python3.8/site-packages/setuptools/dist.py", line 724, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "/home/ramishra/.cache/pre-commit/repol54w0h4h/py_env-python3.8/lib/python3.8/site-packages/setuptools/dist.py", line 289, in check_specifier
packaging.specifiers.SpecifierSet(value)
File "/home/ramishra/.cache/pre-commit/repol54w0h4h/py_env-python3.8/lib/python3.8/site-packages/setuptools/_vendor/packaging/specifiers.py", line 572, in __init__
specifiers = [s.strip() for s in specifiers.split(",") if s.strip()]
AttributeError: 'SpecifierSet' object has no attribute 'split'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
https:/ /4174da04cbb6f5 5da857- a1a707476f971a2 f2841005686fb7e ad.ssl. cf5.rackcdn. com/726975/ 1/check/ openstack- tox-linters/ ded18c1/ job-output. txt