assertion when using --no-cache-dir in 19.0
See original GitHub issueEnvironment
- pip version: 19.0
- Python version: 3.6.7
- OS: Linux 50de819ca3ba 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 GNU/Linux
Running in a dockerfile.
Description
The following command works with pip 18.1 and fails with 19.0.
pip3 install --no-cache-dir --upgrade -r requirements.txt
With 19.0, it fails with the following exception:
Exception:
Traceback (most recent call last):
File "/Users/scotts/.virtualenvs/python3/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 176, in main
status = self.run(options, args)
File "/Users/scotts/.virtualenvs/python3/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 346, in run
session=session, autobuilding=True
File "/Users/scotts/.virtualenvs/python3/lib/python3.6/site-packages/pip/_internal/wheel.py", line 848, in build
assert building_is_possible
AssertionError
Removing the --no-cache-dir
flag causes the install to succeed.
requirements.txt
Issue Analytics
- State:
- Created 5 years ago
- Reactions:84
- Comments:56 (18 by maintainers)
Top Results From Across the Web
Assertion Error during Pip installation - python - Stack Overflow
I had assertion errors during an pip install. I was using a --no-cache-dir . python 3.6.7, pip 19. removing the --no-cache-dir flag fixed...
Read more >Trying to update OctoPrint on OctoPi 0.16 gives me an ...
You are using pip version 19.0.1, however version 19.3.1 is available. ... AssertionError when installing with --no-cache-dir (19.0.1).
Read more >The purpose of pip's `--no-cache-dir` option | bobbyhadz
Pip caches: HTTP responses - pip first checks its local cache to determine if it has a suitable response stored locally that hasn't...
Read more >sstc-saml-bindings-errata-2.0-wd-06-diff.pdf - OASIS Open
The SAML V2.0 Bindings specification defines protocol bindings for the use of SAML assertions and request-response messages in communications protocols and ...
Read more >19 Configuring Identity Assertion Providers - Oracle Help Center
If you are using perimeter authentication, you need to use an Identity Assertion provider ... Configuring Identity Assertion Performance in the Server Cache....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
pip 19.0.1 is out with the fix for this issue.
Seems like the pip maintainers should rollback the recent 19 release to address this breaking change? 19.0 release notes: https://github.com/pypa/pip/blob/master/NEWS.rst#190-2019-01-22
UPDATE: not trying to cast aspersions here, was just suggesting as one way to quickly unblock people affected by this seeing as the release had just happened. Rolling forward with a hotfix works too. I appreciate the hard work of the community that supports this mission critical tooling, and agree with the sentiments below about postmortems to learn from mistakes and prevent future issues. Meanwhile, we are doing the same internally, which means a liberal amount of hardpinning
pip
versions in all the places 😃