--> --> -->
 
 
<class 'socket.error'>
Python 2.7.6: /usr/bin/python
Wed Nov 21 02:02:03 2018

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 ()
     77     print s.render(walker(treeToc), encoding="utf-8")
     78     
     79 
     80 if __name__ == "__main__":
=>   81     main()
main = <function main>
 /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://www.tagged.com/denis_sem')]), ].value = [MiniFieldStorage('url', 'http://www.tagged.com/denis_sem')], namespaceHTMLElements undefined, builtin False = False
 /usr/lib/python2.7/urllib2.py in urlopen(url='http://www.tagged.com/denis_sem', 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://www.tagged.com/denis_sem', data = None, timeout = <object object>
 /usr/lib/python2.7/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl='http://www.tagged.com/denis_sem', 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 3683911201712 whose fp = None>, 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 3683911201712 whose fp = None>)
    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 3683911201712 whose fp = None>, code = 302, msg = 'Found', hdrs = <httplib.HTTPMessage instance>
 /usr/lib/python2.7/urllib2.py in error(self=<urllib2.OpenerDirector instance>, proto=302, *args=({301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, 302, 'http_error_302', <urllib2.Request instance>, <addinfourl at 3683911201712 whose fp = None>, 302, 'Found', <httplib.HTTPMessage instance>))
    440             http_err = 0
    441         args = (dict, proto, meth_name) + args
=>  442         result = self._call_chain(*args)
    443         if result:
    444             return result
result undefined, 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>]}, 302, 'http_error_302', <urllib2.Request instance>, <addinfourl at 3683911201712 whose fp = None>, 302, '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=302, meth_name='http_error_302', *args=(<urllib2.Request instance>, <addinfourl at 3683911201712 whose fp = None>, 302, '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 HTTPRedirectHandler.http_error_302 of <urllib2.HTTPRedirectHandler instance>>, args = (<urllib2.Request instance>, <addinfourl at 3683911201712 whose fp = None>, 302, 'Found', <httplib.HTTPMessage instance>)
 /usr/lib/python2.7/urllib2.py in http_error_302(self=<urllib2.HTTPRedirectHandler instance>, req=<urllib2.Request instance>, fp=<addinfourl at 3683911201712 whose fp = None>, code=302, msg='Found', headers=<httplib.HTTPMessage instance>)
    627         fp.close()
    628 
=>  629         return self.parent.open(new, timeout=req.timeout)
    630 
    631     http_error_301 = http_error_303 = http_error_307 = http_error_302
self = <urllib2.HTTPRedirectHandler instance>, self.parent = <urllib2.OpenerDirector instance>, self.parent.open = <bound method OpenerDirector.open of <urllib2.OpenerDirector instance>>, new = <urllib2.Request instance>, timeout undefined, req = <urllib2.Request instance>, req.timeout = <object object>
 /usr/lib/python2.7/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl=<urllib2.Request instance>, 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 3683911202576 whose fp = None>, 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 3683911202576 whose fp = None>)
    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 3683911202576 whose fp = None>, code = 302, msg = 'Found', hdrs = <httplib.HTTPMessage instance>
 /usr/lib/python2.7/urllib2.py in error(self=<urllib2.OpenerDirector instance>, proto=302, *args=({301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, 302, 'http_error_302', <urllib2.Request instance>, <addinfourl at 3683911202576 whose fp = None>, 302, 'Found', <httplib.HTTPMessage instance>))
    440             http_err = 0
    441         args = (dict, proto, meth_name) + args
=>  442         result = self._call_chain(*args)
    443         if result:
    444             return result
result undefined, 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>]}, 302, 'http_error_302', <urllib2.Request instance>, <addinfourl at 3683911202576 whose fp = None>, 302, '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=302, meth_name='http_error_302', *args=(<urllib2.Request instance>, <addinfourl at 3683911202576 whose fp = None>, 302, '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 HTTPRedirectHandler.http_error_302 of <urllib2.HTTPRedirectHandler instance>>, args = (<urllib2.Request instance>, <addinfourl at 3683911202576 whose fp = None>, 302, 'Found', <httplib.HTTPMessage instance>)
 /usr/lib/python2.7/urllib2.py in http_error_302(self=<urllib2.HTTPRedirectHandler instance>, req=<urllib2.Request instance>, fp=<addinfourl at 3683911202576 whose fp = None>, code=302, msg='Found', headers=<httplib.HTTPMessage instance>)
    627         fp.close()
    628 
=>  629         return self.parent.open(new, timeout=req.timeout)
    630 
    631     http_error_301 = http_error_303 = http_error_307 = http_error_302
self = <urllib2.HTTPRedirectHandler instance>, self.parent = <urllib2.OpenerDirector instance>, self.parent.open = <bound method OpenerDirector.open of <urllib2.OpenerDirector instance>>, new = <urllib2.Request instance>, timeout undefined, req = <urllib2.Request instance>, req.timeout = <object object>
 /usr/lib/python2.7/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl=<urllib2.Request instance>, 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 3683911203152 whose fp = None>, 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 3683911203152 whose fp = None>)
    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 3683911203152 whose fp = None>, code = 302, msg = 'Found', hdrs = <httplib.HTTPMessage instance>
 /usr/lib/python2.7/urllib2.py in error(self=<urllib2.OpenerDirector instance>, proto=302, *args=({301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, 302, 'http_error_302', <urllib2.Request instance>, <addinfourl at 3683911203152 whose fp = None>, 302, 'Found', <httplib.HTTPMessage instance>))
    440             http_err = 0
    441         args = (dict, proto, meth_name) + args
=>  442         result = self._call_chain(*args)
    443         if result:
    444             return result
result undefined, 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>]}, 302, 'http_error_302', <urllib2.Request instance>, <addinfourl at 3683911203152 whose fp = None>, 302, '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=302, meth_name='http_error_302', *args=(<urllib2.Request instance>, <addinfourl at 3683911203152 whose fp = None>, 302, '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 HTTPRedirectHandler.http_error_302 of <urllib2.HTTPRedirectHandler instance>>, args = (<urllib2.Request instance>, <addinfourl at 3683911203152 whose fp = None>, 302, 'Found', <httplib.HTTPMessage instance>)
 /usr/lib/python2.7/urllib2.py in http_error_302(self=<urllib2.HTTPRedirectHandler instance>, req=<urllib2.Request instance>, fp=<addinfourl at 3683911203152 whose fp = None>, code=302, msg='Found', headers=<httplib.HTTPMessage instance>)
    627         fp.close()
    628 
=>  629         return self.parent.open(new, timeout=req.timeout)
    630 
    631     http_error_301 = http_error_303 = http_error_307 = http_error_302
self = <urllib2.HTTPRedirectHandler instance>, self.parent = <urllib2.OpenerDirector instance>, self.parent.open = <bound method OpenerDirector.open of <urllib2.OpenerDirector instance>>, new = <urllib2.Request instance>, timeout undefined, req = <urllib2.Request instance>, req.timeout = <object object>
 /usr/lib/python2.7/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl=<urllib2.Request instance>, data=None, timeout=<object object>)
    402             req = meth(req)
    403 
=>  404         response = self._open(req, data)
    405 
    406         # post-process response
response undefined, self = <urllib2.OpenerDirector instance>, self._open = <bound method OpenerDirector._open of <urllib2.OpenerDirector instance>>, req = <urllib2.Request instance>, data = None
 /usr/lib/python2.7/urllib2.py in _open(self=<urllib2.OpenerDirector instance>, req=<urllib2.Request instance>, data=None)
    420         protocol = req.get_type()
    421         result = self._call_chain(self.handle_open, protocol, protocol +
=>  422                                   '_open', req)
    423         if result:
    424             return result
req = <urllib2.Request instance>
 /usr/lib/python2.7/urllib2.py in _call_chain(self=<urllib2.OpenerDirector instance>, chain={'file': [<urllib2.FileHandler instance>], 'ftp': [<urllib2.FTPHandler instance>], 'http': [<urllib2.HTTPHandler instance>], 'https': [<urllib2.HTTPSHandler instance>], 'unknown': [<urllib2.UnknownHandler instance>]}, kind='https', meth_name='https_open', *args=(<urllib2.Request 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 HTTPSHandler.https_open of <urllib2.HTTPSHandler instance>>, args = (<urllib2.Request instance>,)
 /usr/lib/python2.7/urllib2.py in https_open(self=<urllib2.HTTPSHandler instance>, req=<urllib2.Request instance>)
   1220 
   1221         def https_open(self, req):
=> 1222             return self.do_open(httplib.HTTPSConnection, req)
   1223 
   1224         https_request = AbstractHTTPHandler.do_request_
self = <urllib2.HTTPSHandler instance>, self.do_open = <bound method HTTPSHandler.do_open of <urllib2.HTTPSHandler instance>>, global httplib = <module 'httplib' from '/usr/lib/python2.7/httplib.pyc'>, httplib.HTTPSConnection = <class httplib.HTTPSConnection>, req = <urllib2.Request instance>
 /usr/lib/python2.7/urllib2.py in do_open(self=<urllib2.HTTPSHandler instance>, http_class=<class httplib.HTTPSConnection>, req=<urllib2.Request instance>)
   1185         else:
   1186             try:
=> 1187                 r = h.getresponse(buffering=True)
   1188             except TypeError: # buffering kw not supported
   1189                 r = h.getresponse()
r undefined, h = <httplib.HTTPSConnection instance>, h.getresponse = <bound method HTTPSConnection.getresponse of <httplib.HTTPSConnection instance>>, buffering undefined, builtin True = True
 /usr/lib/python2.7/httplib.py in getresponse(self=<httplib.HTTPSConnection instance>, buffering=True)
   1087         response = self.response_class(*args, **kwds)
   1088 
=> 1089         response.begin()
   1090         assert response.will_close != _UNKNOWN
   1091         self.__state = _CS_IDLE
response = <httplib.HTTPResponse instance>, response.begin = <bound method HTTPResponse.begin of <httplib.HTTPResponse instance>>
 /usr/lib/python2.7/httplib.py in begin(self=<httplib.HTTPResponse instance>)
    442         # read until we get a non-100 response
    443         while True:
=>  444             version, status, reason = self._read_status()
    445             if status != CONTINUE:
    446                 break
version undefined, status undefined, reason undefined, self = <httplib.HTTPResponse instance>, self._read_status = <bound method HTTPResponse._read_status of <httplib.HTTPResponse instance>>
 /usr/lib/python2.7/httplib.py in _read_status(self=<httplib.HTTPResponse instance>)
    398     def _read_status(self):
    399         # Initialize with Simple-Response defaults
=>  400         line = self.fp.readline(_MAXLINE + 1)
    401         if len(line) > _MAXLINE:
    402             raise LineTooLong("header line")
line undefined, self = <httplib.HTTPResponse instance>, self.fp = <socket._fileobject object>, self.fp.readline = <bound method _fileobject.readline of <socket._fileobject object>>, global _MAXLINE = 65536
 /usr/lib/python2.7/socket.py in readline(self=<socket._fileobject object>, size=65537)
    474             while True:
    475                 try:
=>  476                     data = self._sock.recv(self._rbufsize)
    477                 except error, e:
    478                     if e.args[0] == EINTR:
data undefined, self = <socket._fileobject object>, self._sock = <ssl.SSLSocket object>, self._sock.recv = <bound method SSLSocket.recv of <ssl.SSLSocket object>>, self._rbufsize = 8192
 /usr/lib/python2.7/ssl.py in recv(self=<ssl.SSLSocket object>, buflen=8192, flags=0)
    339                     "non-zero flags not allowed in calls to recv() on %s" %
    340                     self.__class__)
=>  341             return self.read(buflen)
    342         else:
    343             return self._sock.recv(buflen, flags)
self = <ssl.SSLSocket object>, self.read = <bound method SSLSocket.read of <ssl.SSLSocket object>>, buflen = 8192
 /usr/lib/python2.7/ssl.py in read(self=<ssl.SSLSocket object>, len=8192)
    258 
    259         try:
=>  260             return self._sslobj.read(len)
    261         except SSLError, x:
    262             if x.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs:
self = <ssl.SSLSocket object>, self._sslobj = <ssl.SSLContext object>, self._sslobj.read = <built-in method read of ssl.SSLContext object>, len = 8192

<class 'socket.error'>: [Errno 104] Connection reset by peer
      args = (104, 'Connection reset by peer')
      errno = 104
      filename = None
      message = ''
      strerror = 'Connection reset by peer'