python-poetry / python-poetry/poetry

Unable to use `self` commands. ERR: Some dynamic fields need to be specified via `tool.setuptools.dynamic`

Open
#7,591 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

  • Poetry version: 1.3.2
  • Python version: 3.10.8
  • OS version and name: Ubuntu 18.04.6 LTS
  • pyproject.toml: pyproject.toml
  • 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.

Issue

I am not able to run or install any poetry self commands. I followed the installation instructions exactly and I am able to setup poetry and use it normally except for any self commands. This is my ubuntu machine and previously I have done the same in windows and I had no issues there. In the windows machine I have the same toml file. I did reinstall poetry again but the issue still persists. I am not sure how it can be reproduced as I have not done anything out of the ordinary. I was trying to install poetry self add "poetry-dynamic-versioning[plugin]" and that's when I noticed this issue.

Attaching the complete output log, when I run poetry self show plugins -vvv

err_output.txt

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

Start by reproducing poetry self show plugins -vvv and the reported poetry self add "poetry-dynamic-versioning[plugin]" command on the stated Ubuntu and Python versions. Read the linked pyproject.toml and err_output.txt alongside the self-command entry points; done means the self commands no longer fail with the dynamic-fields error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.