Skip to content

"pip is looking at multiple versions of {package_name}" INFOs obscure actual error #11570

@vanschelven

Description

@vanschelven

Description

When package resolution is "hard", many of the following messages may be spammed to the logs:

INFO pip is looking at multiple instances of the following message are spammed to the output {package_name} determine which version is compatible with other requirements. This could take a while.

The problem is that these messages keep getting spammed, even after an actual ERROR occurs

INFO: pip is looking at multiple versions of pandas to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of djangorestframework-datatables to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement pillow>=9.0.0 (from reportlab) (from versions: none)
INFO: pip is looking at multiple versions of requests to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of cfenv to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of sqlparse to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of asgiref to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of whitenoise to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pytz to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django to determine which version is compatible with other requirements. This could take a while.

The actual error is especially hard to spot when pip isn't run from a terminal, but as part of some CI/CD tool (no coloring)

Expected behavior

I'd expect the ERROR to be the final message, so that I'll see it immediately when reading bottom-to-top (which is the usual order when debugging)

pip version

22.0.4

Python version

3.9

OS

any

How to Reproduce

I haven't been able to cleanly reproduce this yet

Output

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: needs triageIssues/PRs that need to be triagedtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions