Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
urllib.request works on Pythonista but not MacBook
-
My exact code is:
with urllib.request.urlopen("https://asx.com.au") as response:
cod-response.read()
{SSL:CERTIFICATE_VERIFY_FAILED}I HAVE TRIED TURNING OFF FIREWALL AND SSL VARIATIONS TO NO AVAIL
-
See
https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-errorYou might try the solution that mentions the lack of any certificates on osx, and suggests you install
certifi
. The other alternatives should also work (monkey patching ssl module, etc), but then you won't be verifying certificates. -
context=ssl.create.unverified_context() won't work. Giving:
module 'ssl' has no attribute 'create_unverified_context'
-
@hewjet, is there a reason not to use
requests
? -
There is no request module and no certifi module on MacBook
-
By that I mean there is no requests module on MacBook
-
Certifi won't download and unzip
-
@hewjet,
pip install requests
?