Installing environments fails: No matching distribution found for setuptools>=38.2.5
Each time I try to commit something, the following error appears:
Python version: 3.6.7
[INFO] Installing environment for https://github.com/ambv/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: Command: ('F:\\.cache\\pre-commit\\repo_d7sntw_\\py_env-python3.6\\Scripts\\pip.exe', 'install', '.')
Return code: 1
Expected return code: 0
Output:
Processing f:\.cache\pre-commit\repo_d7sntw_
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
Complete output from command f:\.cache\pre-commit\repo_d7sntw_\py_env-python3.6\scripts\python.exe -m pip install --ignore-installed --no-user --prefix C:\Users\bmar\AppData\Local\Temp\pip-build-env-jlhy83f_ --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=38.2.5 wheel:
Collecting setuptools>=38.2.5
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000173CCA64390>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000173CCA64278>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/setuptools/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000173CCA645C0>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000173CCA64208>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/setuptools/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000173CCA4E630>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/setuptools/
Could not find a version that satisfies the requirement setuptools>=38.2.5 (from versions: )
No matching distribution found for setuptools>=38.2.5
----------------------------------------
Errors:
Command "f:\.cache\pre-commit\repo_d7sntw_\py_env-python3.6\scripts\python.exe -m pip install --ignore-installed --no-user --prefix C:\Users\bmar\AppData\Local\Temp\pip-build-env-jlhy83f_ --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=38.2.5 wheel" failed with error code 1 in None
.pre-commit-config.yaml
repos:
- repo: https://github.com/ambv/black
rev: 18.9b0
hooks:
- id: black
language_version: python3.6
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.7 # pick a git hash / tag to point to
hooks:
- id: flake8
args: [--show-source, --statistics, --doctests]