-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry 1.3.2 cannot obtain credentials via keyrings #7545
Comments
Of course getting credentials from keyring works just fine. You've misconfigured something, but there's no way of telling from what you've written what that might be. |
I'm getting the same error with poetry v1.4.0 in a conda environment (py 3.8.16) when trying to publish my package in a private pip repo at a GCP project. Potentially, the same underlying issue results in an error Here's my keyring backends:
Setting a security token for poetry doesn't return any errors:
But then
I can work around it by installing the package with
Would appreciate any ideas here🙏 |
Eventually, I've figured this out: I was inadvertently using |
@iprotsyuk tried the exactly steps as you with $ poetry config repositories. https://europe-python.pkg.dev// |
i got the same error, my account has admin permission to the GCP artifactory, but still got auth error:
anyone has a proper solution for this? |
I spent half a day solving this issue when switching to installing poetry using pipx instead of with the installer script. I was using
At which point, your poetry binaries will be able to find the gauth keyrings module. GoogleCloudPlatform/artifact-registry-python-tools#17 (comment) |
Is there any way of using a service account? This would be usefull for cicd tooling where no gcloud account is available. |
Hi,
Currently, I tried to publish my private package to Artifact Registry in GCP via poetry publish using keyrings. I always get an error
HTTP Error 401: Unauthorized | b'The request does not have valid authentication credentials. \n'
. I tried this a long time ago and it worked. So I checked the version of poetry and I found out that my current setup is poetry version 1.3.2 and the last time I tried this I had 1.2.2. So I downgraded the poetry version and tried the same process and this time it worked.The text was updated successfully, but these errors were encountered: