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

No output from pipx upgrade-all when no packages have upgrades #1565

Open
ezio-melotti opened this issue Oct 29, 2024 · 2 comments
Open

No output from pipx upgrade-all when no packages have upgrades #1565

ezio-melotti opened this issue Oct 29, 2024 · 2 comments

Comments

@ezio-melotti
Copy link

Describe the bug

Before (in 1.4.x?), pipx upgrade-all used to print a message that said No packages upgraded after running 'pipx upgrade-all'. After upgrading to 1.6.0 the message is gone, and upgrade-all produces no output (there is some output while it tries to upgrade the installed packages, but no output remains after the command is executed).

I'm not sure if this was an intentional change or a bug. The code was recently changed in c9d31a6 (#1357 by @huxuan) and the message is still there:

if len(upgraded) == 0:
print(f"No packages upgraded after running 'pipx upgrade-all' {sleep}")

however I don't see it in the output, even while using -v (I see several other lines of output though).

How to reproduce

Make sure that all packages are upgraded, then run pipx upgrade-all.

Expected behavior

I would like to see a message stating that currently no package needs upgrades.

@powercoconola
Copy link

What python version are you using?
py --version
What pipx version are you using?
py -m pipx --version

@ezio-melotti
Copy link
Author

$ python3 --version
Python 3.12.7
$ pipx --version
1.6.0

Note that I noticed the issue after updating Ubuntu from 24.04 to 24.10.
pipx is installed through apt, and 24.04 had pipx 1.4.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants