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.

'wheel' not detected when building wheel for legacy setup.py project

See original GitHub issue

Description

Context including links to CI job logs: https://github.com/dependabot/dependabot-core/issues/5478

The pipfile package doesn’t publish a wheel: https://pypi.org/project/pipfile/#files

However, when installing the package, I got the following error message:

Using legacy 'setup.py install' for pipfile, since package 'wheel' is not installed.

This implies that I need to install the wheel package, which is extremely confusing, because I had installed wheel, and other packages were successfully installing wheel.

It took some digging before I realized the problem was that the target package had never published their wheel.

Expected behavior

Please reword the error message to make it clear that the problem is the target package hasn’t published a wheel… maybe:

Using legacy 'setup.py install' for pipfile, since pipfile has not published a wheel.

pip version

22.0.4

Python version

3.10.5

OS

Ubuntu 20.04

How to Reproduce

pip install pipfile

Output

No response

Code of Conduct

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pradyunsgcommented, Aug 29, 2022

That’s a valid solution as well, yes.

That might interact weirdly with certain redistributions of Python, such as the one that Debian ships (but IIUC, dependabot doesn’t use the Debian-provided Python, so it should be fine). +

1reaction
uranusjrcommented, Aug 9, 2022

The main misunderstanding here was that wheel is not for installing wheels, but for building wheels. So if a project starts publishing wheels, pip can install those directly without needing to build anything, so yes, you wouldn’t see the message in that case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not build wheels since package wheel is not installed
You need to install the wheel package, like this: pip install wheel.
Read more >
How to install, download and build Python wheels - ActiveState
Python Install Wheel. Open source Python packages can be installed from Source Distributions (sdist) or Wheels (whl). According to the Python ...
Read more >
building wheel for numpy (pyproject.toml) ... error - You.com
i got this problem when trying to install numpy on my MAC. anyone can help me?! I tried to find many ways but...
Read more >
wheel Documentation - Read the Docs
A setuptools extension for building wheels that provides the bdist_wheel setuptools command. 2. A command line tool for working with wheel ...
Read more >
Tips and tricks - cibuildwheel - Read the Docs
cibuildwheel defines the environment variable CIBUILDWHEEL to the value 1 allowing projects for which the C extension is optional to make it mandatory...
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