Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install using poetry #35

Open
salexln opened this issue Jun 19, 2023 · 0 comments
Open

Fail to install using poetry #35

salexln opened this issue Jun 19, 2023 · 0 comments

Comments

@salexln
Copy link

salexln commented Jun 19, 2023

I'm using the following pyproject.toml:

[tool.poetry]
name = "code-tf-test"
version = "0.1.0"
description = ""
authors = ["Alex Levin <salexln@gmail.com>"]
readme = "README.md"
packages = [{include = "code_tf_test"}]

[tool.poetry.dependencies]
python = "^3.10"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

but when I run poetry add salesforce-codetf==1.0.1.1, I get

Updating dependencies
Resolving dependencies... (1.0s)

The current project's Python requirement (>=3.10,<4.0) 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.11,<4.0

Because salesforce-codetf (1.0.1.1) depends on numpy (1.21.6) which requires Python >=3.7,<3.11, salesforce-codetf is forbidden.
So, because code-tf-test depends on salesforce-codetf (1.0.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.10,<3.11"

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

I'm using Python 3.10.1

@salexln salexln changed the title Fail to install with poetry Fail to install using poetry Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant