-
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
exporting packages to stdout adds 'creating virtualenv ...' in v 1.2.0 #6275
Comments
Likely related to the plugin migration. Going to tag in @finswimmer as he was doing work on environment commands (and implicit environment creation) recently. |
That |
Also |
FWIW |
you want |
This was working under the previous version of poetry with the |
I don't know how to be clearer so I guess I'll just repeat myself. The output format is (and always was) |
I am a little confused here. The poetry documentation about To clarify about |
This is nothing to do with the stdout / |
Closing this as duplicate -- the bug is tracked at python-poetry/poetry-plugin-export#78 and things have gone off-topic. |
Fixes: ``` ================================== log start =================================== ERROR: Invalid requirement: 'Creating virtualenv structlog-sentry-logger in /home/runner/work/structlog-sentry-logger/structlog-sentry-logger/.venv' (from line 1 of requirements.txt) Hint: It looks like a path. File 'Creating virtualenv structlog-sentry-logger in /home/runner/work/structlog-sentry-logger/structlog-sentry-logger/.venv' does not exist. =================================== log end ==================================== ``` see: python-poetry/poetry#6275
Fixes: ``` ================================== log start =================================== ERROR: Invalid requirement: 'Creating virtualenv structlog-sentry-logger in /home/runner/work/structlog-sentry-logger/structlog-sentry-logger/.venv' (from line 1 of requirements.txt) Hint: It looks like a path. File 'Creating virtualenv structlog-sentry-logger in /home/runner/work/structlog-sentry-logger/structlog-sentry-logger/.venv' does not exist. =================================== log end ==================================== ``` see: python-poetry/poetry#6275
Fixes build failure python-poetry/poetry#6275
Fixes build failure python-poetry/poetry#6275
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. |
Issue
Not sure if that should be considered a bug - maybe more an annoying change. However it broke our pipelines this morning as the new version 1.2.0 came out :)
I don't mind if you close this in case you think that it should be like that. Maybe it is helpful for others which use poetry in the same way we do.
We pipe the output of package export to pip for installation.
E.g.
poetry export -f requirements.txt | poetry run pip install -r /dev/stdin
In case there is not virtualenv created yet, poetry prints to stdout
Creating virtualenv foobar-pyXX in /foo/bar
which will result in pip trying to install a package called "Creating virtualenv...", which then ofc. fails.Workaround
As a workaround, we can simply export the dependencies to a file, and use pip to query the file instead of stdin.
poetry export -f requirements.txt --output requirements.txt && poetry run pip install -r requirements.txt
Thanks!
The text was updated successfully, but these errors were encountered: