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
impossible to install from http git with authentication on windows #12602
Comments
FYI, on linux it works:
|
From the error:
it looks like you have some sort of Unix-specific authentication method set up in git. You need to fix your git installation to work correctly on Windows - you should be able to manually git clone http://gitea.manatecserver/el/administration.git |
I use regular git for windows, and I can clone :
also:
|
But that |
as I said in #12602 (comment), the same command works on linux though, and properly asks for username and password. This is why it mostly looks like a bug on windows. |
Understood. But there's still no evidence that it's a pip issue. Maybe someone else can help you, though. |
I guess it's because of this line |
Sorry, that's what I was trying to tell you with
|
Is it also a feature that pip does not use keyring for git ? (genuine question) |
I'm not sure I follow. I don't think it's up to pip to "use keyring for git" - instead, it's up to git to integrate keyring if that's what you want. Are you saying that when you run git at the command line, keyring is used but when you use it via pip, keyring is not used? Git has various credential managers, I don't know if keyring is among them (also I don't know if you need it to be keyring, or if you're just assuming it should be keyring "because that's what pip uses"). Pip simply runs git non-interactively. It assumes that git will work non-interactively, it's up to you to ensure that's the case. |
I'm talking about https://pip.pypa.io/en/stable/topics/authentication/#keyring-support not being used when doing a |
Sorry, I don't know. I don't use pip's keyring support myself, and it was contributed by a 3rd party, so I'm not 100% clear on what the intended behaviour is in this situation. But as a practical solution to your problem, I'd suggest simply using a git credential provider that works non-interactively. |
Description
On windows, trying to do a
pip install
on a git repository (no https) with authentication does not workExpected behavior
No response
pip version
24.0
Python version
3.12.2
OS
Windows
How to Reproduce
pip install git+http://gitea.manatecserver/el/administration.git -vvv
Using argument
--keyring-provider auto
leads to the same outputOutput
Code of Conduct
The text was updated successfully, but these errors were encountered: