Skip to content

main branch does not provide traceback #10086

@dHannasch

Description

@dHannasch

Description

When running the version of pip on the latest main (4704da4), pip install --verbose does not report a traceback as pip 21.1.2 does.

I have not been able to figure out which of the latest changes might have caused this. None of the latest PRs seem to touch anything obviously related.

(Incidentally, I don't...think it's intentional? If it is intentional, that seems like a very bad direction to move on purpose, since it would strand people stuck at a dead end with no path to proceed.)

Expected behavior

main to report a traceback as pip 21.1.2 does.

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 180, in _main
    status = self.run(options, args)
  File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 204, in wrapper
    return func(self, options, args)
  File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 318, in run
    requirement_set = resolver.resolve(
  File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 103, in resolve
    r = self.factory.make_requirement_from_install_req(
  File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 428, in make_requirement_from_install_req
    self._fail_if_link_is_unsupported_wheel(ireq.link)
  File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 137, in _fail_if_link_is_unsupported_wheel
    raise UnsupportedWheel(msg)
pip._internal.exceptions.UnsupportedWheel: rpy2-3.4.5-cp39-cp39-musllinux_1_2_x86_64.whl is not a supported wheel on this platform.

pip version

main

Python version

3.9.4

OS

alpine:edge

How to Reproduce

  1. Get any platform-unsupported wheel file, such as the attached rpy2-3.4.5-cp39-cp39-musllinux_1_2_x86_64.whl.zip (also available from https://gitlab.com/dHannasch/alpine-wheel/-/jobs/1361954404).
  2. On the pip main branch and on pip 21.1.2, run pip install --verbose https://github.com/pypa/pip/files/6683097/rpy2-3.4.5-cp39-cp39-musllinux_1_2_x86_64.whl (or with any other UnsupportedWheel).
  3. pip 21.1.2 gives a traceback but the pip main branch does not.

Output

`ERROR: rpy2-3.4.5-cp39-cp39-musllinux_1_2_x86_64.whl is not a supported wheel on this platform.`
(no traceback)

You can also see https://gitlab.com/pythonpackagesalpine/nbconvert-alpine/-/jobs/1361938509 for an example in the wild.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions