Skip to content

Poetry install fails due to incompatible Python range #23

@Manezki

Description

@Manezki

Installing the project from a fresh clone fails with Poetry.

Error log

❯ poetry install
Updating dependencies
Resolving dependencies... (0.1s)

The current project's supported Python range (>=3.8) is not compatible with some of the required packages Python requirement:
  - misaki requires Python <3.13,>=3.8, so it will not be installable for Python >=3.13

Because no versions of misaki match >0.9.4
 and misaki[en] (0.9.4) requires Python <3.13,>=3.8, misaki is forbidden.
So, because kittentts depends on misaki[en] (>=0.9.4), version solving failed.

  * Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For misaki, a possible solution would be to set the `python` property to ">=3.8,<3.13"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

Steps to reproduce

  1. git clone https://github.com/KittenML/KittenTTS.git
  2. cd KittenTTS
  3. poetry env use python 3.12
  4. poetry install

Environment

  • Python version: 3.12.3
  • Poetry version: 2.1.3

Workaround

  • Change requires-python in pyproject.toml requires-python = ">=3.8" -> requires-python = ">=3.8,<3.13"
  • poetry install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions