question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VCS installation doesn't prompt for authentication

See original GitHub issue

Environment

  • pip version: 10.0.1
  • Python version: 2.7 and 3.6
  • OS: Windows 10

Description

When trying to install a package from a git or mercurial repository that requires HTTP authentication, pip 10 will always fail the installation due to authentication errors.

Expected behavior

pip should prompt the user to enter their HTTP credentials, just as it did on version 9 and prior.

How to Reproduce

pip install -e hg+https://example.com/private-repo@d1161a2201f22f9b729935100a13d8177c1d9fe0#egg=some_package

Output

Cloning hg https://example.com/private-repo (to revision d1161a2201f22f9b729935100a13d8177c1d9fe0) to c:\some\path
abort: http authorization required for https://example.com/private-repo
Command "hg clone --noupdate -q https://example.com/private-repo c:\some\path" failed with error code 255 in None

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
cjerdonekcommented, Jul 14, 2018

If I hard code the auth information in the requirements file then only one account would be able to access the repo (and also their credentials would be exposed to everyone in the project).

How about using the new environment variable feature? https://pip.pypa.io/en/stable/reference/pip_install/#using-environment-variables

0reactions
lock[bot]commented, Jun 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: VCS Login Failure
Solved: have a physical VCS running 7.2.2 software as a Controller. Somehow the configuration got changed so that it is trying to authenticate...
Read more >
Troubleshooting - Visual Studio Live Share
If that doesn't work, try running the "Live Share: Launcher Setup" command. Linux users: If prompted to enter your admin (sudo) password when ......
Read more >
Toad for Oracle Team Foundation Server VCS Logon Prompt ...
In Toad for Oracle, the Team Foundation Server (TFS) VCS Logon Prompt does not show up even i f Team coding is set...
Read more >
Visual Studio Code is always asking for Git credentials
Why does Visual Studio Code ask for a password? Because Visual Studio Code runs the auto-fetch feature, while the Git server doesn't have ......
Read more >
Unable to remember subversion login credentials
... VCS credentials. every time I restart IDEA it doesn't... ... got two sub-modules? enter same username/password twice for both prompts.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found