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.

--no-cache-dir causes AssertionError in wheel.py

See original GitHub issue

Environment

  • pip version: 19.0
  • Python version: 3.5
  • OS: Ubuntu 16.04

This issue is caused while building a Dockerfile

Description

A Dockerfile that previously built many times successfully stopped working. I looked into the issue, and pip installing with–no-cache-dir began causing an AssertionError in wheel.py.

Expected behavior No error

How to Reproduce Inside Dockerfile, building with the line: RUN pip install -U --no-cache-dir numpy scipy sklearn pandas Pillow h5py tensorflow-serving-api==1.12.0 boto3 tqdm scikit-image

Output

Exception: Traceback (most recent call last): File “/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/base_command.py”, line 176, in main status = self.run(options, args) File “/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/install.py”, line 346, in run session=session, autobuilding=True File “/usr/local/lib/python3.5/dist-packages/pip/_internal/wheel.py”, line 848, in build assert building_is_possible AssertionError

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
coderangercommented, Jan 23, 2019

It isn’t a duplicate of 6166, 6166 does not include the same argument.

1reaction
matthewfeickertcommented, Jan 23, 2019

This looks like a duplicate of Issue #6158. @austinmw it would be good to have you join the discussion there as well.

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 ...
The underlying cause for this error appears to be a bug in the version of ... AssertionError when installing with --no-cache-dir (19.0.1).
Read more >
How to reset the Python tool - Alteryx Community
From version 2020.3 onwards, you will need to reinstall Alteryx Designer as the packages wheel files are no longer included in Alteryx installed ......
Read more >
Changelog - pip documentation v22.3.1
Deprecate installation with 'setup.py install' when the 'wheel' package is ... --no-cache-dir would fail in some circumstances with an AssertionError due to ...
Read more >
note: this error originates from a subprocess, and is likely not a ...
ERROR: Failed building wheel for sentencepiece Running setup.py clean for ... It looks like the problem is caused by the clang compiler, which...
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