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.

assertion when using --no-cache-dir in 19.0

See original GitHub issue

Environment

  • 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:closed
  • Created 5 years ago
  • Reactions:84
  • Comments:56 (18 by maintainers)

github_iconTop GitHub Comments

51reactions
pradyunsgcommented, Jan 23, 2019

pip 19.0.1 is out with the fix for this issue.

22reactions
burkestarcommented, Jan 23, 2019

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 😃

Read more comments on GitHub >

github_iconTop 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 >

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