Skip to content

Instantly share code, notes, and snippets.

@ssbarnea
Created December 8, 2021 18:57
Show Gist options
  • Save ssbarnea/7eb2869ee8517c467de0410a172a66d2 to your computer and use it in GitHub Desktop.
Save ssbarnea/7eb2869ee8517c467de0410a172a66d2 to your computer and use it in GitHub Desktop.
lint run-test: commands[0] | /Users/ssbarnea/c/a/ansible-navigator/.tox/lint/bin/python -m pre_commit run --show-diff-on-failure --hook-stage manual --all-files -v
[INFO] Initializing environment for https://github.com/PyCQA/flake8.git:flake8-2020 >= 1.6.0,flake8-docstrings >= 1.5.0,flake8-pytest-style >= 1.2.2.
[INFO] Initializing environment for https://github.com/PyCQA/flake8.git:flake8-2020 >= 1.6.0,flake8-docstrings >= 1.5.0,flake8-pytest-style >= 1.2.2,wemake-python-styleguide ~= 0.15.0.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy.git:lxml == 4.6.4,types-PyYAML,types-docutils.
[INFO] Installing environment for https://github.com/asottile/add-trailing-comma.git.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/timothycrosley/isort.git.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks.git.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/igorshubovych/markdownlint-cli.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.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/PyCQA/flake8.git.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/Users/ssbarnea/.cache/pre-commit/repo3acnh2bv/py_env-python3/bin/python', '-mpip', 'install', '.', 'flake8-2020 >= 1.6.0', 'flake8-docstrings >= 1.5.0', 'flake8-pytest-style >= 1.2.2', 'wemake-python-styleguide ~= 0.15.0')
return code: 1
expected return code: 0
stdout:
Processing /Users/ssbarnea/.cache/pre-commit/repo3acnh2bv
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting flake8-2020>=1.6.0
Using cached flake8_2020-1.6.1-py2.py3-none-any.whl (5.1 kB)
Collecting flake8-docstrings>=1.5.0
Using cached flake8_docstrings-1.6.0-py2.py3-none-any.whl (5.7 kB)
Collecting flake8-pytest-style>=1.2.2
Using cached flake8_pytest_style-1.5.1-py3-none-any.whl (18 kB)
Collecting wemake-python-styleguide~=0.15.0
Using cached wemake_python_styleguide-0.15.3-py3-none-any.whl (213 kB)
Collecting mccabe<0.7.0,>=0.6.0
Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting pycodestyle<2.9.0,>=2.8.0
Using cached pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB)
Collecting pyflakes<2.5.0,>=2.4.0
Using cached pyflakes-2.4.0-py2.py3-none-any.whl (69 kB)
Collecting pydocstyle>=2.1
Using cached pydocstyle-6.1.1-py3-none-any.whl (37 kB)
Collecting flake8-plugin-utils<2.0.0,>=1.3.2
Using cached flake8_plugin_utils-1.3.2-py3-none-any.whl (9.4 kB)
Collecting flake8-isort<5.0,>=4.0
Using cached flake8_isort-4.1.1-py3-none-any.whl (14 kB)
Collecting flake8-eradicate<2.0,>=1.0
Using cached flake8_eradicate-1.2.0-py3-none-any.whl (5.1 kB)
Collecting attrs
Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Collecting typing_extensions<4.0,>=3.6
Using cached typing_extensions-3.10.0.2-py3-none-any.whl (26 kB)
Collecting flake8-bugbear<22.0,>=20.1
Using cached flake8_bugbear-21.11.29-py36.py37.py38-none-any.whl (17 kB)
Collecting flake8-debugger<5.0,>=4.0
Using cached flake8_debugger-4.0.0-py3-none-any.whl (5.0 kB)
Collecting darglint<2.0,>=1.2
Using cached darglint-1.8.1-py3-none-any.whl (120 kB)
Collecting flake8-quotes<4.0,>=3.0
Using cached flake8_quotes-3.3.1-py3-none-any.whl
Collecting flake8-broken-line<0.4,>=0.3
Using cached flake8_broken_line-0.3.0-py3-none-any.whl (4.2 kB)
Collecting flake8-rst-docstrings<0.3.0,>=0.2.3
Using cached flake8_rst_docstrings-0.2.3-py3-none-any.whl (9.8 kB)
Collecting wemake-python-styleguide~=0.15.0
Downloading wemake_python_styleguide-0.15.2-py3-none-any.whl (213 kB)
Collecting flake8-bugbear<21.0,>=20.1
Using cached flake8_bugbear-20.11.1-py36.py37.py38-none-any.whl (16 kB)
Collecting flake8-rst-docstrings<0.0.15,>=0.0.14
Downloading flake8-rst-docstrings-0.0.14.tar.gz (22 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting wemake-python-styleguide~=0.15.0
Downloading wemake_python_styleguide-0.15.1-py3-none-any.whl (212 kB)
Downloading wemake_python_styleguide-0.15.0-py3-none-any.whl (208 kB)
INFO: pip is looking at multiple versions of flake8-pytest-style to determine which version is compatible with other requirements. This could take a while.
Collecting flake8-pytest-style>=1.2.2
Using cached flake8_pytest_style-1.5.0-py3-none-any.whl (18 kB)
INFO: pip is looking at multiple versions of flake8-docstrings to determine which version is compatible with other requirements. This could take a while.
Collecting flake8-docstrings>=1.5.0
Using cached flake8_docstrings-1.5.0-py2.py3-none-any.whl (5.5 kB)
INFO: pip is looking at multiple versions of flake8-2020 to determine which version is compatible with other requirements. This could take a while.
Collecting flake8-2020>=1.6.0
Using cached flake8_2020-1.6.0-py2.py3-none-any.whl (5.0 kB)
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of flake8 to determine which version is compatible with other requirements. This could take a while.
The conflict is caused by:
The user requested flake8 4.0.1 (from /Users/ssbarnea/.cache/pre-commit/repo3acnh2bv)
flake8-2020 1.6.0 depends on flake8>=3.7
flake8-docstrings 1.5.0 depends on flake8>=3
wemake-python-styleguide 0.15.3 depends on flake8<4.0 and >=3.7
The user requested flake8 4.0.1 (from /Users/ssbarnea/.cache/pre-commit/repo3acnh2bv)
flake8-2020 1.6.0 depends on flake8>=3.7
flake8-docstrings 1.5.0 depends on flake8>=3
wemake-python-styleguide 0.15.2 depends on flake8<4.0 and >=3.7
The user requested flake8 4.0.1 (from /Users/ssbarnea/.cache/pre-commit/repo3acnh2bv)
flake8-2020 1.6.0 depends on flake8>=3.7
flake8-docstrings 1.5.0 depends on flake8>=3
wemake-python-styleguide 0.15.1 depends on flake8<4.0 and >=3.7
The user requested flake8 4.0.1 (from /Users/ssbarnea/.cache/pre-commit/repo3acnh2bv)
flake8-2020 1.6.0 depends on flake8>=3.7
flake8-docstrings 1.5.0 depends on flake8>=3
wemake-python-styleguide 0.15.0 depends on flake8<4.0 and >=3.7
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
stderr:
ERROR: Cannot install flake8 4.0.1 (from /Users/ssbarnea/.cache/pre-commit/repo3acnh2bv), flake8-2020==1.6.0, flake8-docstrings==1.5.0, wemake-python-styleguide==0.15.0, wemake-python-styleguide==0.15.1, wemake-python-styleguide==0.15.2 and wemake-python-styleguide==0.15.3 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
Check the log at /Users/ssbarnea/.cache/pre-commit/pre-commit.log
ERROR: InvocationError for command /Users/ssbarnea/c/a/ansible-navigator/.tox/lint/bin/python -m pre_commit run --show-diff-on-failure --hook-stage manual --all-files -v (exited with code 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment