question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatible with pip 18.1

See original GitHub issue
$ pip-faster install astpretty
Traceback (most recent call last):
  File "/tmp/h/venv/bin/pip-faster", line 11, in <module>
    sys.exit(main())
  File "/tmp/h/venv/lib/python3.6/site-packages/pip_faster.py", line 465, in main
    with pipfaster_packagefinder():
  File "/tmp/h/venv/lib/python3.6/site-packages/pip_faster.py", line 448, in pipfaster_packagefinder
    from pip._internal import basecommand
ImportError: cannot import name 'basecommand'

$ pip install 'pip<18.1'
Collecting pip<18.1
  Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 18.1
    Uninstalling pip-18.1:
      Successfully uninstalled pip-18.1
Successfully installed pip-18.0

$ pip-faster install astpretty
Collecting astpretty
  slow: full search for unpinned requirement astpretty
  Downloading https://files.pythonhosted.org/packages/e3/61/16a1e2e2bf6270513d90695ad0d442a3521ab790562901288ef272fdc91a/astpretty-1.4.0-py2.py3-none-any.whl
Installing collected packages: astpretty
Successfully installed astpretty-1.4.0
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chriskuehlcommented, Oct 5, 2018

Just released 3.1.1 which should fix this?

0reactions
asottilecommented, Nov 12, 2018

Lucky for us pip had a good habbit on not breaking thinks

heh, the exact opposite seems to be true for venv-update 🙃

Can we do somethign to fix this in a way that would not require downgrading pip?

the way pip-faster works is by patching out parts of pip. It’s unfortunately fundamentally tied to the internals of pip.

The way out would be upstreaming the interesting bits:

  • install --prune: uninstall things which are no longer depended on (there’s prior art in npm, shouldn’t be too hard to convince pip, though the hard part is finding the right place to inject this feature)
  • “don’t consider the network if there are locally cached wheels and == is used” – we’ve tried to upstream this and were told no: https://github.com/pypa/pip/pull/2114 – it’s possible they’ll reconsider now that the internals are rearranged and less complicated. though I wouldn’t get my hopes up
  • verify that pip-faster’s checking is compatible with pip check (and/or that there’s a pip install --check)
Read more comments on GitHub >

github_iconTop Results From Across the Web

pip is giving conflict error while installing package
The solution seems to be to find any directories starting with - in your site-packages directory ( /Users/tejeshagrawal/Library/Python/3.7/lib/ ...
Read more >
pip 0.6.2 - PyPI
It is incompatible with some packages that customize distutils or setuptools in their setup.py files. Maybe it doesn't work on Windows.
Read more >
Bug#915636: python3-virtualenv: incompatible with python3-pip 18.1
Package: python3-virtualenv Version: 15.1.0+ds-1 Followup-For: Bug #915636 Dear Maintainer, find attached my NMU .debian.tar using the updated 16.1.0 ...
Read more >
Changelog - pip documentation v21.1.dev0
Fix error when an existing incompatibility is unable to be applied to a ... Requires-Python metadata to reject incompatible packages in --no-deps mode....
Read more >
1651317 – pip and pipenv are incompatible - Red Hat Bugzilla
pipenv -2018.11.26-1.fc29 python-pip-18.1-1.fc29 python-shellingham-1.2.7-1.fc29 has been submitted as an update to Fedora 29.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found