Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1981333

Summary: easy_install can't install anything, "Couldn't find index page for..."
Product: Red Hat Enterprise Linux 7 Reporter: Radek Bíba <rbiba>
Component: python-setuptoolsAssignee: Python Maintainers <python-maint>
Status: CLOSED WONTFIX QA Contact: RHEL CS Apps Subsystem QE <rhel-cs-apps-subsystem-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.9CC: pviktori
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-28 12:28:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Radek Bíba 2021-07-12 12:19:37 UTC
Description of problem:
It seems PyPI has changed something on their side, setuptools hasn't been modified recently. Now, easy_install is broken.

Version-Release number of selected component (if applicable):
python-setuptools-0.9.8-7.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. For example, easy_install pip

Actual results:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')

Expected results:
Installation works. At least if the default or specified version is still compatible with Python 2.7. I remember I had to start using easy_install 'pip<21.0' earlier this year, but *that* worked.

Additional info:
You will probably close this bug because RHEL 7 is too old or because easy_install is no longer a preferred installer, but I'd appreciate any analysis of this issue and any workaround you might think of. (other than installing python3-pip)

One more additional piece of info: when you click on the first link from the command's output, you'll get redirected to https://pypi.org/simple/pip/ - which is a different hostname but the contents LGTM.

Comment 3 Petr Viktorin (pviktori) 2021-07-23 12:43:02 UTC
pypi.org now requires SSL with the SNI extension. (This is a requirement from Fastly, which provides pypi's for sponsored CDN.)
The ssl and urllib modules in RHEL7 are patched to provide SNI, but easy_install has its own ssl_support that bypasses these.


To install pip from upstream, you can use their get-pip script:

$ curl -o get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py
$ python get-pip.py

Comment 4 Radek Bíba 2021-07-23 17:18:37 UTC
Thanks for the info, Petr!