IOErrorTraceback (most recent call last)
<ipython-input-50-11f7d0286741> in <module>()
1 from sklearn.datasets import fetch_lfw_people
----> 2 lfw_people = fetch_lfw_people(min_faces_per_person=70, resize=0.4)
/home/dockeruser/anaconda2/lib/python2.7/site-packages/sklearn/datasets/lfw.pyc in fetch_lfw_people(data_home, funneled, resize, min_faces_per_person, color, slice_, download_if_missing)
299 lfw_home, data_folder_path = check_fetch_lfw(
300 data_home=data_home, funneled=funneled,
--> 301 download_if_missing=download_if_missing)
302 logger.info('Loading LFW people faces from %s', lfw_home)
303
/home/dockeruser/anaconda2/lib/python2.7/site-packages/sklearn/datasets/lfw.pyc in check_fetch_lfw(data_home, funneled, download_if_missing)
91 url = BASE_URL + target_filename
92 logger.warning("Downloading LFW metadata: %s", url)
---> 93 urllib.urlretrieve(url, target_filepath)
94 else:
95 raise IOError("%s is missing" % target_filepath)
/home/dockeruser/anaconda2/lib/python2.7/urllib.pyc in urlretrieve(url, filename, reporthook, data, context)
96 else:
97 opener = _urlopener
---> 98 return opener.retrieve(url, filename, reporthook, data)
99 def urlcleanup():
100 if _urlopener:
/home/dockeruser/anaconda2/lib/python2.7/urllib.pyc in retrieve(self, url, filename, reporthook, data)
243 except IOError:
244 pass
--> 245 fp = self.open(url, data)
246 try:
247 headers = fp.info()
/home/dockeruser/anaconda2/lib/python2.7/urllib.pyc in open(self, fullurl, data)
211 try:
212 if data is None:
--> 213 return getattr(self, name)(url)
214 else:
215 return getattr(self, name)(url, data)
/home/dockeruser/anaconda2/lib/python2.7/urllib.pyc in open_http(self, url, data)
348 if realhost: h.putheader('Host', realhost)
349 for args in self.addheaders: h.putheader(*args)
--> 350 h.endheaders(data)
351 errcode, errmsg, headers = h.getreply()
352 fp = h.getfile()
/home/dockeruser/anaconda2/lib/python2.7/httplib.pyc in endheaders(self, message_body)
1051 else:
1052 raise CannotSendHeader()
-> 1053 self._send_output(message_body)
1054
1055 def request(self, method, url, body=None, headers={}):
/home/dockeruser/anaconda2/lib/python2.7/httplib.pyc in _send_output(self, message_body)
895 msg += message_body
896 message_body = None
--> 897 self.send(msg)
898 if message_body is not None:
899 #message_body was not a string (i.e. it is a file) and
/home/dockeruser/anaconda2/lib/python2.7/httplib.pyc in send(self, data)
857 if self.sock is None:
858 if self.auto_open:
--> 859 self.connect()
860 else:
861 raise NotConnected()
/home/dockeruser/anaconda2/lib/python2.7/httplib.pyc in connect(self)
834 """Connect to the host and port specified in __init__."""
835 self.sock = self._create_connection((self.host,self.port),
--> 836 self.timeout, self.source_address)
837
838 if self._tunnel_host:
/home/dockeruser/anaconda2/lib/python2.7/socket.pyc in create_connection(address, timeout, source_address)
573
574 if err is not None:
--> 575 raise err
576 else:
577 raise error("getaddrinfo returns an empty list")
IOError: [Errno socket error] [Errno 110] Connection timed out