01 icon indicating copy to clipboard operation
01 copied to clipboard

The Poetry configuration is invalid: - Additional properties are not allowed ('group' was unexpected)

Open theovit opened this issue 1 year ago • 4 comments

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:

  1. Run poetry install command.
  2. 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.

theovit avatar Mar 24 '24 06:03 theovit

Try to upgrade poetry to resolve:

poetry self update

jcp avatar Mar 24 '24 07:03 jcp

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

theovit avatar Mar 24 '24 07:03 theovit

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.

theovit avatar Mar 24 '24 07:03 theovit

Hey, got into the same issue Uninstalled poetry and installed via the installation script curl -sSL https://install.python-poetry.org | python3 -

STih07 avatar Mar 31 '24 17:03 STih07

This issue seems solved now. If anyone encounters this again please create a new issue

tyfiero avatar Apr 02 '24 19:04 tyfiero