-
-
Notifications
You must be signed in to change notification settings - Fork 613
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
404 error using github hashable URL #947
Comments
Hello @awbirdsall, Thanks for the issue! I've checked it locally on Windows 10 and couldn't reproduce it. Can you open the link https://github.com/jazzband/pip-tools/archive/7d86c8d3ecd1faa6be11c7ddc6b29a30ffd1dae3.zip in your browser and download the archive directly? |
Thanks @atugushev, yes, the strange thing to me has been I'm able to download the zip archive from the browser... |
Can you install it via pip? For example: $ pip install -v https://github.com/jazzband/pip-tools/archive/7d86c8d3ecd1faa6be11c7ddc6b29a30ffd1dae3.zip#egg=pip-tools UPDATE: If you can't — could you attach the output? |
@atugushev with your suggestion I think I tracked down the source of my issue! initially with pip install I got the same 404 error (output below). but I saw that pip is using github credentials I have saved to a ~/.netrc file. I deleted the netrc and tried again, and now both I don't quite understand why my netrc credentials are causing the GET request to fail, and I'll probably have to figure that out when using pip-compile with a private github repo, but that's outside the scope of this issue... I think this can probably be closed.
|
In case anyone else runs into similar issues, I'm only noticing the .netrc bad authorization issues when trying to The difference in the pip codebase is the latter is treated as a vcs_url and is pulled down locally with a |
Okay, traced down the root cause:
This is all taking place in vendored Again, thanks for the help! And this issue can probably be closed. |
I'm glad you've found the root of the issue, so I'll close this then. Thanks! |
I'd like to include a github repo in requirements.in with a hashable URL. I've been looking at what look like the relevant PRs, like #807, but I'm having a hard time figuring out the correct syntax. I'm trying to follow the suggestion of
# Consider using a hashable URL like https://github.com/jazzband/pip-tools/archive/SOMECOMMIT.zip
and the format oftest_generate_hashes_with_url()
, but I get a 404 error (see below).I feel like I must just be misunderstanding the pip-tools/pip syntax here, but I'm having a hard time troubleshooting. Any help would be much appreciated, thanks!
Environment Versions
OS Type: Windows 10
Python version:
$ python -V
: Python 3.7.4pip version:
$ pip --version
: pip 19.2.3pip-tools version:
$ pip-compile --version
: pip-compile, version 4.1.0Steps to replicate
pip-compile test-requirements.in
Expected result
test-requirements.txt
created.Actual result
The text was updated successfully, but these errors were encountered: