Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

NON-SSL link in Distribute setup using PIP package #96

Open
bmatthewshea opened this issue Apr 28, 2019 · 0 comments
Open

NON-SSL link in Distribute setup using PIP package #96

bmatthewshea opened this issue Apr 28, 2019 · 0 comments

Comments

@bmatthewshea
Copy link

bmatthewshea commented Apr 28, 2019

You have an problem if PIP installing the "Stratum" package. setup.py calls the "Distribute" pip URL.
Problem is the link for Distribute is HTTP/non-SSL. (I do see this is fixed in your copy here.) Also, I do not think you check to see if it's already installed. You are strictly needing == 0.6.28, or does version matter?


Line 50 in distribute_setup.py has 'http':

DEFAULT_VERSION = "0.6.28"
DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/"
SETUPTOOLS_FAKED_VERSION = "0.6c11"

"http" ^ & why I get a http/https error below:

# sudo -H pip install stratum
Collecting stratum
  Downloading https://files.pythonhosted.org/packages/6d/e6/e7b45f24fd81d5511fbc37cad448d1b0784d85e4d0fb511a918a0c0e36c2/stratum-0.2.15.tar.gz
    Complete output from command python setup.py egg_info:
    Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-NCDOh8/stratum/setup.py", line 3, in <module>
        use_setuptools()
      File "distribute_setup.py", line 145, in use_setuptools
        return _do_download(version, download_base, to_dir, download_delay)
      File "distribute_setup.py", line 124, in _do_download
        to_dir, download_delay)
      File "distribute_setup.py", line 194, 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

If I install the Distribute 0.6.28 package myself (via pip), I can install it fine:

# sudo -H pip install distribute==0.6.28
Collecting distribute==0.6.28
  Downloading https://files.pythonhosted.org/packages/2f/f5/0ac674dd39ea80db147230362cff5e9cbe3b1e893fde9aeab5d2f72da83c/distribute-0.6.28.tar.gz (627kB)
    100% |████████████████████████████████| 634kB 940kB/s
Building wheels for collected packages: distribute
  Running setup.py bdist_wheel for distribute ... done
  Stored in directory: /root/.cache/pip/wheels/1d/fa/05/2570d9426502484b739d56f5a5147a586f77f71a808b5f21d9
Successfully built distribute
Installing collected packages: distribute
Successfully installed distribute-0.6.28
@bmatthewshea bmatthewshea changed the title NON-SSL link in Distribute setup NON-SSL link in Distribute setup using PIP package Apr 28, 2019
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

1 participant