

I only get that warning on one of my systems. Set the LIBRESSL_REDIRECT_STUB_ABORT=1 in the environment to force this into an error. This will fail in a future version of macOS. WARNING: Executing a script that is loading libcrypto in an unsafe way.

Pip list # check to make sure the packages are actually not in the list anymore. on my upgraded systems.Ĭode: Select all sudo pip uninstall cryptography certifi requests urllib3 Which is version 2.6.1 in Catalina, but version 1.72. What wasn't listed as installed by pip, but I believe is crucial based on researching the error message, is the cryptography package.
#Install requests for python 3 osx install#
The pip install requests command installed the following packages: I ran the following commands:Īnd what do you know - the test script worked! Neither pip nor the requests module are pre-installed for Python 2. Catalina also has Python 3.7.3 pre-installed. Python 2.7.16 is pre-installed in Catalina (Mojave was 2.7.10). So I decided to see what happens on a clean install of Catalina. Both systems were upgrades from Mojave (and others before that). I'm documenting my research into this issue in this thread, so if someone else runs into this they'll know what's going in.Īlso, I confirmed this exact same behavior on my MBP, which was also upgraded to Catalina.
#Install requests for python 3 osx verification#
Adding certificate verification is strongly advised. Library/Python/2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. The workaround, for now, is to disable certificate checking:Ĭode: Select all ~ % python -c 'import requests req=requests.get("", verify=False) print req.status_code' This has bitten me on three different plugins this weekend. Note the syntax change for the print statement.Ĭode: Select all ~ % python3 -c 'import requests req=requests.get("") print(req.status_code)' : ("bad handshake: Error(,)",)Ĭode: Select all home:~ miniserver$ python -c 'import requests req=requests.get("") print req.status_code' Return session.request(method=method, url=url, **kwargs)įile "/Library/Python/2.7/site-packages/requests/sessions.py", line 475, in requestįile "/Library/Python/2.7/site-packages/requests/sessions.py", line 596, in sendįile "/Library/Python/2.7/site-packages/requests/adapters.py", line 497, in send Return request('get', url, params=params, **kwargs)įile "/Library/Python/2.7/site-packages/requests/api.py", line 56, in request Seems pretty straightforward, right? No, not really.Ĭode: Select all ~ % python -c 'import requests req=requests.get("") print req.status_code'įile "/System/Library/Frameworks/amework/Versions/2.7/Extras/lib/python/OpenSSL/SSL.py", line 309, in wrapperĪttributeError: 'module' object has no attribute 'X509_up_ref'įile "/Library/Python/2.7/site-packages/requests/api.py", line 70, in get If you have Catalina, try running this in Terminal:Ĭode: Select all python -c 'import requests req=requests.get("") print req.status_code'
