Unable to install private Azure-hosted package with Poetry (works with pip) #10424
Unanswered
codingbutstillalive
asked this question in
Q&A
Replies: 1 comment
-
Solved: It turned out that the error was caused by an additional access layer that I wasn't aware of. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve created a Python package hosted in a private Azure Artifacts repository.
After configuring pip.conf, I’m able to install the package using pip without any issues.
Now, I’m trying to use the same package in a Python project managed by poetry.
I added the source using:
poetry source add —priority=supplemental azure „https:///pkgs.dev.azure**(…)**/simple/“
Then I configured the access token:
poetry config —local http-basic.azure library <Access-Token>
However, when I run:
poetry add my-package —source azure
I get the following error:
**400 Client Error:** Bad Request for url: (…)pypi/simple/my-package/
As mentioned, this works fine with pip, so the credentials are correct. I just can’t get it to work with poetry.
Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions