pip-tools is not compatible with pip >= 10.0.0
Linux/UbuntuPython 2.7.12$ pip 10.0.0b2$ pip-compile, version 1.11.0. /usr/share/virtualenvwrapper/virtualenvwrapper.shmkvirtualenv -p /usr/bin/python2 test-pip-tools
3. (test-pip-tools) pip install -U pip ``(test-pip-tools) pip install pip-toolsecho Flask > requirements.in(test-pip-tools) pip-compile requirements.insix python package is installed
Traceback (most recent call last):
File "/home/xxx/.virtualenvs/test-pip-tools/bin/pip-compile", line 7, in <module>
from piptools.scripts.compile import cli
File "/home/xxx/.virtualenvs/test-pip-tools/local/lib/python2.7/site-packages/piptools/scripts/compile.py", line 11, in <module>
from pip.req import InstallRequirement, parse_requirements
ImportError: No module named req
(test-pip-tools) pip install -U pip==9.0.3pip/req has been moved to _internal folder in pip>=10.0.0:
https://github.com/pypa/pip/tree/release/10.0.0/src/pip/_internal
Hi @cyrilleverrier, thanks for taking the time to report.
We've got that covered in https://github.com/jazzband/pip-tools/issues/580 and the solution is current merged in master, you can test it out if you want. It'll be released in pip-tools 2.0.0 soon鈩笍. I've got a few changes I'd like to get in first, but I don't intend to delay it too much.
(Keeping open for now, as I expect others to hit this.)
Thanks @vphilippon. Looking forward to testing it.
Is there an expected release date for 2.0?
I'm just trying to triage updating lots of projects to pin the pip version as all our builds have just started failing :(
I'm getting on it right away. Thanks for the notification
FYI 2.0.1 coming up shortly: There was missing package_data in there, which will make pip-compile fail with an error like:
IOError: Could not find a suitable TLS CA certificate bundle, invalid path: <path_to_virtualenv>\lib\site-packages\piptools\_vendored\pip\_vendor\certifi\cacert.pem
pip-tools 2.0.1 is out, everything should be working even with pip 10.0.0.
wow awesome! thats saved me a huge headache, really appreciated!
Most helpful comment
pip-tools 2.0.1 is out, everything should be working even with pip 10.0.0.