-
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
Called process error output doesn’t all go to stderr #6651
Comments
This can be fixed by merging these two log messages into a single message: pip/src/pip/_internal/utils/misc.py Lines 835 to 839 in 0dbab23
|
Well, that would fix the part about one of two identical messages being reported as error. But I still don’t understand what the error here is. It shouldn’t be an error if some environment marker in the build deps doesn’t match, that dep should simply be skipped. |
It looks like you didn't provide all of the output towards the end. Is there more? |
The link in the issue descriptions goes there. And you’re right! The real error(s) happen(s) later but due to only the first line being sent to stdout, I didn’t see that. It’s numpy/numpy#13790 |
Okay, yeah, I saw after I clicked on it. Basically, this is a formatting / presentation issue IMO where we need to better delineate the beginning and end of the command output (the "Complete output from command" mentioned above). |
FYI, I posted PR #6655 to address this. It would remove the confusing
|
…formatting Fix #6651: Improve error message formatting when a command errors out
@flying-sheep What is making you think the output is not all going to stderr? It should all already have been going to stderr in the error case you encountered since the log message(s) were logged at ERROR level. |
Check out the link to the build failure. The line
is red, i.e. on stderr, while the subsequent line
is gray, i.e. on stdout. |
Okay, thanks. That’s actually just an issue with the coloring getting applied to the log message. All those lines are still going to stderr (the subprocess error gets logged as one giant ~7500 line message). It’s just that only the first line of the error message is colored. That should probably be filed as a separate issue. |
Ah. Is that a travis bug then? I assume travis colors the stderr stuff? |
pip is doing the coloring using a third-party module. More likely the issue is with how pip is doing its logging in conjunction with the coloring. Feel free to open a new issue for that. |
Sure, this one is muddied enough as it is by my confusion |
pip 19.1.1, Python: 3.8-dev, Ubuntu xenial
My travis build with Python 3.8 fails: https://travis-ci.org/theislab/scanpy/jobs/550248884#L285
The error occurs when trying to install scipy’s build requirements via
pyproject.toml
. Confusingly, it reports an environment marker not matching (and the subsequent ignoring of the dependency) as an error:As you can see, the subsequent ignoring of the second line is not reported as an error (as I would expect).
The text was updated successfully, but these errors were encountered: