-
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
Can't add package from private pypi repository using token access #4181
Comments
I am also having this issue. I am using: I've observed that when running The current workaround I've found is to disable the keyring library, and edit the I can confirm using |
Facing the same issue. For some reason, this issue doesn't persist in |
Can anyone reproduce it on Poetry 1.5 ? |
@ralbertazzi hi. I faced kinda the same problem on 1.8.4, py3.11 with gemfury private repo. The most important is point 6 in "What I tried" block below. What is my case
What I tried
after that I ran
Here it is when running
As you may see, poetry fails with 403 when trying access already downloaded package taking it in
What is interesting here -
It didn't help -
So, I consider it as problem on poetry side. Appreciate any help and workarounds! What issues I checked and tried workarounds (spoiler - nothing helped) |
@DariaPlotnikova think your issue was resolved in #9850 As a workaround (for Gemfury users) try: poetry config http-basic.my_source $TOKEN $TOKEN See exception documented at https://gemfury.com/help/errors/repo-url-password/. |
@DariaPlotnikova thank you for the effort to debug the issue and the information provided. Hopefully the fix and/or workaround will solve your immediate issue. |
@abn Thanks for fast reaction. Hope we could fix is as fast as possible.
(Also I deleted and fully recreated my env, cleared poetry cache) I continued debugging. What I found is that "magic" happens in
This leads to empty Also I printed thread and process IDs in May there be some threading problem? |
@DariaPlotnikova please see my comment above at #4181 (comment) for the workaround. The issue is already fixed. And the workaround above should work for your case. 😄 |
@abn thanks a lot! I tried your advice again after fully reinstalling poetry in system globally.
|
@abn could you please tell, which version will your fix go to? Locally everything is ok with workaround, but in CI - no (probably because of no keyrings in CI). My case is that I have 2 librarier, Fast fix for CI: pre-install with pip your local package:
|
@DariaPlotnikova with the |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
I have added a private repository hosted in gitlab to poetry config:
However, I can't add a package from the repo:
[fails with auth error -- see stack trace below.]
However, I can add it using pip inside the virtual environment
Stacktrace:
Note that these, also, didn't work:
The text was updated successfully, but these errors were encountered: