Skip to content

Poetry 2 POETRY_HTTP_BASIC_ issues #10085

@black-snow

Description

@black-snow

Description

This is going to be a very bad bug report as I have little information to provide, sadly.

When I upgrade from 1.8.4 to 2.0.1 my pipeline fails to pull from a private registry. It's an Azure DevOps pipeline and I use the PipAuthenticate task and then export the password as POETRY_HTTP_BASIC_registry-name_PASSWORD.

I also provide the password via env locally and that works fine with Poetry 2. I am clueless to why it breaks the pipeline - perhaps someone has an idea.

Workarounds

none

Poetry Installation Method

pip

Operating System

some Ubuntu, I guess

Poetry Version

2.0.1

Poetry Configuration

the default, I guess - can print it out if it helps

Python Sysconfig

Example pyproject.toml

Poetry Runtime Logs

poetry-runtime.log
Source (X): Authorization error accessing https://pkgs.dev.azure.com/X/_packaging/X/pypi/simple/X/

RuntimeError

Unable to find installation candidates for X (0.0.1rc5)

at .venv/lib/python3.13/site-packages/poetry/installation/chooser.py:86 in choose_for
     82│ 
     83│             links.append(link)
     84│ 
     85│         if not links:
  →  86│             raise RuntimeError(f"Unable to find installation candidates for {package}")
     87│ 
     88│         # Get the best link
     89│         chosen = max(links, key=lambda link: self._sort_key(package, link))
     90│ 

Cannot install X.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions