Closed mvaldi closed 2 weeks ago
Can you include the uv logs from running with --verbose
?
Sure!
Hi! You need to provide a username for keyring.
See the 0.1.33 breaking changes
wonderful! it worked, thanks you so much!
You're welcome! Sorry for the breaking change — it seemed incorrect for us hard-code the username for a specific service.
For the following people who come asking the same question, this was the solution:
uv pip install --system --keyring-provider subprocess --extra-index-url https://strong>`oauth2accesstoken@`</stronglocation-python.pkg.dev/project-id/package-name/simple private-package
Hi astral team, I love this repository and save me a lot of time in github actions.
I have a problem trying to install a private repository with gcp using uv with docker
This is the dockerfile that contain the error:
Dockerfile with error
```dockerfile FROM python:3.10.14-bullseye RUN pip install -U pip "uv==0.1.33" -q ARG GOOGLE_APPLICATION_CREDENTIALS_PATH="./gcp.json" COPY $GOOGLE_APPLICATION_CREDENTIALS_PATH /tmp/credentials.json ENV GOOGLE_APPLICATION_CREDENTIALS /tmp/credentials.json RUN uv pip install --system keyring keyrings.google-artifactregistry-auth -q && uv pip install --system --keyring-provider subprocess --extra-index-url https://location-python.pkg.dev/project-id/package-name/simple private-package ```it throw the follow error
Detailed error
``` => ERROR [4/4] RUN uv pip install --system keyring keyrings.google-artifactregistry-auth -q & 2.9s ------ > [4/4] RUN uv pip install --system keyring keyrings.google-artifactregistry-auth -q && uv pip install --system --keyring-provider subprocess --extra-index-url https://location-python.pkg.dev/project-id/package-name/simple private-package: 2.838 error: HTTP status client error (401 Unauthorized) for url (https://location-python.pkg.dev/project-id/package-name/simple/private-package/) ------ Dockerfile:11 -------------------- 9 | 10 | # RUN uv pip install --system keyring keyrings.google-artifactregistry-auth -q && uv pip install --system --keyring-provider subprocess --extra-index-url https://location-python.pkg.dev/project-id/package-name/simple private-package 11 | >>> RUN uv pip install --system keyring keyrings.google-artifactregistry-auth -q && uv pip install --system --keyring-provider subprocess --extra-index-url https://location-python.pkg.dev/project-id/package-name/simple private-package 12 | -------------------- ERROR: failed to solve: process "/bin/sh -c uv pip install --system keyring keyrings.google-artifactregistry-auth -q && uv pip install --system --keyring-provider subprocess --extra-index-url https://location-python.pkg.dev/project-id/package-name/simple private-repository" did not complete successfully: exit code: 2 ```and this error appear for the next versions like
0.1.33
0.1.34
0.1.35
0.1.36
0.1.37
0.1.38
But if we use the uv version
0.1.32
it worksDockerfile worked
```dockerfile FROM python:3.10.14-bullseye RUN pip install -U pip "uv==0.1.32" -q ARG GOOGLE_APPLICATION_CREDENTIALS_PATH="./gcp.json" COPY $GOOGLE_APPLICATION_CREDENTIALS_PATH /tmp/credentials.json ENV GOOGLE_APPLICATION_CREDENTIALS /tmp/credentials.json RUN uv pip install --system keyring keyrings.google-artifactregistry-auth -q && uv pip install --system --keyring-provider subprocess --extra-index-url https://location-python.pkg.dev/project-id/package-name/simple private-package ```so, something it change and break the feature
Thanks you!