[Distutils] Disabling non HTTPS access to APIs on PyPI

Alex Domoradov alex.hha at gmail.com
Fri Oct 27 12:54:27 EDT 2017


> This will probably (unfortunately) break some things for some people,
> which is worrying.  But it is the right thing to do and good advice in
> general.

Did I miss something, but I can't install some package. I use docker
and get the following

$ cat Dockerfile
FROM ubuntu:16.04

RUN apt-get update
RUN apt-get install -y python-pip

RUN pip install --upgrade pip

$ docker run -it --rm pip bash

root at a633a43c5df6:/# pip -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

root at a633a43c5df6:/# pip install google-appengine
Collecting google-appengine
  Downloading google-appengine-1.5.1.tar.gz (897kB)
    100% |################################| 901kB 745kB/s
    Complete output from command python setup.py egg_info:
    Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-hd5GWR/google-appengine/setup.py", line 3,
in <module>
        ez_setup.use_setuptools()
      File "/usr/local/lib/python2.7/dist-packages/ez_setup.py", line
145, in use_setuptools
        return _do_download(version, download_base, to_dir, download_delay)
      File "/usr/local/lib/python2.7/dist-packages/ez_setup.py", line
124, in _do_download
        to_dir, download_delay)
      File "/usr/local/lib/python2.7/dist-packages/ez_setup.py", line
193, in download_setuptools
        src = urlopen(url)
      File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python2.7/urllib2.py", line 435, in open
        response = meth(req, response)
      File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
        'http', request, response, code, msg, hdrs)
      File "/usr/lib/python2.7/urllib2.py", line 473, in error
        return self._call_chain(*args)
      File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
        result = func(*args)
      File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
        raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
*    urllib2.HTTPError: HTTP Error 403: SSL is required*

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-hd5GWR/google-appengine/

Do I need to make some additional upgrades? I just thought that pip is
the only one tool that I have to upgrade
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20171027/d0050c8b/attachment.html>


More information about the Distutils-SIG mailing list