The Poetry configuration is invalid: - Additional properties are not allowed ('group' was unexpected)
Describe the bug
Upon running poetry install command, the following error is encountered:
RuntimeError
The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)
at /usr/lib/python3/dist-packages/poetry/core/factory.py:43 in create_poetry
39│ message = ""
40│ for error in check_result["errors"]:
41│ message += " - {}\n".format(error)
42│
→ 43│ raise RuntimeError("The Poetry configuration is invalid:\n" + message)
44│
45│ # Load package
46│ name = local_config["name"]
47│ version = local_config["version"]
To Reproduce Steps to reproduce the behavior:
- Run
poetry installcommand. - Encounter the RuntimeError with the provided traceback.
Expected behavior
The poetry install command should execute without errors and install the necessary dependencies specified in the pyproject.toml file.
Screenshots N/A
Desktop (please complete the following information):
- OS: Ubuntu 20.04 LTS
- Python Version: 3.10.12
- Poetry Version: 1.1.12
Additional context
The issue seems to stem from an unexpected property 'group' in the Poetry configuration, which leads to a RuntimeError during the execution of the poetry install command. Further investigation into the pyproject.toml file might be necessary to identify and rectify the invalid configuration.
Try to upgrade poetry to resolve:
poetry self update
poetry self update
Poetry was not installed with the recommended installer. Cannot update automatically.
What's the recommended installer i used
apt install python3-poetry
So i think i got it. don't use sudo apt install python3-poetry use pip install poetry. it's doing something at lease now. I'll update and close this if it works.
Hey, got into the same issue
Uninstalled poetry and installed via the installation script
curl -sSL https://install.python-poetry.org | python3 -
This issue seems solved now. If anyone encounters this again please create a new issue