Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

netsrot39

macrumors 6502
Original poster
Feb 7, 2018
361
509
Austria
Hello, I'm trying to install pyload on my PowerMac G5 because jDownloader will not work on it due to an unsupported Java version on PowerPC. I've installed python via MacPorts (Python 2.7.8) but still need pip. Since
Code:
sudo easy_install pip
doesn't work anymore since 2017 I tried it with an alternative command by downloading get-pip.py and executing it. Unfortunately I'm stuck and don't know how to proceed because I'm always getting the following error message:

Code:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pip
/var/folders/qD/qD3HexQEFGWPQ-DS-+Oix++++TI/-Tmp-/tmpvyDvTk/pip.zip/pip/_vendor/urllib3/util/ssl_.py:354: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
/var/folders/qD/qD3HexQEFGWPQ-DS-+Oix++++TI/-Tmp-/tmpvyDvTk/pip.zip/pip/_vendor/urllib3/util/ssl_.py:150: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:510: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/pip/
/var/folders/qD/qD3HexQEFGWPQ-DS-+Oix++++TI/-Tmp-/tmpvyDvTk/pip.zip/pip/_vendor/urllib3/util/ssl_.py:150: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:510: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/pip/
/var/folders/qD/qD3HexQEFGWPQ-DS-+Oix++++TI/-Tmp-/tmpvyDvTk/pip.zip/pip/_vendor/urllib3/util/ssl_.py:150: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:510: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/pip/
/var/folders/qD/qD3HexQEFGWPQ-DS-+Oix++++TI/-Tmp-/tmpvyDvTk/pip.zip/pip/_vendor/urllib3/util/ssl_.py:150: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:510: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/pip/
/var/folders/qD/qD3HexQEFGWPQ-DS-+Oix++++TI/-Tmp-/tmpvyDvTk/pip.zip/pip/_vendor/urllib3/util/ssl_.py:150: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:510: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/pip/
/var/folders/qD/qD3HexQEFGWPQ-DS-+Oix++++TI/-Tmp-/tmpvyDvTk/pip.zip/pip/_vendor/urllib3/util/ssl_.py:150: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '_ssl.c:510: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)) - skipping


It doesn't matter whether I user
Code:
python get-pip.py
or
Code:
python get-pip.py --trusted-host=files.pythonhosted.org --trusted-host=pypi.org
, the command will eventually fail due to the SSL error (I suppose)

OS X version is 10.5.8

Any help is kindly appreciated :)
 
I've been doing builds, and have seen similar errors.

It looks like the version of openssl might be the problem.
Code:
# openssl version
OpenSSL 0.9.7l 28 Sep 2006

I was doing a build of nmap, ...
Code:
# nmap/prefix/bin/openssl version
OpenSSL 1.1.1c  28 May 2019

Also, curl might be the problem.
Code:
# curl --version
curl 7.16.4 (i386-apple-darwin9.0) libcurl/7.16.4 OpenSSL/0.9.7l zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IPv6 Largefile NTLM SSL libz
:eek: Hmmm, strange that my PowerBook G4 runs i386 code!?!

I've been including the -k option for some https downloads, or building the latest version of curl.
Code:
# curl/prefix/bin/curl --version
curl 7.65.1 (powerpc-apple-darwin9.8.0) libcurl/7.65.1 OpenSSL/1.1.1c zlib/1.2.3
Release-Date: 2019-06-05
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets
 
  • Like
Reactions: netsrot39
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.