Skip to content
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

Poetry 1.4.0 uninstalls charset-normalizer when resuming install on Windows #7589

Closed
4 tasks done
l0b0 opened this issue Mar 2, 2023 · 6 comments
Closed
4 tasks done
Labels
kind/bug Something isn't working as expected status/duplicate Duplicate issues

Comments

@l0b0
Copy link

l0b0 commented Mar 2, 2023

  • Poetry version: 1.4.0 only

  • Python version: 3.8, 3.9, 3.10 and 3.11

  • OS version and name: Microsoft Windows Server 2022 10.0.20348 Datacenter (windows-2022 GitHub runner)

  • pyproject.toml: Gist

  • I am on the latest stable Poetry version, installed using a recommended method.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • I have consulted the FAQ and blog for any relevant entries or release notes.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below. See gist from this PR.

Issue

To work around broken Poetry package installs on Windows I've set up a retrying job which uses the latest version of Poetry. Since the release of Poetry 1.4.0 this broke further, since now repeated package install attempts uninstall the charset-normalizer package, which is required by the request package to continue installation.

Proving that this is a Poetry and not a Conda/Windows/other issue is that reverting to Poetry 1.3.2 fixes the issue.

@l0b0 l0b0 added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Mar 2, 2023
l0b0 added a commit to linz/emergency-management-tools that referenced this issue Mar 2, 2023
Poetry 1.4.0 is broken on Windows
<python-poetry/poetry#7589>.
l0b0 added a commit to linz/emergency-management-tools that referenced this issue Mar 2, 2023
Poetry 1.4.0 is broken on Windows
<python-poetry/poetry#7589>.
kodiakhq bot pushed a commit to linz/emergency-management-tools that referenced this issue Mar 2, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Mar 2, 2023

poetry is trying to upgrade charset-normalizer: the process for upgrading a package has always been to remove the old version and then install the new version. You just happen to be hitting #1031 between those two actions.

This is therefore a duplicate of #1031: it will be fixed if/when that is fixed, and cannot be fixed independently of that

@l0b0
Copy link
Author

l0b0 commented Mar 2, 2023

@dimbleby I don't think it's exactly the same as #1031, because that is intermittent while this is 100% reproducible across tens of builds since 1.4.0.

@dimbleby
Copy link
Contributor

dimbleby commented Mar 2, 2023

plausible that the new installer disturbs the balance as to what files are open at what time so that the frequency or exact realisation of this changes. You could experiment with disabling the new installer.

Still: your logs pretty clearly show that this is a duplicate, in the way that I described in my previous comment.

@dimbleby
Copy link
Contributor

should have been closed long ago as a duplicate, a fix for the thing that it is a duplicate of has now been released too. So this should be closed twice!

@radoering radoering added status/duplicate Duplicate issues and removed status/triage This issue needs to be triaged labels May 20, 2023
@radoering
Copy link
Member

Duplicate: #1031

@radoering radoering closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2023
l0b0 added a commit to linz/emergency-management-tools that referenced this issue May 28, 2023
l0b0 added a commit to linz/emergency-management-tools that referenced this issue May 31, 2023
l0b0 added a commit to linz/emergency-management-tools that referenced this issue Jun 8, 2023
l0b0 added a commit to linz/emergency-management-tools that referenced this issue Jun 19, 2023
l0b0 added a commit to linz/emergency-management-tools that referenced this issue Jun 22, 2023
l0b0 added a commit to linz/emergency-management-tools that referenced this issue Jul 19, 2023
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants