-
Notifications
You must be signed in to change notification settings - Fork 3.1k
pip help * prints keyring log on GNU/Linux #8151
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
Comments
I was able reproduce this on MacOS Catalina with python 3.8 and the latest master by using
|
Thanks for the additional output. Now we need someone with Windows to complete the trilogy (to find out if it only happens on GNU/Linux, or that it only doesn't occur on macOS). |
I can approve @deveshks on wsl ubuntu, but honestly if someone does |
How about on normal Windows? I'm curious if it's Debian-environment-specific bug, though I myself don't consider behavior on WSL trust worthy. Just to restate the issue, it's with that the supposed-to-be-part-of-verbose-log is leaked into normal log on
Anyway, since you're on Windows, would love to see |
I don't see this behaviour on Windows. I did
The "Loading KWallet" output shows up in |
The message seems to come from Also, I just tried on Fedora in docker:
and don't see this issue. Silly question, but could there be a PIP_VERBOSE environment variable or config file entry around somewhere? |
I also can't reproduce on Ubuntu in docker. |
Thank you for the quick response, it made me suspected my results an investigate a bit further # apt show python3-keyring
Package: python3-keyring
Version: 18.0.1-2
$ pip3 help install
Loading ...
# aptitude purge python3-keyring
$ pip3 install keyring
$ pip3 show keyring
Name: keyring
Version: 21.2.0
$ pip3 help install
#no more loading
$ pip2 install keyring
$ pip2 show keyring
Name: keyring
Version: 18.0.1
$ pip2 install keyring==21
...
ERROR: Could not find a version that satisfies the requirement keyring==21.* (from versions: 0.1, ..., 18.0.1)
ERROR: No matching distribution found for keyring==21.*
$ pip2 help install
Loading ... Seems like the bug is fixed for current Edit: I took a look at |
Nice bit of analysis :-) |
Uninstall
Instead doing that, try this solution: #8485 (comment) |
Thanks for the heads-up, @matheussouza9.
Since this seems to be directed at me, FYI |
Environment
The log seems to be from
keyring
, since without the package installed the bug disappears.Edit: This is not reproducible on latest keyring, i.e. version 21.2.0. However the last version supporting Python 2 (keyring 18.0.1, which is also the one shipped for Debian testing for Python 3 at the moment) shows this defect if anyone wants to investigate a bit futher.
Description
This only seems to happen to some
pip help <subcommand>
, notpip <subcommand> -h
or any operation by subcommands:Affected subcommands include install, download, uninstall, list, search and wheel.
Expected behavior
The loading of keying backends should not be logged, at least at the normal level.
How to Reproduce
keyring
pip help {install,download,uninstall,list,search,wheel}
After bisecting I found that the log is printed within the call to
commands.create_commands
incommands.help
. However, the log seems to be printed from another process since wrappingcontextlib[2].redirect_stdout
(the log is in stdout) around that line has no effect.The text was updated successfully, but these errors were encountered: