-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
PEP 517 build process fails to take credential from interactive session #10665
Comments
I should mention that this problem does not happen, if the
I.e. if the |
Btw the workaround for this is to use |
I just ran into this as well. Passing the index URL with credentials as an argument to |
Pip 23.1 has improved keyring support, which might be a similar solution/workaround as passing a URL with credentials, but can be a bit more set-and-forget. (You'll likely want the |
See also #11979 (comment) which discusses potential bad UX where pip still interactively asks for input despite not being connected to a TTY. |
Description
My pip.conf is:
As the
index-url
does not contain user/password information, I ususally get a prompt when installing a package, and it works fine:However, when I try to pip install krb5, I am initially asked for username and password, then it starts to collect the package;
but then it triggers installation of build dependencies, and this fails, because the "deep process" also runs pip, and this would again require a password prompt, but I am not actually asked to provide input.
Therefore the process fails with EOFError: EOF when reading a line.
See the full output further down.
(The error handling is also suboptimal in this case: On the first error it believes that krb5-0.2.0 is not available on the internal server, and repeats the same exercise looking for other versions.)
Expected behavior
I would expect that either pip somehow caches the provided credentials for subsequent calls, or, if not, that it again prompts the user to provide the credentials.
pip version
21.3.1
Python version
3.6
OS
Centos (Docker), Windows
How to Reproduce
pip install krb5
(or probably other packages that trigger build dependencies using wheel)Output
Code of Conduct
The text was updated successfully, but these errors were encountered: