HTTPErrorTraceback (most recent call last)
<ipython-input-3-ec386496bd19> in <module>()
15 pd.set_option('display.width',120)
16
---> 17 abalone = fetch_mldata('abalone')
18
19 abalone_df = pd.DataFrame(abalone.data, columns=['Sex','Length','Diameter','Height','Whole','Shucked','Viscera','Shell'])
/usr/local/lib/python2.7/dist-packages/sklearn/datasets/mldata.pyc in fetch_mldata(dataname, target_name, data_name, transpose_data, data_home)
140 urlname = MLDATA_BASE_URL % quote(dataname)
141 try:
--> 142 mldata_url = urlopen(urlname)
143 except HTTPError as e:
144 if e.code == 404:
/usr/lib/python2.7/urllib2.pyc in urlopen(url, data, timeout, cafile, capath, cadefault, context)
152 else:
153 opener = _opener
--> 154 return opener.open(url, data, timeout)
155
156 def install_opener(opener):
/usr/lib/python2.7/urllib2.pyc in open(self, fullurl, data, timeout)
435 for processor in self.process_response.get(protocol, []):
436 meth = getattr(processor, meth_name)
--> 437 response = meth(req, response)
438
439 return response
/usr/lib/python2.7/urllib2.pyc in http_response(self, request, response)
548 if not (200 <= code < 300):
549 response = self.parent.error(
--> 550 'http', request, response, code, msg, hdrs)
551
552 return response
/usr/lib/python2.7/urllib2.pyc in error(self, proto, *args)
467 http_err = 0
468 args = (dict, proto, meth_name) + args
--> 469 result = self._call_chain(*args)
470 if result:
471 return result
/usr/lib/python2.7/urllib2.pyc in _call_chain(self, chain, kind, meth_name, *args)
407 func = getattr(handler, meth_name)
408
--> 409 result = func(*args)
410 if result is not None:
411 return result
/usr/lib/python2.7/urllib2.pyc in http_error_302(self, req, fp, code, msg, headers)
654 fp.close()
655
--> 656 return self.parent.open(new, timeout=req.timeout)
657
658 http_error_301 = http_error_303 = http_error_307 = http_error_302
/usr/lib/python2.7/urllib2.pyc in open(self, fullurl, data, timeout)
435 for processor in self.process_response.get(protocol, []):
436 meth = getattr(processor, meth_name)
--> 437 response = meth(req, response)
438
439 return response
/usr/lib/python2.7/urllib2.pyc in http_response(self, request, response)
548 if not (200 <= code < 300):
549 response = self.parent.error(
--> 550 'http', request, response, code, msg, hdrs)
551
552 return response
/usr/lib/python2.7/urllib2.pyc in error(self, proto, *args)
473 if http_err:
474 args = (dict, 'default', 'http_error_default') + orig_args
--> 475 return self._call_chain(*args)
476
477 # XXX probably also want an abstract factory that knows when it makes
/usr/lib/python2.7/urllib2.pyc in _call_chain(self, chain, kind, meth_name, *args)
407 func = getattr(handler, meth_name)
408
--> 409 result = func(*args)
410 if result is not None:
411 return result
/usr/lib/python2.7/urllib2.pyc in http_error_default(self, req, fp, code, msg, hdrs)
556 class HTTPDefaultErrorHandler(BaseHandler):
557 def http_error_default(self, req, fp, code, msg, hdrs):
--> 558 raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
559
560 class HTTPRedirectHandler(BaseHandler):
HTTPError: HTTP Error 500: Internal Server Error