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.

have_directory_for_build AssertionError when installing with --no-cache-dir (19.0.1)

See original GitHub issue
  • pip version: 19.0.1

With the 19.0.1 release, some people are still reporting an AssertionError when installing with --no-cache-dir similar to the one in #6158. This issue is for the 19.0.1-specific issue as it is narrower in scope.

Here are details for a couple reports: https://github.com/pypa/pip/issues/6158#issuecomment-456882072 and https://github.com/pypa/pip/issues/6158#issuecomment-456949839

The traceback looks like this:

Exception:
Traceback (most recent call last):
  File "/mnt/jenkins/workspace/venv/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
    status = self.run(options, args)
  File "/mnt/jenkins/workspace/venv/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 346, in run
    session=session, autobuilding=True
  File "/mnt/jenkins/workspace/venv/local/lib/python2.7/site-packages/pip/_internal/wheel.py", line 886, in build
    assert have_directory_for_build
AssertionError

Some work-arounds (feel free to add to the list):

  • Use pip version 18.1.
  • Pass --no-use-pep517 in your invocation.
  • See issue #6158 for some other possibilities.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:26
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

7reactions
pradyunsgcommented, Feb 9, 2019

pip 19.0.2 has been released with a fix for this.

5reactions
eliasbrangecommented, Jan 25, 2019

Easily reproducable in docker:

# Same for 3.5.6, 3.6.8, etc.
FROM python:3.7.2-alpine

RUN pip3 install -U pip

RUN pip3 install --no-cache-dir pendulum
Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to update OctoPrint on OctoPi 0.16 gives me an ...
You should consider upgrading via the 'pip install --upgrade pip' command. ... AssertionError when installing with --no-cache-dir (19.0.1).
Read more >
What is pip's `--no-cache-dir` good for? - Stack Overflow
Cached is: store away in hiding or for future use; Used for. store the installation files( .whl , etc) of the modules that...
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