-
Notifications
You must be signed in to change notification settings - Fork 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
pip >=19.2 cannot install packages via custom URLs with "one element" auth #6796
Labels
auto-locked
Outdated issues that have been locked by automation
type: bug
A confirmed bug or unintended behavior
Comments
triage-new-issues
bot
added
the
S: needs triage
Issues/PRs that need to be triaged
label
Jul 27, 2019
triage-new-issues
bot
removed
the
S: needs triage
Issues/PRs that need to be triaged
label
Jul 27, 2019
Another bummer with this bug is that pipenv automatically uses the latest pip when instantiating new venv, hence people keep bumping into this. |
Nope. Looks like #6795 fixes the problem 👍 |
Released pip 19.2.2 containing a fix for this issue. :) |
lock
bot
added
the
auto-locked
Outdated issues that have been locked by automation
label
Sep 10, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
auto-locked
Outdated issues that have been locked by automation
type: bug
A confirmed bug or unintended behavior
Environment
Description
When trying to install a package from a custom URL that requires authentication (e.g. from GitHub private repo releases), pip doesn't properly handle parsing of "one element" auth info e.g. GitHub access tokens (i.e. without
:
like the usualuser:password
auth info).Expected behavior
I want to be able to install my package from a private GitHub repo with an Auth Token like this:
this works fine with
pip==19.1.1
How to Reproduce
pip>=19.2
like in the section above.The output should mention a successful download of the package and a "
setup.py
not found" error message (if the release was empty).Workaround
As a workaround one can put
:
before or after the access token so the URL looks like:Output
Instead of installing the package, pip fails with "ERROR: HTTP error 404 while getting https://...".
I've created an empty private repo, with an empty release to test that. The output for
pip install -vvv ...
can be found here:setup.py
not found error).The issue/difference can be observed around
Starting new HTTPS connection (1): github.com:443
.Cause
I've run a
git bisect
session for this issue and it pointed to this commit c63ee61This issue was also discussed at #6775 (see #6775 (comment) and #6775 (comment)).
The text was updated successfully, but these errors were encountered: