From 8ecea48af5b6d262f12150e7ede6e87191a7233c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 12 Dec 2019 12:43:04 +0800 Subject: [PATCH] docs: document the fix for incompatible pip-tools with newer pip Signed-off-by: Kefu Chai --- docs/INSTALL.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/INSTALL.rst b/docs/INSTALL.rst index 63c9369c67..2af50af8eb 100644 --- a/docs/INSTALL.rst +++ b/docs/INSTALL.rst @@ -70,3 +70,16 @@ and should work with teuthology. But if you want to bump up the versions of them please use the following command to update this file :: pip-compile -qo- | sed '/^-e / d' > requirements.txt + +Please upgrade pip-tool using following command :: + + pip install pip-tools --upgrade + +if the command above fails like:: + + Traceback (most recent call last): + File "/home/kchai/teuthology/virtualenv/bin/pip-compile", line 5, in + from piptools.scripts.compile import cli + File "/home/kchai/teuthology/virtualenv/local/lib/python2.7/site-packages/piptools/scripts/compile.py", line 11, in + from pip.req import InstallRequirement, parse_requirements + ImportError: No module named req -- 2.39.5