Re: urllib.request.urlopen fails with https - SOLVED

2018-03-16 Thread Irv Kalb
Thank you, thank you, thank you. That fixed it (at least on my computer, I'll see if I can do that at my school). Irv > On Mar 15, 2018, at 7:39 PM, Ned Deily wrote: > > On 2018-03-14 18:04, Irv Kalb wrote: >> File >>

Re: urllib.request.urlopen fails with https

2018-03-15 Thread Ned Deily
On 2018-03-14 18:04, Irv Kalb wrote: > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", > line 1320, in do_open > raise URLError(err) > urllib.error.URLError: certificate verify failed (_ssl.c:749)> If you are using Python 3.6 for macOS from a

Re: urllib.request.urlopen fails with https

2018-03-15 Thread Irv Kalb
On Mar 14, 2018, at 9:54 PM, Gregory Ewing wrote: > > Chris Angelico wrote: >> That means going back to the original problem: "how do we get a usable >> stock price API?". > > Does it have to be stock prices in particular? > Or just some simple piece of data that

Re: urllib.request.urlopen fails with https

2018-03-14 Thread Chris Angelico
On Thu, Mar 15, 2018 at 3:54 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> That means going back to the original problem: "how do we get a usable >> stock price API?". > > > Does it have to be stock prices in particular? > Or just some simple piece of data

Re: urllib.request.urlopen fails with https

2018-03-14 Thread Gregory Ewing
Chris Angelico wrote: That means going back to the original problem: "how do we get a usable stock price API?". Does it have to be stock prices in particular? Or just some simple piece of data that demonstrates the principles of fetching a url and parsing the result? -- Greg --

Re: urllib.request.urlopen fails with https

2018-03-14 Thread Chris Angelico
On Thu, Mar 15, 2018 at 10:27 AM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> (Basically, >> what you're doing is downgrading the protection of HTTPS to something >> nearer plain HTTP. That's fine for what you're doing, but any code you >> give to students is

Re: urllib.request.urlopen fails with https

2018-03-14 Thread Gregory Ewing
Chris Angelico wrote: (Basically, what you're doing is downgrading the protection of HTTPS to something nearer plain HTTP. That's fine for what you're doing, but any code you give to students is likely to be copied and pasted into their production code.) See if you can tie in with your OS's

Re: urllib.request.urlopen fails with https (was: Re: Stock quote APi)

2018-03-14 Thread Chris Angelico
On Thu, Mar 15, 2018 at 9:04 AM, Irv Kalb wrote: > ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed > (_ssl.c:749) > > Am I doing something wrong? Is there another way (besides using the requests > module which DOES work for me) to get data from an