question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't add dev dependency with `poetry add --dev` if [tool.poetry.dev-dependencies] doesn't exist

See original GitHub issue

Here’s the command I’m running:

poetry add --dev mkdocs

  [KeyError]


add [-D|--dev] [--optional] [--allow-prereleases] [--dry-run] [--] <name> (<name>)…

Also tried poetry add mkdocs --dev, with the same result.

Using poetry 0.8.5 on Windows.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sdispatercommented, Jul 24, 2018

This should be fixed in commit 2e36b03. This was made possible by changing the TOML library used by Poetry.

It will land in the next bugfix release.

0reactions
sdispatercommented, Jul 26, 2018

Release 0.11.3 is out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commands | Documentation | Poetry - Python dependency ...
The add command adds required packages to your pyproject.toml and installs them. If you do not specify a version constraint, poetry will choose...
Read more >
A Poetic Apology. Or Why Should You Use Poetry to Manage…
In this document, we'll introduce yet another tool, Poetry, and make an argument about why you should probably add it to your own...
Read more >
Poetry - The Blue Book
Poetry is a command line program that helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack...
Read more >
Dependency Management With Python Poetry
Start a new Poetry project; Add Poetry to an existing project ... 10python = "^3.9" 11 12[tool.poetry.dev-dependencies] 13pytest = "^5.2" 14 ...
Read more >
Python poetry - how to install optional dependencies?
You need to add a tool.poetry.extras group to your pyproject.toml if you ... when packaging the project but development dependencies do not ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found