Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip-tools is not compatible with pip >= 10.0.0 #648

Closed
cyrilleverrier opened this issue Apr 4, 2018 · 9 comments
Closed

pip-tools is not compatible with pip >= 10.0.0 #648

cyrilleverrier opened this issue Apr 4, 2018 · 9 comments

Comments

@cyrilleverrier
Copy link

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
@cyrilleverrier
Copy link
Author

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

@vphilippon
Copy link
Member

vphilippon commented Apr 4, 2018

Hi @cyrilleverrier, thanks for taking the time to report.

We've got that covered in #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.)

@cyrilleverrier
Copy link
Author

cyrilleverrier commented Apr 4, 2018

Thanks @vphilippon. Looking forward to testing it.

jamescooke added a commit to jamescooke/flake8-aaa that referenced this issue Apr 11, 2018
jaywink added a commit to jaywink/socialhome that referenced this issue Apr 14, 2018
@leonsmith
Copy link

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 :(

@vphilippon
Copy link
Member

I'm getting on it right away. Thanks for the notification

@vphilippon
Copy link
Member

@vphilippon
Copy link
Member

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

@vphilippon
Copy link
Member

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

@leonsmith
Copy link

wow awesome! thats saved me a huge headache, really appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants