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 404's #66507
Comments
I know that issues like this one are usually on the users(my) fault, but I think pip might be broken this time for real. Every time I run pip install, a 404 error is raised: (venv) /tmp wil
>>> pip install flask
Requirement already satisfied (use --upgrade to upgrade): flask in /home/wil/Programming/open/skinner/venv/lib/python3.5/site-packages/Flask-0.11_dev-py3.5.egg
Downloading/unpacking Werkzeug>=0.7 (from flask)
HTTP error 404 while getting https://pypi.python.org/simple/packages/source/W/Werkzeug/Werkzeug-0.9.6.tar.gz#md5=f7afcadc03b0f2267bdc156c34586043 (from https://pypi.python.org/simple/werkzeug/)
Cleaning up...
Exception:
Traceback (most recent call last):
File "/home/wil/Programming/open/skinner/venv/lib/python3.5/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/home/wil/Programming/open/skinner/venv/lib/python3.5/site-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/wil/Programming/open/skinner/venv/lib/python3.5/site-packages/pip/req.py", line 1197, in prepare_files
do_download,
File "/home/wil/Programming/open/skinner/venv/lib/python3.5/site-packages/pip/req.py", line 1375, in unpack_url
self.session,
File "/home/wil/Programming/open/skinner/venv/lib/python3.5/site-packages/pip/download.py", line 547, in unpack_http_url
resp.raise_for_status()
File "/home/wil/Programming/open/skinner/venv/lib/python3.5/site-packages/pip/_vendor/requests/models.py", line 795, in raise_for_status
raise HTTPError(http_error_msg, response=self)
pip._vendor.requests.exceptions.HTTPError: 404 Client Error: Not Found /home/wil/Programming/open/skinner/venv/lib/python3.5/site-packages/pip/basecommand.py:158: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('10.0.0.6', 52061), raddr=('23.235.44.175', 443)> With flask-sqlalchemy as a example. Right: PIP(wrong): Notice the simple added after to .org and the / added after .tar.gz |
I noticed this, too. I think it's due to the urllib changes in bpo-22118. |
Good to know I'm not the only one. In the comments above, scratch the "/" after .gz. Looks like it's just a redirect adding it. This is the actual url generated. |
See issue bpo-22278. |
Also I see PIP is it's own project. Should I migrate the issue? It won't be as easy as I thought to fix. >>> git diff
diff --git a/pip/_vendor/distlib/locators.py b/pip/_vendor/distlib/locators.py
index 07bc1fd..b7ef31a 100644
--- a/pip/_vendor/distlib/locators.py
+++ b/pip/_vendor/distlib/locators.py
@@ -949,7 +949,7 @@ class AggregatingLocator(Locator):
# versions which don't conform to PEP 426 / PEP 440.
default_locator = AggregatingLocator(
JSONLocator(),
- SimpleScrapingLocator('https://pypi.python.org/simple/',
+ SimpleScrapingLocator('https://pypi.python.org/',
timeout=3.0),
scheme='legacy')
diff --git a/pip/cmdoptions.py b/pip/cmdoptions.py
index 7c68738..738bbf5 100644
--- a/pip/cmdoptions.py
+++ b/pip/cmdoptions.py
@@ -189,7 +189,7 @@ index_url = OptionMaker(
'-i', '--index-url', '--pypi-url',
dest='index_url',
metavar='URL',
- default='https://pypi.python.org/simple/',
+ default='https://pypi.python.org/',
help='Base URL of Python Package Index (default %default).')
extra_index_url = OptionMaker( Still gives errors. A different one. |
On 31.08.2014 11:34, Wilberto Morales wrote:
>
> New submission from Wilberto Morales:
>
> I know that issues like this one are usually on the users(my) fault, but I think pip might be broken this time for real.
>
> Every time I run pip install, a 404 error is raised:
>
> (venv) /tmp wil
>>>> pip install flask
> Requirement already satisfied (use --upgrade to upgrade): flask in /home/wil/Programming/open/skinner/venv/lib/python3.5/site-packages/Flask-0.11_dev-py3.5.egg
> Downloading/unpacking Werkzeug>=0.7 (from flask)
> HTTP error 404 while getting https://pypi.python.org/simple/packages/source/W/Werkzeug/Werkzeug-0.9.6.tar.gz#md5=f7afcadc03b0f2267bdc156c34586043 (from https://pypi.python.org/simple/werkzeug/) The URL is wrong. It should be: The added /simple/ in the path is causing the problem. Do you perhaps FWIW: It "pip install werkzeug" works for me. |
Yea can you give more information? How are you reproducing this? What version of Python? I can't reproduce it locally. |
CPython 3.5, latest development versions. This started failing on August 21st, presumably with the changes for bpo-22118. |
Ok, I'll pull down Python 3.5 in a bit and see what is what. |
No need to keep this open, this is tackled in bpo-22278. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: