Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--quiet suppression of progress bar not honored when specifying custom log location with --log /path/to/log.log #10915

Open
1 task done
ghost opened this issue Feb 18, 2022 · 2 comments · May be fixed by #10930
Open
1 task done
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@ghost
Copy link

ghost commented Feb 18, 2022

Description

when executing pip using both --quiet and --log, the progress bar is shown.

primarily using python 3.8 with pip version 21.1.1 on linux, however tested to see the same behavior with python 3.10 & pip 21.3.1 on windows. commands executed:

linux (python 3.8, pip 21.1.1): python3.8 -m pip install --quiet --no-cache-dir --no-deps --log ./test.log --target ./test numpy
windows (python 3.10, pip 21.3.1): python -m pip install --quiet --no-cache-dir --no-deps --log ./test.log --target ./test numpy

in this case, we're automatically creating necessary archives for lambda layers so we don't want any additional noise except errors, etc, which we're already capturing.

Expected behavior

expected behavior: completely silent output including no progress bar.

pip version

21.1.1

Python version

3.8

OS

linux

How to Reproduce

run python -m pip install --quiet --no-cache-dir --no-deps --log ./test.log --target ./test numpy to see progress bar

run python -m pip install --quiet --no-cache-dir --no-deps --target ./test numpy to see silent operation

Output

python3.8 -m pip install --quiet --no-cache-dir --no-deps --log ./test.log --target ./test numpy
     |████████████████████████████████| 16.8 MB 2.5 MB/s

python3.8 -m pip install --quiet --no-cache-dir --no-deps --target ./test numpy

Code of Conduct

@ghost ghost added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Feb 18, 2022
@pradyunsg
Copy link
Member

pradyunsg commented Feb 19, 2022

What's the behaviour with 22.0.3?

@ghost
Copy link
Author

ghost commented Feb 20, 2022

same behavior on pip 22.0.3:

bwhitehead0@xxxxx> python3.8 -m pip install --quiet --no-cache-dir --no-deps --log ./test.log --target ./test numpy
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.8/16.8 MB 18.2 MB/s eta 0:00:00
bwhitehead0@xxxxx> python3.8 -m pip --version
pip 22.0.3 from /home/bwhitehead0/.local/lib/python3.8/site-packages/pip (python 3.8)

@q0w q0w linked a pull request Mar 1, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant