Open defei-coder opened 2 years ago
Hi, thanks for your feedback. What is the patch version of your python? My python is 3.6.13 and it works.
I have the same issue with python==3.6.8 and pip -V ==20.3.4. with trusted-host=pypi.tuna.tsinghua.edu.cn index-url=https://pypi.tuna.tsinghua.edu.cn/simple
The version of python noted in README is 3.6+. My python version is python3.6. After executing the following commands:pip install -U pre-commit and pre-commit install, I excute git commit, some errors have occurred: [INFO] Initializing environment for https://github.com/PyCQA/flake8. [INFO] Initializing environment for https://github.com/PyCQA/isort. [INFO] Initializing environment for https://github.com/pre-commit/mirrors-yapf. [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Initializing environment for https://github.com/codespell-project/codespell. [INFO] Initializing environment for https://github.com/executablebooks/mdformat. [INFO] Initializing environment for https://github.com/executablebooks/mdformat:linkify-it-py,mdformat-openmmlab,mdformat_frontmatter. [INFO] Initializing environment for https://github.com/myint/docformatter. [INFO] Initializing environment for https://github.com/asottile/pyupgrade. [INFO] Initializing environment for https://github.com/open-mmlab/pre-commit-hooks. [INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy. [INFO] Installing environment for https://github.com/PyCQA/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/PyCQA/isort. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/pre-commit/mirrors-yapf. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [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://github.com/codespell-project/codespell. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/executablebooks/mdformat. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... An unexpected error has occurred: CalledProcessError: command: ('/root/.cache/pre-commit/repor1xlg47j/py_env-python3/bin/python', '-mpip', 'install', '.', 'mdformat-openmmlab', 'mdformat_frontmatter', 'linkify-it-py') return code: 1 expected return code: 0 stdout: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/, http://mirrors.cambricon.com/pypi/web/simple/, https://mirrors.aliyun.com/pypi/simple/ Processing /root/.cache/pre-commit/repor1xlg47j Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done'
stderr: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fced11fe240>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/mdformat-openmmlab/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fced11fe5c0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/mdformat-openmmlab/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fced11fe7f0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/mdformat-openmmlab/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fced11fea20>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/mdformat-openmmlab/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fced11fec50>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/mdformat-openmmlab/ ERROR: Could not find a version that satisfies the requirement mdformat-openmmlab (from versions: none) ERROR: No matching distribution found for mdformat-openmmlab I changed the python3.7, it will work. According to https://github.com/open-mmlab/mmcv/issues/2028, mdformat version has supported python3.6.