Skip to content

Private package not found from Azure DevOps #3542

@AndreuCodina

Description

@AndreuCodina

I tested the latest fix (#3291) and still can't install a private package using uv due to another error.

requirements.txt

sqlmodel==0.0.14
my-private-package==1.0.0

Execution:

$ uv --version
uv 0.1.42
$ uv pip install --system keyring artifacts-keyring

$ az login

$ uv pip install --system --extra-index-url=https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple --keyring-provider subprocess --requirement requirements.txt --verbose

DEBUG Starting interpreter discovery for default Python
DEBUG Cached interpreter info for Python 3.12.3, skipping probing: /usr/local/bin/python3
DEBUG Using Python 3.12.3 environment at /usr/local/bin/python3
DEBUG Trying to lock if free: /tmp/uv-39ee7c309557c5e9.lock
DEBUG At least one requirement is not satisfied: my-private-package==1.0.0
DEBUG Using registry request timeout of 30s
DEBUG Solving with target Python version 3.12.3
DEBUG Adding direct dependency: sqlmodel==0.0.14
DEBUG Adding direct dependency: my-private-package==1.0.0
DEBUG No cache entry for: https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple/my-private-package/
DEBUG No cache entry for: https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple/sqlmodel/
DEBUG No cache entry for: https://pypi.org/simple/my-private-package/
DEBUG Found stale response for: https://pypi.org/simple/sqlmodel/
DEBUG Sending revalidation request for: https://pypi.org/simple/sqlmodel/
DEBUG Found not-modified response for: https://pypi.org/simple/sqlmodel/
DEBUG Searching for a compatible version of sqlmodel (==0.0.14)
DEBUG Selecting: sqlmodel==0.0.14 (sqlmodel-0.0.14-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/55/b2/ea0c31d2bb8d22dffd83f43028d8d1b18301702725d6b918ac15f99b6de7/sqlmodel-0.0.14-py3-none-any.whl.metadata
DEBUG Adding transitive dependency for sqlmodel==0.0.14: sqlalchemy>=2.0.0, <2.1.0
DEBUG Adding transitive dependency for sqlmodel==0.0.14: pydantic>=1.10.13, <3.0.0
DEBUG No cache entry for: https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple/sqlalchemy/
DEBUG No cache entry for: https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple/pydantic/
DEBUG Found stale response for: https://pypi.org/simple/pydantic/
DEBUG Sending revalidation request for: https://pypi.org/simple/pydantic/
DEBUG Searching for a compatible version of my-private-package (==1.0.0)
DEBUG No compatible version found for: my-private-package
  × No solution found when resolving dependencies:
  ╰─▶ Because my-private-package was not found in the package registry and you require my-private-package==1.0.0, we
      can conclude that the requirements are unsatisfiable.

If I use pip, I can:

$ pip install --root-user-action=ignore --extra-index-url=https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple --requirement requirements.txt

Looking in indexes: https://pypi.org/simple, https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple
[Warning] [CredentialProvider]Warning: Cannot persist Microsoft authentication token cache securely!
[Warning] [CredentialProvider]Warning: Using plain-text fallback token cache
[Minimal] [CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple/
[Minimal] [CredentialProvider]ATTENTION: User interaction required.

    **********************************************************************

    To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code ... to authenticate.

    **********************************************************************
[Information] [CredentialProvider]VstsCredentialProvider - Acquired bearer token using 'MSAL Device Code'
[Information] [CredentialProvider]VstsCredentialProvider - Attempting to exchange the bearer token for an Azure DevOps session token.
...

Metadata

Metadata

Assignees

Labels

questionAsking for clarification or support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions