Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

get_pip script old, doesn't work behind proxy #136

Closed
amaltson opened this issue Jan 23, 2015 · 3 comments
Closed

get_pip script old, doesn't work behind proxy #136

amaltson opened this issue Jan 23, 2015 · 3 comments

Comments

@amaltson
Copy link

The get-pip.py script has been updated a bunch since the current bootstrap script. I'm finding it doesn't correctly install behind a proxy when using http_proxy ENV variable. Using the latest get-pip everything works as expected. The current get-pip.py script is confused with the following:

get-pip.py run on Fri Jan 23 14:13:58 2015
Downloading/unpacking pip
  Getting page https://pypi.python.org/simple/pip/
  Could not fetch URL https://pypi.python.org/simple/pip/: connection error: hostname '<proxy server>' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.python.org', 'testpypi.python.org', 'bugs.python.org', 'wiki.python.org', 'hg.python.org', 'mail.python.org', 'packaging.python.org', 'pythonhosted.org', 'www.pythonhosted.org', 'test.pythonhosted.org', 'us.pycon.org', 'id.python.org'
  Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip
  Getting page https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/: connection error: hostname '<proxy server>' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.python.org', 'testpypi.python.org', 'bugs.python.org', 'wiki.python.org', 'hg.python.org', 'mail.python.org', 'packaging.python.org', 'pythonhosted.org', 'www.pythonhosted.org', 'test.pythonhosted.org', 'us.pycon.org', 'id.python.org'
  Will skip URL https://pypi.python.org/simple/ when looking for download links for pip
  Cannot fetch index base URL https://pypi.python.org/simple/
  URLs to search for versions for pip:
  * https://pypi.python.org/simple/pip/
  Getting page https://pypi.python.org/simple/pip/
  Could not fetch URL https://pypi.python.org/simple/pip/: connection error: hostname '<proxy server>' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.python.org', 'testpypi.python.org', 'bugs.python.org', 'wiki.python.org', 'hg.python.org', 'mail.python.org', 'packaging.python.org', 'pythonhosted.org', 'www.pythonhosted.org', 'test.pythonhosted.org', 'us.pycon.org', 'id.python.org'
  Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip
  Could not find any downloads that satisfy the requirement pip
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
No distributions at all found for pip
Exception information:
Traceback (most recent call last):
  File "/tmp/unpacker-UNoDRZ-scratchdir/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/tmp/unpacker-UNoDRZ-scratchdir/pip/commands/install.py", line 274, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/tmp/unpacker-UNoDRZ-scratchdir/pip/req.py", line 1166, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/tmp/unpacker-UNoDRZ-scratchdir/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for pip
chantra added a commit to chantra/python that referenced this issue Feb 11, 2015
This was reported in GH poise#136

get-pip.py was copied from pypa/pip@b9f2d5d
chantra added a commit to chantra/python that referenced this issue Feb 11, 2015
This was reported in GH poise#136

get-pip.py was copied from pypa/pip@b9f2d5d
@chantra
Copy link
Contributor

chantra commented Feb 11, 2015

@amaltson , until PR #142 get merged, you can use https://github.com/chantra/python/tree/fix_get-pip.py

@amaltson
Copy link
Author

Thanks, I ended up updating the file myself, but I'll watch the PR. Thanks.

@coderanger
Copy link
Member

https://github.com/poise/poise-python allows giving a URL to a local copy of get-pip.py.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants