Unable to install python33 from RHSCL through proxy

Solution Verified - Updated -

Issue

  • Unable to install python33 from RHSCL through proxy
  • RHSCL python33-python-setuptools not being able to download anything from pypi.python.org since later became https-only.
  • Python33-python-setuptools (easy_install) from RHSCL does not allow downloads of any pypi packages via proxy.
  • Steps to reproduce:
$ alias px='http_proxy=u:p@host:port/ https_proxy...'
$ export PYTHONPATH=~/pylib
$ px easy_install -d $PYTHONPATH requests
Creating /home/NET1/user/pylib/site.py
Searching for requests
Best match: requests 1.1.0
Adding requests 1.1.0 to easy-install.pth file

Using /usr/lib/python2.6/site-packages
Processing dependencies for requests
Finished processing dependencies for requests
$ rm -rf pylib/*
$ scl enable python27 bash
$ px easy_install -d $PYTHONPATH requests
Searching for requests
Reading https://pypi.python.org/simple/requests/
Best match: requests 2.5.0
Downloading https://pypi.python.org/packages/source/r/requests/requests-2.5.0.tar.gz#md5=b8bf3ddca75e7ecf1b6776da1e6e3385
Processing requests-2.5.0.tar.gz
Writing /tmp/easy_install-m5kG1Q/requests-2.5.0/setup.cfg
Running requests-2.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-m5kG1Q/requests-2.5.0/egg-dist-tmp-VQScVv
Adding requests 2.5.0 to easy-install.pth file

Installed /home/NET1/user/pylib/requests-2.5.0-py2.7.egg
Processing dependencies for requests
Finished processing dependencies for requests
$ exit
$ scl enable python33 bash
$ px easy_install -d $PYTHONPATH requests
Creating /home/NET1/user/pylib/site.py
Searching for requests
Reading https://pypi.python.org/simple/requests/
Download error on https://pypi.python.org/simple/requests/: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:547) -- Some packages may not be found!
Couldn't find index page for 'requests' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:547) -- Some packages may not be found!
No local packages or download links found for requests
error: Could not find suitable distribution for Requirement.parse('requests')
$exit

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • python33.x86_64 0:1.1-13.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content