Skip to content

Installing a package with different version format #4508

Closed

Description

@lawrence-c

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 <testuser@testemail.com>"]

[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!

Activity

  1. dimbleby commented on Jun 25, 2022

    @dimbleby
    Contributor

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

  2. github-actions commented on Mar 1, 2024

    @github-actions

    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.

  3. locked as resolved and limited conversation to collaborators on Mar 1, 2024
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

    area/solverRelated to the dependency resolver

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions