python-poetry / python-poetry/poetry

Wheel file installation with specific tags

Open
#5,150 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug status/triage
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Ubuntu 20.04
  • Poetry version: 1.12

Issue

I want to install a package from a private repository. It provides the following versions:

  • <name>-pp38-none-any.wheel
  • <name>-cp38-none-any.wheel
    I am using CPython 3.8.12. When I try to install the package with poetry add <name>, poetry reports an error:
Unable to find installation candidates for <name>

Doing the same with pip install <name> works fine. It downloads the cp38-none-any.wheel and installs it.

I cannot understand why poetry does not accept the same wheel file.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with poetry add <name> against a private repository containing the two listed wheels, using CPython 3.8.12 and Poetry 1.12. Compare the candidate-selection behavior with pip install <name> and trace the package-resolution entry point. Done means Poetry accepts the compatible wheel and installs the package.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.