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 self show: Because poetry-instance depends on poetry (1.3.0) which doesn't match any versions, version solving failed. #7170

Closed
clintonroy opened this issue Dec 11, 2022 · 5 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@clintonroy
Copy link
Contributor

1.3.0
3.9
alma linux 9.1:
None:

  • [ x] I am on the latest stable Poetry version, installed using a recommended method.
  • [ x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [ x] I have consulted the FAQ and blog for any relevant entries or release notes.
  • [ x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

Upgrading from 1.2.2 to 1.3.0 seems to break poetry self show. It can be fixed again by re running poetry self lock, but it seems a bit weird.

FROM almalinux:9.1
RUN dnf install -y python3-pip
ENV PATH=/root/.local/bin:$PATH
RUN python3 -m pip install pipx
RUN pipx install poetry==1.2.2
RUN poetry self lock
RUN poetry self show
RUN pipx install --force poetry==1.3.0
RUN poetry self show

Results in

Because poetry-instance depends on poetry (1.3.0) which doesn't match any versions, version solving failed.
@clintonroy clintonroy added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Dec 11, 2022
@clintonroy
Copy link
Contributor Author

A tiny bit of thinking, maybe self show after the upgrade should be prompting for the self lock to be run, as it's out of sync?

@dimbleby
Copy link
Contributor

I wouldn't expect to mix poetry self commands with a pipx-managed installation, they're quite different mechanisms.

I use pipx myself, and updated my poetry installation with pipx upgrade poetry.

Possibly the docs could say more on such matters? Though it's not the place of the poetry docs to tell folk how to use pipx...

@maticus
Copy link

maticus commented Feb 14, 2023

Having the same error on poetry self show with clean install of poetry (1.3.2), using official installer, with custom POETRY_HOME. Using ubuntu jammy with python 3.10.6

@ralbertazzi
Copy link
Contributor

Considering that

  1. The docs now correctly mention that a pipx installation should be upgraded through pipx upgrade poetry: https://python-poetry.org/docs/#installing-with-pipx
  2. Mixing pipx with poetry self is definitely not a good practice
  3. We are talking about an older release of Poetry

I'm fairly confident nobody will ever work on this. I'll close the issue.

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/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants