Skip to content

Failure to fetch pypi behind proxy with 1.3.1 #837

Closed
otrempe opened this Issue Mar 11, 2013 · 5 comments

2 participants

@otrempe
otrempe commented Mar 11, 2013

It works with 1.2.1 but doesn't with 1.3.1

Observed on Windows XP. I didn't test it on other OS.

Output:
pip install --proxy xxxx.xxxxxxxxxx.xxx:3128 nose
Downloading/unpacking nose
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement nose
No distributions at all found for nose
Storing complete log in C:\Documents and Settings\xxxxx\pip\pip.log

Reinstalling 1.2.1 makes it work again.

Olivier Trempe

@qwcode
Python Packaging Authority member
qwcode commented Mar 11, 2013

can you run with -v, and paste the result.
if it was a ssl or certificate exception, it would have shown with default logging, without -v

@otrempe
otrempe commented Mar 12, 2013

Here it is:

pip install -v --proxy xxxx.xxxxxxxxxx.xxx:3128 nose
Downloading/unpacking nose
Could not fetch URL https://pypi.python.org/simple/nose/: timed out
Will skip URL https://pypi.python.org/simple/nose/ when looking for download links for nose
Could not fetch URL https://pypi.python.org/simple/: timed out
Will skip URL https://pypi.python.org/simple/ when looking for download links for nose
Cannot fetch index base URL https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/nose/: timed out
Will skip URL https://pypi.python.org/simple/nose/ when looking for download links for nose
Could not find any downloads that satisfy the requirement nose
No distributions at all found for nose
Exception information:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\basecommand.py", line 139, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\commands\install.py", line 266, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\req.py", line 1026, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\index.py", line 171, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for nose

@qwcode
Python Packaging Authority member
qwcode commented Mar 12, 2013

in looking at the code, the proxy support looks clearly broken. will put together a fix.
this will likely mean another patch release.

@qwcode
Python Packaging Authority member
qwcode commented Mar 12, 2013

opened pull #840 as a fix for this.

you can install/try it like so:

pip install --ignore-installed git+https://github.com/qwcode/pip@proxy_fix#egg=pip
@qwcode
Python Packaging Authority member
qwcode commented Apr 12, 2013

#840 merged. closing

@qwcode qwcode closed this Apr 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.