python-poetry / python-poetry/poetry

(🐞) Confusing error message in `poetry show` with outdated lock file

Open
#9,485 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/show kind/bug
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

Description
> px poetry show
basedmypy    2.3.0

> # update pyproject.toml to say 'basedmypy = "2.4.0"'

> px poetry show

Because test depends on basedmypy (2.4.0) which doesn't match any versions, version solving failed.

This is caused by the same problem as:
Related:

  • #5003
  • #8737

This message is nonsense, as you can learn from the linked issues.

Poetry Installation Method

pyprojectx

Operating System

Windows 10

Poetry Version

1.8.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior with poetry show after changing the dependency in pyproject.toml, using the reported Poetry 1.8.3 setup as context. Read related issues #5003 and #8737 first to understand the known problem. Done means the outdated lock-file case no longer produces the misleading version-solving message.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.