-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Importing freeze requires an attached stdin #7042
Comments
I feel obliged to say that importing and running pip internal functions is not supported, and running pip freeze in a subprocess probably wouldn't suffer from this. Unless we can demonstrate pip misbehaving when invoked as a separate process, I think this will not go far. That said, (legitimate) issue #2920 will need a function written to tell whether we were invoked interactively ( Let's hope whoever fixes that issue does that! :) |
If pip's code doesn't call |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Environment
Flask on IIS using wfastcgi. https://pypi.org/project/wfastcgi/
WFastCGI runs the WSGI handler with stdin detached.
Description
pip checks state of stdin without checking whether it is attached first.
See #7034
Expected behavior
No unhandled exception.
How to Reproduce
Specifically the error occurs when you detach stdin:
Output
The text was updated successfully, but these errors were encountered: