-
Notifications
You must be signed in to change notification settings - Fork 2.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
Exported requirements.txt contains spurious error message, making it unparseable #4109
Closed
3 tasks done
Labels
kind/bug
Something isn't working as expected
Comments
colindean
added
kind/bug
Something isn't working as expected
status/triage
This issue needs to be triaged
labels
May 26, 2021
colindean
changed the title
Warning
Exported requirements.txt contains spurious error message, making it unparseable
May 26, 2021
colindean
added a commit
to colindean/poetry
that referenced
this issue
May 26, 2021
An error in export could emit error messages to stdout, causing the requirements.txt output to stdout to be invalid. Fixes python-poetry#4109
This was referenced May 26, 2021
finswimmer
pushed a commit
that referenced
this issue
Sep 3, 2021
* Emit export errors to stderr to prevent invalid output An error in export could emit error messages to stdout, causing the requirements.txt output to stdout to be invalid. Fixes #4109 * Looks at stderr for export tests
Thank you! |
1nF0rmed
pushed a commit
to 1nF0rmed/poetry
that referenced
this issue
Nov 15, 2021
…#4110) * Emit export errors to stderr to prevent invalid output An error in export could emit error messages to stdout, causing the requirements.txt output to stdout to be invalid. Fixes python-poetry#4109 * Looks at stderr for export tests
edvardm
pushed a commit
to edvardm/poetry
that referenced
this issue
Nov 24, 2021
…#4110) * Emit export errors to stderr to prevent invalid output An error in export could emit error messages to stdout, causing the requirements.txt output to stdout to be invalid. Fixes python-poetry#4109 * Looks at stderr for export tests
4 tasks
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: macOS 10.15.7
Poetry version: 1.1.6
Link of a Gist with the contents of your pyproject.toml file: Too much internal stuff to share, it's not really related, though
Issue
When I run
poetry export > requirements.txt && pip install -r requirements.txt
, I see this:It appears that my Poetry lockfile is out of sync. No biggie, that's correctable and logged in #3092 when it's not necessary to resync.
However, this error message should not make it into the output of the
poetry export
command. That error log line should go to stderr, not stdout.Proposed Fix
I think that the
self.line
herepoetry/poetry/console/commands/export.py
Lines 56 to 63 in b753aaf
should be
self.line_error
which, according to the docstring for that method outputs to stderr instead of stdout.The text was updated successfully, but these errors were encountered: