You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
OS version and name: linux
Poetry version: 1.2.0a2
Issue
A pyproject.toml that is using "groups" is not parse-able by poetry<1.2 and results in a traceback. Displaying a message explaining that you should update poetry will probably improve the UX.
Not really sure if I should open this here on the poetry-core repo.
Reproducer
using poetry >=1.2:
poetry init -n
poetry add --group dev pytest
using poetry < 1.2:
poetry install
results in:
RuntimeError
The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)
at ~/.local/pipx/venvs/poetry/lib/python3.9/site-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"]
The text was updated successfully, but these errors were encountered:
Just adding in some info on how I also hit this issue. From a google search, it's easy to land on the dependency groups doc. From there I editted my pyproject.toml file to try to use groups. This gave me an error which I eventually realized was due to poetry < 1.2. Obviously this came about because I was on docs/master instead of docs, but I think the dependency groups doc should also mention that it requires poetry >= 1.2
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: linux
Poetry version: 1.2.0a2
Issue
A pyproject.toml that is using "groups" is not parse-able by poetry<1.2 and results in a traceback. Displaying a message explaining that you should update poetry will probably improve the UX.
Not really sure if I should open this here on the poetry-core repo.
Reproducer
using poetry >=1.2:
using poetry < 1.2:
results in:
The text was updated successfully, but these errors were encountered: