serhii.net

In the middle of the desert you can say anything you want

16 Oct 2023

poetry add version requirements

TODO: understand what happens here. pandas not possible because numpy, but installing first numpy and then pandas works.

> poetry add pandas
Using version ^2.1.1 for pandas

Updating dependencies
Resolving dependencies... (0.5s)

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

Because no versions of numpy match >1.26.0,<1.26.1 || >1.26.1
 and numpy (1.26.0) requires Python <3.13,>=3.9, numpy is forbidden.
And because numpy (1.26.1) requires Python <3.13,>=3.9, numpy is forbidden.
Because no versions of pandas match >2.1.1,<3.0.0
 and pandas (2.1.1) depends on numpy (>=1.26.0), pandas (>=2.1.1,<3.0.0) requires numpy (>=1.26.0).
Thus, pandas is forbidden.
So, because up-crawler depends on pandas (^2.1.1), version solving failed.

  • 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.9,<3.13"
    For numpy, a possible solution would be to set the `python` property to ">=3.9,<3.13"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers
(up-crawler-py3.10) 14:15:49 ~/uuni/master/code/up_crawler/ 1
> poetry add numpy
Using version ^1.26.1 for numpy

Updating dependencies
Resolving dependencies... (0.2s)

Package operations: 1 install, 0 updates, 0 removals

  • Installing numpy (1.26.1)

Writing lock file
(up-crawler-py3.10) 14:16:03 ~/uuni/master/code/up_crawler/ 0
> poetry add pandas
Using version ^2.1.1 for pandas

Updating dependencies
Resolving dependencies... (0.2s)

Package operations: 2 installs, 0 updates, 0 removals

  • Installing tzdata (2023.3)
  • Installing pandas (2.1.1)

Writing lock file

Refs:

Nel mezzo del deserto posso dire tutto quello che voglio.