You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the keyring authentication and try to install packages from a private registry in Azure DevOps, I receive 401 Unauthorized.
I log in with my Microsoft account with az login.
The installation currently works with pip instead of uv.
requirements.txt
sqlmodel==0.0.14
my-private-package==1.0.0
Execution:
$ uv --version
uv 0.1.39
$ 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 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/sqlmodel/
DEBUG No cache entry for: https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple/my-private-package/
error: HTTP status client error (401 Unauthorized) for url (https://pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple/my-private-package/)
## Summary
It seems like Azure might return a 401 when you request a package that
doesn't exist (even with valid credentials)? But I admittedly haven't
tested this. (We already skip 403, and this seems similar?)
Closes#3291.
When I use the keyring authentication and try to install packages from a private registry in Azure DevOps, I receive
401 Unauthorized
.I log in with my Microsoft account with
az login
.The installation currently works with
pip
instead ofuv
.requirements.txt
Execution:
I've tried to generate a token and executing:
--extra-index-url=https:// mytokenname@ pkgs.dev.azure.com/mycompany/_packaging/MyFeed/pypi/simple
But I get the same result.
The text was updated successfully, but these errors were encountered: