pip-tools is not compatible with pip >= 10.0.0

Created on 4 Apr 2018  路  9Comments  路  Source: jazzband/pip-tools

pip-tools is not compatible with pip >= 10.0.0

Environment Versions
  1. OS Type: Linux/Ubuntu
  2. Python version: Python 2.7.12
  3. pip version: $ pip 10.0.0b2
  4. pip-tools version: $ pip-compile, version 1.11.0
Steps to replicate
  1. . /usr/share/virtualenvwrapper/virtualenvwrapper.sh
  2. mkvirtualenv -p /usr/bin/python2 test-pip-tools 3. (test-pip-tools) pip install -U pip ``
  3. (test-pip-tools) pip install pip-tools
  4. echo Flask > requirements.in
  5. (test-pip-tools) pip-compile requirements.in
Expected result

six python package is installed

Actual result
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
Workaround
  1. (test-pip-tools) pip install -U pip==9.0.3

Most helpful comment

pip-tools 2.0.1 is out, everything should be working even with pip 10.0.0.

All 9 comments

pip/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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sirex picture sirex  路  4Comments

dazza-codes picture dazza-codes  路  3Comments

nicoa picture nicoa  路  3Comments

blampe picture blampe  路  4Comments

touilleMan picture touilleMan  路  4Comments