Skip to content

Instantly share code, notes, and snippets.

@blaggacao
Created October 11, 2018 23:23
Show Gist options
  • Save blaggacao/8b9285898486f1d348ec1ae3a0533c17 to your computer and use it in GitHub Desktop.
Save blaggacao/8b9285898486f1d348ec1ae3a0533c17 to your computer and use it in GitHub Desktop.
pre-commit error
$ pre-commit run --all-files
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/asottile/pyupgrade.
[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...
Trim Trailing Whitespace.................................................Failed
hookid: trailing-whitespace
Traceback (most recent call last):
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/bin/trailing-whitespace-fixer", line 6, in <module>
from pkg_resources import load_entry_point
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3088, in <module>
@_call_aside
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 576, in _build_master
return cls._build_from_requirements(__requires__)
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 589, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycodestyle<2.4.0,>=2.0.0' distribution was not found and is required by flake8
Fix End of Files.........................................................Failed
hookid: end-of-file-fixer
Traceback (most recent call last):
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/bin/end-of-file-fixer", line 6, in <module>
from pkg_resources import load_entry_point
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3088, in <module>
@_call_aside
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 576, in _build_master
return cls._build_from_requirements(__requires__)
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 589, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycodestyle<2.4.0,>=2.0.0' distribution was not found and is required by flake8
Check Yaml...............................................................Failed
hookid: check-yaml
Traceback (most recent call last):
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/bin/check-yaml", line 6, in <module>
from pkg_resources import load_entry_point
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3088, in <module>
@_call_aside
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 576, in _build_master
return cls._build_from_requirements(__requires__)
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 589, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycodestyle<2.4.0,>=2.0.0' distribution was not found and is required by flake8
Debug Statements (Python)................................................Failed
hookid: debug-statements
Traceback (most recent call last):
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/bin/debug-statement-hook", line 6, in <module>
from pkg_resources import load_entry_point
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3088, in <module>
@_call_aside
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 576, in _build_master
return cls._build_from_requirements(__requires__)
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 589, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/home/blaggacao/.cache/pre-commit/repofZfrt7/py_env-python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycodestyle<2.4.0,>=2.0.0' distribution was not found and is required by flake8
pyupgrade................................................................Passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment