Recently, I faced this issue with Poetry. All my commands using poetry were failing with the following error.
RuntimeError
The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)
Recently, I faced this issue with Poetry. All my commands using poetry were failing with the following error.
RuntimeError
The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)
I figured out the following issue.
requires = ["poetry-core>=1.2.0"]
1.1.12
I did the following to fix my issue.
# remove the current poetry installation
rm -rf /Users/myusername/.poetry
# upgrade poetry version
pip install poetry -U
This should solve the problem. I verified the same by running my other poetry commands.
It should be noted that your current poetry configurations will be lost while doing this, and would need to be recreated and reinstalled.
# reinstall poetry for my project
poetry install
This is because you're working on a repo that uses the new version of Poetry, >=1.2.0 and you may have the old poetry installed locally.
The new version of pyproject.toml
file supports dependency groups
such as the following example
[tool.poetry.group.new_group]
optional = true
[tool.poetry.group.new_group.dependencies]
tensorflow = "*"
The solution is to update your version of Poetry using the instructions in the poetry docs.
For me just doing conda decativate
worked. It turns out that i was by default in a "base" enviroment with the wrong installation of poetry
Faced the same issue on Ubuntu 22 (WSL).
➡️ I could get latest poetry version (1.8.3) installed through pipx
, by following the official procedures:
sudo apt update
sudo apt -y install pipx
pipx ensurepath
pipx install poetry
Result:
>poetry --version
Poetry (version 1.8.3)
I had this error so I:
It worked for me, root somehow messed it up.
© 2022 - 2025 — McMap. All rights reserved.