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

"Pipenv install" appears to hang when pip configured to prompt for password #3770

Closed
chrish42 opened this issue May 27, 2019 · 2 comments
Closed

Comments

@chrish42
Copy link

In some cases, pip can prompt for a password when setup with an alternate package registry. When that happens, pipenv install appears to hang: pip is waiting for the user to enter the password, but there's no sign of that on the terminal because pipenv captures pip's output.

Setting stdin to /dev/null (instead of PIPE) would at least cause pip to exit and then pipenv would show an error to the user, which would lead to faster diagnosis of the problem, and would not harm anything when pip doesn't need user input. I can submit a pull request if this change is ok. Thanks!

@abusque
Copy link

abusque commented May 28, 2019

I also think that the current default behaviour is less than ideal, but I'd like to point out that it can be worked around by the end user by setting the environment variable PIP_NO_INPUT=1, which will cause pip (and subsequently pipenv) to exit when credentials are missing, rather than trying to prompt the user for input.

@frostming
Copy link
Contributor

A workaround is to set env var PIPENV_NOSPIN=1.

Close it now.

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

3 participants