Skip to content

Poetry install python requirement error #5

Description

@AndyP3r3z

Steps to recreate:

  1. Clone the repo: git clone --recursive https://github.com/avanisubbiah/material-color-utilities-python.git
  2. poetry build
  3. poetry install

The output I got after the last step is:

Updating dependencies
Resolving dependencies... (0.4s)

The current project's Python requirement (>=2.7,<2.8 || >=3.4) is not compatible with some of the required packages Python requirement:
  - pillow requires Python >=3.7, so it will not be satisfied for Python >=2.7,<2.8 || >=3.4,<3.7
  - pillow requires Python >=3.7, so it will not be satisfied for Python >=2.7,<2.8 || >=3.4,<3.7
  - pillow requires Python >=3.7, so it will not be satisfied for Python >=2.7,<2.8 || >=3.4,<3.7
  - pillow requires Python >=3.7, so it will not be satisfied for Python >=2.7,<2.8 || >=3.4,<3.7

Because no versions of pillow match >9.2.0,<9.3.0 || >9.3.0,<9.4.0 || >9.4.0,<9.5.0 || >9.5.0,<10.0.0
 and pillow (9.2.0) requires Python >=3.7, pillow is forbidden.
And because pillow (9.3.0) requires Python >=3.7
 and pillow (9.4.0) requires Python >=3.7, pillow is forbidden.
So, because pillow (9.5.0) requires Python >=3.7
 and material-color-utilities-python depends on Pillow (^9.2.0), version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties
    
    For pillow, a possible solution would be to set the `python` property to ">=3.7"
    For pillow, a possible solution would be to set the `python` property to ">=3.7"
    For pillow, a possible solution would be to set the `python` property to ">=3.7"
    For pillow, a possible solution would be to set the `python` property to ">=3.7"

I resolved the error by changing line 9 in pyproject.toml:
I changed Pillow = "^9.2.0" to Pillow = {version = "^9.2.0", python = "^3.7"}

I guess is fairly simple to add :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions