A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/home/gsnedders/gsnedders.html5.org/outliner/process.py in main() |
51 fromTree(tree)
|
52 elif "url" in form and form["url"].value.strip().startswith("http"):
|
=> 53 tree = html5lib.parse(urllib2.urlopen(form["url"].value), "lxml", namespaceHTMLElements=False)
|
54 fromTree(tree)
|
55 else:
|
tree undefined, global html5lib = <module 'html5lib' from '/home/gsnedders/.python...ml5lib-0.95_dev-py2.5.egg/html5lib/__init__.pyc'>, html5lib.parse = <function parse>, global urllib2 = <module 'urllib2' from '/usr/lib/python2.7/urllib2.pyc'>, urllib2.urlopen = <function urlopen>, form = FieldStorage(None, None, [MiniFieldStorage('url', 'http://digg.com/channel/cock')]), ].value = [MiniFieldStorage('url', 'http://digg.com/channel/cock')], namespaceHTMLElements undefined, builtin False = False |
/usr/lib/python2.7/urllib2.py in urlopen(url='http://digg.com/channel/cock', data=None, timeout=<object object>) |
125 if _opener is None:
|
126 _opener = build_opener()
|
=> 127 return _opener.open(url, data, timeout)
|
128
|
129 def install_opener(opener):
|
global _opener = <urllib2.OpenerDirector instance>, _opener.open = <bound method OpenerDirector.open of <urllib2.OpenerDirector instance>>, url = 'http://digg.com/channel/cock', data = None, timeout = <object object> |
/usr/lib/python2.7/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl='http://digg.com/channel/cock', data=None, timeout=<object object>) |
408 for processor in self.process_response.get(protocol, []):
|
409 meth = getattr(processor, meth_name)
|
=> 410 response = meth(req, response)
|
411
|
412 return response
|
response = <addinfourl at 2728467337872 whose fp = <socket._fileobject object>>, meth = <bound method HTTPErrorProcessor.http_response of <urllib2.HTTPErrorProcessor instance>>, req = <urllib2.Request instance> |
/usr/lib/python2.7/urllib2.py in http_response(self=<urllib2.HTTPErrorProcessor instance>, request=<urllib2.Request instance>, response=<addinfourl at 2728467337872 whose fp = <socket._fileobject object>>) |
521 if not (200 <= code < 300):
|
522 response = self.parent.error(
|
=> 523 'http', request, response, code, msg, hdrs)
|
524
|
525 return response
|
request = <urllib2.Request instance>, response = <addinfourl at 2728467337872 whose fp = <socket._fileobject object>>, code = 404, msg = 'Not Found', hdrs = <httplib.HTTPMessage instance> |
/usr/lib/python2.7/urllib2.py in error(self=<urllib2.OpenerDirector instance>, proto=404, *args=({301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, 'default', 'http_error_default', <urllib2.Request instance>, <addinfourl at 2728467337872 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)) |
446 if http_err:
|
447 args = (dict, 'default', 'http_error_default') + orig_args
|
=> 448 return self._call_chain(*args)
|
449
|
450 # XXX probably also want an abstract factory that knows when it makes
|
self = <urllib2.OpenerDirector instance>, self._call_chain = <bound method OpenerDirector._call_chain of <urllib2.OpenerDirector instance>>, args = ({301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, 'default', 'http_error_default', <urllib2.Request instance>, <addinfourl at 2728467337872 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>) |
/usr/lib/python2.7/urllib2.py in _call_chain(self=<urllib2.OpenerDirector instance>, chain={301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, kind='default', meth_name='http_error_default', *args=(<urllib2.Request instance>, <addinfourl at 2728467337872 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)) |
380 func = getattr(handler, meth_name)
|
381
|
=> 382 result = func(*args)
|
383 if result is not None:
|
384 return result
|
result undefined, func = <bound method HTTPDefaultErrorHandler.http_error...lt of <urllib2.HTTPDefaultErrorHandler instance>>, args = (<urllib2.Request instance>, <addinfourl at 2728467337872 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>) |
/usr/lib/python2.7/urllib2.py in http_error_default(self=<urllib2.HTTPDefaultErrorHandler instance>, req=<urllib2.Request instance>, fp=<addinfourl at 2728467337872 whose fp = <socket._fileobject object>>, code=404, msg='Not Found', hdrs=<httplib.HTTPMessage instance>) |
529 class HTTPDefaultErrorHandler(BaseHandler):
|
530 def http_error_default(self, req, fp, code, msg, hdrs):
|
=> 531 raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
|
532
|
533 class HTTPRedirectHandler(BaseHandler):
|
global HTTPError = <class 'urllib2.HTTPError'>, req = <urllib2.Request instance>, req.get_full_url = <bound method Request.get_full_url of <urllib2.Request instance>>, code = 404, msg = 'Not Found', hdrs = <httplib.HTTPMessage instance>, fp = <addinfourl at 2728467337872 whose fp = <socket._fileobject object>> |