Skip to content
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

getting a package with --allow-all-external --allow-unverified doesn't work behind a proxy #3297

Closed
ispmarin opened this issue Dec 10, 2015 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@ispmarin
Copy link

I'm trying to install basemap with

pip install --proxy http://proxy.corp.com:8080 --allow-all-external basemap --allow-unverified basemap

but no luck:

Downloading/unpacking basemap
  basemap an externally hosted file and may be unreliable
  basemap is potentially insecure and unverifiable.
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/home/user/.virtualenvs/mobilidade/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/home/user/.virtualenvs/mobilidade/local/lib/python2.7/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/user/.virtualenvs/mobilidade/local/lib/python2.7/site-packages/pip/req.py", line 1197, in prepare_files
    do_download,
  File "/home/user/.virtualenvs/mobilidade/local/lib/python2.7/site-packages/pip/req.py", line 1375, in unpack_url
    self.session,
  File "/home/user/.virtualenvs/mobilidade/local/lib/python2.7/site-packages/pip/download.py", line 546, in unpack_http_url
    resp = session.get(target_url, stream=True)
  File "/home/user/.virtualenvs/mobilidade/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 395, in get
    return self.request('GET', url, **kwargs)
  File "/home/user/.virtualenvs/mobilidade/local/lib/python2.7/site-packages/pip/download.py", line 237, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/home/user/.virtualenvs/mobilidade/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 383, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/user/.virtualenvs/mobilidade/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 486, in send
    r = adapter.send(request, **kwargs)
  File "/home/user/.virtualenvs/mobilidade/local/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py", line 387, in send
    raise Timeout(e)
Timeout: (<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f61e6a408d0>, 'Connection to downloads.sourceforge.net timed out. (connect timeout=15)')

Storing debug log for failure in /home/user/.pip/pip.log

pip works fine without allow-unverified and allow-external on the same proxy.

Cheers

@xavfernandez
Copy link
Member

PEP470 was approved, the emails were now sent more than 3 months ago and PyPI only shows /simple/ index (since https://bitbucket.org/pypa/pypi/commits/84171443421316088f1a9492bbf48402f8947e99) so --allow-external and --allow-unverified are now useless on pypi.python.org. They will be deprecated in pip 8.

This plus the fact you found a workaround (according to matplotlib/matplotlib#5655), so I'm closing this one as "won't fix".

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 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
Projects
None yet
Development

No branches or pull requests

2 participants