Replies: 3 comments 3 replies
-
There's code in I edited the py file to print these values to screen. With the new azure address it prints out my username and PAT token. With the old azure address the password is None.... |
Beta Was this translation helpful? Give feedback.
-
Try #6799 |
Beta Was this translation helpful? Give feedback.
-
What worked for me - TLDR: delete pypoetry/ directory and all its contents under
|
Beta Was this translation helpful? Give feedback.
-
I have been using Poetry to manage projects hosted on Azure Devops for a year now.
In
pyproject.toml
I have the following entryand I run the following commands in a terminal to setup the credentials with a PAT generated by Azure
and I see entries populated in Windows Credential Manager when I do this.
This has worked fine up until a couple of days ago when my PAT expired. When running
poetry update
orpoetry install
I get a "401 not authorised" error.I deleted the credentials in Windows Credential Manager and tried running the above commands with a new PAT but it did not help.
I eventually found a fix by using the same PAT but specifying a different, but equivalent, address in Azure (Azure DevOps maintains dual base urls serving the same content):
https://pkgs.dev.azure.com/mycompany/_packaging/my_pypi/pypi/simple/
in both the
pyproject.toml
and the credential commands.Note that I can use
pip install ..... --index-url=https://mycompany.pkgs.visualstudio.com/_packaging/my_pypi/pypi/simple/
and that works ok, with credentials handled byartifacts-keyring
so it's not a case of the old address being invalid.There are a couple of problems with this solution:
Does anybody have any ideas what might be going on. Is
poetry
orkeyring
caching credentials under the hood and my attempts to overwrite it (which show up in Windows Credential Manager) are not flowing through to poetry?Beta Was this translation helpful? Give feedback.
All reactions