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
When installing locally through the source code, execute the command poetry install, the actual operation times error, prompt:
The Poetry configuration is invalid:
- 'name' is a required property
- 'version' is a required property
- 'description' is a required property
- 'authors' is a required property
The reason is that "pyproject.toml" uses a mixture of [project] and [tool.poetry] configurations, and if there is a conflict between the two, you should just cut the contents of the former into the latter.
When you run the command again, there is still an error, as follows:
The Poetry configuration is invalid:
- [authors.0] {'name': 'HumanSignal', 'email': 'support@humansignal.com'} is not of type 'string'
- Additional properties are not allowed ('requires-python' was unexpected)
In this case:
Change authors = ["HumanSignal <support@humansignal.com>"] because Poetry requires authors to be lists of strings;
Remove the "requirements-python" line from [tool.poetry] because it is configured correctly under [tool.poetry.dependencies]. This is because Python version constraints should be defined in the python field under [tool.poetry.dependencies], not directly in [tool.poetry].
When you modify "pyproject.toml" correctly, you can execute a series of official guidance commands smoothly.
Therefore, I raise this issue and hope it will be helpful. Thank you!
The text was updated successfully, but these errors were encountered:
When installing locally through the source code, execute the command
poetry install
, the actual operation times error, prompt:The reason is that "pyproject.toml" uses a mixture of
[project]
and[tool.poetry]
configurations, and if there is a conflict between the two, you should just cut the contents of the former into the latter.When you run the command again, there is still an error, as follows:
In this case:
authors = ["HumanSignal <support@humansignal.com>"]
because Poetry requires authors to be lists of strings;[tool.poetry]
because it is configured correctly under[tool.poetry.dependencies]
. This is because Python version constraints should be defined in the python field under[tool.poetry.dependencies]
, not directly in[tool.poetry]
.When you modify "pyproject.toml" correctly, you can execute a series of official guidance commands smoothly.
Therefore, I raise this issue and hope it will be helpful. Thank you!
The text was updated successfully, but these errors were encountered: