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

Installing a package with different version format #4508

Closed
2 tasks done
lawrence-c opened this issue Sep 15, 2021 · 2 comments
Closed
2 tasks done

Installing a package with different version format #4508

lawrence-c opened this issue Sep 15, 2021 · 2 comments
Labels
area/solver Related to the dependency resolver

Comments

@lawrence-c
Copy link

lawrence-c commented Sep 15, 2021

Hi,

I'm trying to install a specific version of Apache Airflow from https://pip.astronomer.io/simple/apache-airflow/ (1!2.1.0+astro.3), however I'm wondering if the 1!2 is affecting how Poetry handles dependency mismatch?

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Issue

Here's an example pyproject.toml

[tool.poetry]
name = "test-repo"
version = "0.0.1"
description = "test repo"
authors = ["Test User <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.6,<3.9"
apache-airflow = "1!2.1.0+astro.3"
apache-airflow-providers-amazon = "1.4.0"
apache-airflow-providers-celery = "1.0.1"
apache-airflow-providers-cncf-kubernetes = "1!1.2.1"
apache-airflow-providers-elasticsearch = "1.0.4"
apache-airflow-providers-ftp = "1.1.0"
apache-airflow-providers-google = "3.0.0"
apache-airflow-providers-imap = "1.0.1"
apache-airflow-providers-microsoft-azure = "2.0.0"
apache-airflow-providers-mysql = "1.1.0"
apache-airflow-providers-postgres = "1.0.2"
apache-airflow-providers-redis = "1.0.1"
apache-airflow-providers-slack = "3.0.0"
apache-airflow-providers-sqlite = "1.0.2"
apache-airflow-providers-ssh = "1.3.0"
astronomer-airflow-scripts = { url = "https://github.com/astronomer/astronomer-airflow-scripts/releases/download/v0.0.5/astronomer_airflow_scripts-0.0.5-py3-none-any.whl" }
astronomer-airflow-version-check = "1.0.7"
astronomer-certified = "2.1.0.post3"
astronomer-fab-security-manager = "1.6.0"

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

[[tool.poetry.source]]
name = "astronomer"
url = "https://pip.astronomer.io/simple/"

and accompanying error:

  SolverProblemError

  Because astronomer-fab-security-manager (1.6.0) depends on apache-airflow (>=1.10.0)
   and astro-ml depends on apache-airflow (1!2.1.0+astro.3), astronomer-fab-security-manager is forbidden.
  So, because astro-ml depends on astronomer-fab-security-manager (1.6.0), version solving failed.

Is there any way around this issue?

Thanks in advance!

@finswimmer finswimmer added area/solver Related to the dependency resolver status/triage This issue needs to be triaged labels Sep 19, 2021
@dimbleby
Copy link
Contributor

epoch handling is fixed at python-poetry/poetry-core#264

@radoering radoering removed the status/triage This issue needs to be triaged label Jun 26, 2022
Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/solver Related to the dependency resolver
Projects
None yet
Development

No branches or pull requests

4 participants