-
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
Breaking changes to poetry install? #5681
Breaking changes to poetry install? #5681
Comments
I am also running into this issue!
|
Confirmed that it's the trailing comma in the version constraint. Here's a REPL of the regex they use here. Not sure if the best solution here is to fix the regex, or trim the trailing commas off the version constraint before sending it into the regex match. Input welcomed.
|
For anyone who needs a quick workaround: This seems to be related to the release of |
Hi, we are also experiencing production issues that started yesterday evening (EST). In our pyproject.toml we have:
We have been installing this package on poetry 1.2.0b1 for a few months in CI with no issues, but as of last night we now see:
Each CI run installs poetry fresh via |
How do you downgrade poetry-core? I've tried the line |
The issue has to do with Poetry's runtime environment. When you install using the script, a venv is created and A quick way to downgrade core is to execute this. Note this is only tested for linux environments. ${POETRY_HOME:-${XDG_DATA_HOME:-~/.local/share}}/pypoetry/venv/bin/python -m pip install --force --no-deps poetry-core==1.1.0a7 |
Hi @abn, thanks for the reply and the explanation. In general, is there a reason that a specific release of poetry is not tied to a specific release of poetry-core? I just made an internal push for my organization to move our build to poetry, but it's hard to justify using poetry for a production system if we could wake up any morning and find CI is suddenly failing even though no code or dependencies changed on our end. |
@gavrieladler Can you please check if you get the |
@gavrieladler the downgrade suggested about should mitigate your solver issue. But, I would also recommend that you test out the latest change in master for your project as that might have a fix that works with the latest curl -sSL https://install.python-poetry.org | python3 - --git https://github.com/python-poetry/poetry.git@master |
Typically we restrict to a minor version of This caught us off guard as well. There seems to be a gap in our test matrix that does not ensure that an upcoming release of All that said, I suspect in the future, we might restrict core version a bit further, atleast prior to a stable release.
The frustration is understandable. I suspect part of the issue here is that the 1.2.0 release has been piling on fixes and features forcing the community to use a prerelease in production environments. I am hopeful that once the 1.2.0 release is done we should be able to get new fixes out with better cadence. This should aleaviate the risk of relying on unstable and prone to breaking releases. For environments that need a higher degree of confidence, I would even recommend that a constraints file be used when installing poetry. Hopefully though, this is merely a transitional issue. |
I just confirmed that the issue is resolved when using master. |
Thanks for the detailed explanation, appreciated. Do you have a rough ETA on the 1.2.0 release? |
The current plan is to have another beta (~1 week), followed by an rc then stable release. |
@stephenleonard8 I created python-poetry/poetry-core#371 for the trailing commas issue. Can you please check if the "main"/"dev" change also occurs when using poetry@master and create a separate issue with an example to reproduce the issue? |
@abn @radoering thank you again for being so quick to respond and thorough in your explanations / assistance! |
Core release |
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 Summary
With the release of
poetry-core
1.1.0b1
, some users installing the latest Poetry pre-release (1.2.0b1
) in CI environments via the install script can encounter certain issues due to either bug fixes and/or improvements inpoetry-core
that require related changes that are only available in Poetrymaster
branch.Resolution
Invalid cosntraint parsing regression has been resolved with https://github.com/python-poetry/poetry-core/releases/tag/1.1.0b2
Mitigation
Users impacted by this issue can either downgrade version of
poetry-core
#5681 (comment) or use Poetry from git #5681 (comment).Issue (original)
Here’s how we install poetry:
Our
poetry.lock
file contains:Note that the
python-versions
constraint seems to be malformed (extra trailing comma).Prior to 2022-05-23
poetry install
(on 1.2.0b1, with this malformed version specification) worked fine. This morning we re-installed poetry 1.2.0b1 using the same install procedure above, and we now get an error:Something seems to have changed out from under us even with specifying a version for poetry that is causing an error and our production pipeline to fail.
Additionally, running
poetry lock --no-update
on today’s re-install of 1.2.0b1 seems to be changing thecategory
of our packages (withinpoetry.lock
) from “main” to “dev”.What has changed with the poetry installation, and how do we get it back? This is currently breaking production systems for us.
The text was updated successfully, but these errors were encountered: