Skip to content

Poetry cannot install package with inconsistent wheel metadata #6595

@arthi-navenio

Description

@arthi-navenio
  • Poetry version: Poetry (version 1.2.1)

  • Python version: Python 3.9.9

  • OS version and name: Ubuntu 20.04.5 LTS (Focal Fossa)

  • pyproject.toml: https://gist.github.com/arthi-navenio/df7283f9ce613b8c2df563b1a5972736

  • I am on the latest stable Poetry version, installed using a recommended method.

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

  • I have consulted the FAQ and blog for any relevant entries or release notes.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

Package hosted in private aritifactory not discovered by poetry when performing an installation for specific python version. Packages in private aritifactory are hosted in the format shown below

- pypi
        - custom-package
        - 20220916.9
                         - <wheel_compatible_with_python3.10>
                         - <wheel_compatible_with_python3.9>
                         - <wheel_compatible_with_python3.8>

pip install custom-package==20220916.9 automatically discovers and installs relevant package from private artifactory based on the compatible python version. However, doing the same with poetry raises the error

Because depends on custom-package (20220916.9) which doesn't match any versions, version solving failed.

Complete log - https://gist.github.com/arthi-navenio/d0ee9cbe8e36c949a8329a33cbc6fcce

I tried revising the pyproject.toml file to specify exact url like the below for installing the custom package

custom-package = { url = "https://custom.jfrog.io/artifactory/api/pypi/pypi/simple/custom-package/custom-package-20220916.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl" }

and that fails with

404 Client Error: Not Found for url: https://custom.jfrog.io/artifactory/api/pypi/pypi/simplecustom-package/custom-package-20220916.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl

Complete log - https://gist.github.com/arthi-navenio/8cf051bb5cced1fdb699111df59fbc52

even though the credentials are added with poetry config http-basic <repo-name-as-seen-in-source-pyproject.toml> user pass

I have spent time exhaustively searching for another alternative and seems like a bug with poetry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionUser questions (candidates for conversion to discussion)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions