ageron / handson-ml

⛔️ DEPRECATED – See https://github.com/ageron/handson-ml3 instead.
Apache License 2.0
25.18k stars 12.92k forks source link

Chapter 2 Housing - unable to get local issuer certificate #596

Closed B-GW closed 4 years ago

B-GW commented 4 years ago

Hello, I'm very new here but I'm trying to get the housing code to run however I'm getting a URLError.

image

Am I missing something? I cannot get passed this error and I've tried to fix it through my own terminal.Thanks in advance

digitech-ai commented 4 years ago

Try this temporary fix.

import ssl ssl._create_default_https_context = ssl._create_unverified_context #added to suppress verification of security certificate

It will basically suppress the warning.

B-GW commented 4 years ago

Actually that did work. Thank you so much! I'm curious as well I'm getting a NameError: name 'fetch_housing_data' is not defined. but I'm copy pasting the code form the notebook into my Jupyter and I'm not sure how to resolve that. Can you help with that as well?

digitech-ai commented 4 years ago

It is there under "Get the data" section, right after "Setup".

Dont worry too much of code, if it still doesnt work just download the dataset.

B-GW commented 4 years ago

Yeah... I know I've got it all defined according to what the notebook is recommending... Anyways. I appreciate your help thank you very much. I'll download it.