Skip to content

Python 3.6 #44

Open
Darel13712 opened this issue Nov 22, 2021 · 1 comment
Open

Python 3.6 #44

Darel13712 opened this issue Nov 22, 2021 · 1 comment
Labels
invalid This doesn't seem right

Comments

@Darel13712
Copy link
Contributor

Darel13712 commented Nov 22, 2021

Python==3.9.7
poetry==1.1.11
pip==21.3.1

pyproject.toml like this

[tool.poetry]
name = "replay-rec"
version = "0.7.0"
description = "RecSys Library"
authors = [""]

[tool.poetry.dependencies]
python = ">=3.6.2, <3.10"
lightautoml = ">=0.3.1"
numpy = [
  {version = ">=1.20.0", python = ">=3.7"},
  {version = "*", python = "<3.7"}
]

Cannot complete poetry lock with the following message

The current project's Python requirement (>=3.6.2,<3.10) is not compatible with some of the required packages Python requirement:
    - numpy requires Python >=3.7,<3.11, so it will not be satisfied for Python >=3.6.2,<3.7
    - numpy requires Python >=3.7, so it will not be satisfied for Python >=3.6.2,<3.7
    - numpy requires Python >=3.7, so it will not be satisfied for Python >=3.6.2,<3.7
    - numpy requires Python >=3.7, so it will not be satisfied for Python >=3.6.2,<3.7
    - numpy requires Python >=3.7, so it will not be satisfied for Python >=3.6.2,<3.7
    - numpy requires Python >=3.7, so it will not be satisfied for Python >=3.6.2,<3.7
    - numpy requires Python >=3.7, so it will not be satisfied for Python >=3.6.2,<3.7
    - numpy requires Python >=3.7,<3.11, so it will not be satisfied for Python >=3.6.2,<3.7
    - numpy requires Python >=3.7,<3.11, so it will not be satisfied for Python >=3.6.2,<3.7

  Because no versions of numpy match >1.20.0,<1.20.1 || >1.20.1,<1.20.2 || >1.20.2,<1.20.3 || >1.20.3,<1.21.0 || >1.21.0,<1.21.1 || >1.21.1,<1.21.2 || >1.21.2,<1.21.3 || >1.21.3,<1.21.4 || >1.21.4
   and numpy (1.20.0) requires Python >=3.7, numpy is forbidden.
  And because numpy (1.20.1) requires Python >=3.7
   and numpy (1.20.2) requires Python >=3.7, numpy is forbidden.
  And because numpy (1.20.3) requires Python >=3.7
   and numpy (1.21.0) requires Python >=3.7, numpy is forbidden.
  And because numpy (1.21.1) requires Python >=3.7
   and numpy (1.21.2) requires Python >=3.7,<3.11, numpy is forbidden.
  And because numpy (1.21.3) requires Python >=3.7,<3.11
   and numpy (1.21.4) requires Python >=3.7,<3.11, numpy is forbidden.
  Because no versions of lightautoml match >0.3.1
   and lightautoml (0.3.1) depends on numpy (>=1.20.0), lightautoml (>=0.3.1) requires numpy (>=1.20.0).
  Thus, lightautoml is forbidden.
  So, because replay-rec depends on lightautoml (>=0.3.1), version solving failed.

  at ~/python/.e397/lib/python3.9/site-packages/poetry/puzzle/solver.py:241 in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      242│
      243│         results = dict(
      244│             depth_first_search(
      245│                 PackageNode(self._package, packages), aggregate_package_nodes

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

    For numpy, a possible solution would be to set the `python` property to ">=3.7,<3.10"
    For numpy, a possible solution would be to set the `python` property to ">=3.7,<3.10"
    For numpy, a possible solution would be to set the `python` property to ">=3.7,<3.10"
    For numpy, a possible solution would be to set the `python` property to ">=3.7,<3.10"
    For numpy, a possible solution would be to set the `python` property to ">=3.7,<3.10"
    For numpy, a possible solution would be to set the `python` property to ">=3.7,<3.10"
    For numpy, a possible solution would be to set the `python` property to ">=3.7,<3.10"
    For numpy, a possible solution would be to set the `python` property to ">=3.7,<3.10"
    For numpy, a possible solution would be to set the `python` property to ">=3.7,<3.10"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers
@Darel13712 Darel13712 added the invalid This doesn't seem right label Nov 22, 2021
@Darel13712
Copy link
Contributor Author

Created issue at poetry's repo. Should be closed with this pr.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant