--> --> -->
 
 
<type 'exceptions.IOError'>
Python 2.6.5: /usr/bin/python
Sat Apr 12 03:29:28 2025

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/www.aaronsw.com/2002/advogato.cgi in ()
    4 person = cgi.FieldStorage()['person'].value
    5 zurl = "http://www.advogato.org/person/" + person + "/diary.html"
    6 doc = urllib.urlopen(zurl).read()
    7 reg = re.compile('<p> <a name="(\d+)"><b>([^<]+)</b></a>.*?<blockquote>(.*?)</blockquote>', re.S)
    8 reg2 = re.compile('<p> <a name="(\d+)"><b>([^<]+)</b></a>(.*?)<blockquote>', re.S)
doc undefined, urllib = <module 'urllib' from '/usr/lib/python2.6/urllib.pyc'>, urllib.urlopen = <function urlopen>, zurl = 'http://www.advogato.org/person/raph/diary.html', ).read undefined
 /usr/lib/python2.6/urllib.py in urlopen(url='http://www.advogato.org/person/raph/diary.html', data=None, proxies=None)
   84         opener = _urlopener
   85     if data is None:
   86         return opener.open(url)
   87     else:
   88         return opener.open(url, data)
opener = <urllib.FancyURLopener instance>, opener.open = <bound method FancyURLopener.open of <urllib.FancyURLopener instance>>, url = 'http://www.advogato.org/person/raph/diary.html'
 /usr/lib/python2.6/urllib.py in open(self=<urllib.FancyURLopener instance>, fullurl='http://www.advogato.org/person/raph/diary.html', data=None)
  203         try:
  204             if data is None:
  205                 return getattr(self, name)(url)
  206             else:
  207                 return getattr(self, name)(url, data)
builtin getattr = <built-in function getattr>, self = <urllib.FancyURLopener instance>, name = 'open_http', url = '//www.advogato.org/person/raph/diary.html'
 /usr/lib/python2.6/urllib.py in open_http(self=<urllib.FancyURLopener instance>, url='//www.advogato.org/person/raph/diary.html', data=None)
  358         else:
  359             if data is None:
  360                 return self.http_error(url, fp, errcode, errmsg, headers)
  361             else:
  362                 return self.http_error(url, fp, errcode, errmsg, headers, data)
self = <urllib.FancyURLopener instance>, self.http_error = <bound method FancyURLopener.http_error of <urllib.FancyURLopener instance>>, url = '//www.advogato.org/person/raph/diary.html', fp = <socket._fileobject object>, errcode = 301, errmsg = 'Moved Permanently', headers = <httplib.HTTPMessage instance>
 /usr/lib/python2.6/urllib.py in http_error(self=<urllib.FancyURLopener instance>, url='//www.advogato.org/person/raph/diary.html', fp=<socket._fileobject object>, errcode=301, errmsg='Moved Permanently', headers=<httplib.HTTPMessage instance>, data=None)
  371             method = getattr(self, name)
  372             if data is None:
  373                 result = method(url, fp, errcode, errmsg, headers)
  374             else:
  375                 result = method(url, fp, errcode, errmsg, headers, data)
result undefined, method = <bound method FancyURLopener.http_error_301 of <urllib.FancyURLopener instance>>, url = '//www.advogato.org/person/raph/diary.html', fp = <socket._fileobject object>, errcode = 301, errmsg = 'Moved Permanently', headers = <httplib.HTTPMessage instance>
 /usr/lib/python2.6/urllib.py in http_error_301(self=<urllib.FancyURLopener instance>, url='//www.advogato.org/person/raph/diary.html', fp=<socket._fileobject object>, errcode=301, errmsg='Moved Permanently', headers=<httplib.HTTPMessage instance>, data=None)
  655     def http_error_301(self, url, fp, errcode, errmsg, headers, data=None):
  656         """Error 301 -- also relocated (permanently)."""
  657         return self.http_error_302(url, fp, errcode, errmsg, headers, data)
  658 
  659     def http_error_303(self, url, fp, errcode, errmsg, headers, data=None):
self = <urllib.FancyURLopener instance>, self.http_error_302 = <bound method FancyURLopener.http_error_302 of <urllib.FancyURLopener instance>>, url = '//www.advogato.org/person/raph/diary.html', fp = <socket._fileobject object>, errcode = 301, errmsg = 'Moved Permanently', headers = <httplib.HTTPMessage instance>, data = None
 /usr/lib/python2.6/urllib.py in http_error_302(self=<urllib.FancyURLopener instance>, url='//www.advogato.org/person/raph/diary.html', fp=<socket._fileobject object>, errcode=301, errmsg='Moved Permanently', headers=<httplib.HTTPMessage instance>, data=None)
  636                         "Internal Server Error: Redirect Recursion", headers)
  637         result = self.redirect_internal(url, fp, errcode, errmsg, headers,
  638                                         data)
  639         self.tries = 0
  640         return result
data = None
 /usr/lib/python2.6/urllib.py in redirect_internal(self=<urllib.FancyURLopener instance>, url='//www.advogato.org/person/raph/diary.html', fp=<socket._fileobject object>, errcode=301, errmsg='Moved Permanently', headers=<httplib.HTTPMessage instance>, data=None)
  651         # In case the server sent a relative URL, join with original:
  652         newurl = basejoin(self.type + ":" + url, newurl)
  653         return self.open(newurl)
  654 
  655     def http_error_301(self, url, fp, errcode, errmsg, headers, data=None):
self = <urllib.FancyURLopener instance>, self.open = <bound method FancyURLopener.open of <urllib.FancyURLopener instance>>, newurl = 'https://www.advogato.org/person/raph/diary.html'
 /usr/lib/python2.6/urllib.py in open(self=<urllib.FancyURLopener instance>, fullurl='https://www.advogato.org/person/raph/diary.html', data=None)
  203         try:
  204             if data is None:
  205                 return getattr(self, name)(url)
  206             else:
  207                 return getattr(self, name)(url, data)
builtin getattr = <built-in function getattr>, self = <urllib.FancyURLopener instance>, name = 'open_https', url = '//www.advogato.org/person/raph/diary.html'
 /usr/lib/python2.6/urllib.py in open_https(self=<urllib.FancyURLopener instance>, url='//www.advogato.org/person/raph/diary.html', data=None)
  453             else:
  454                 if data is None:
  455                     return self.http_error(url, fp, errcode, errmsg, headers)
  456                 else:
  457                     return self.http_error(url, fp, errcode, errmsg, headers,
self = <urllib.FancyURLopener instance>, self.http_error = <bound method FancyURLopener.http_error of <urllib.FancyURLopener instance>>, url = '//www.advogato.org/person/raph/diary.html', fp = <socket._fileobject object>, errcode = 302, errmsg = 'Found', headers = <httplib.HTTPMessage instance>
 /usr/lib/python2.6/urllib.py in http_error(self=<urllib.FancyURLopener instance>, url='//www.advogato.org/person/raph/diary.html', fp=<socket._fileobject object>, errcode=302, errmsg='Found', headers=<httplib.HTTPMessage instance>, data=None)
  371             method = getattr(self, name)
  372             if data is None:
  373                 result = method(url, fp, errcode, errmsg, headers)
  374             else:
  375                 result = method(url, fp, errcode, errmsg, headers, data)
result undefined, method = <bound method FancyURLopener.http_error_302 of <urllib.FancyURLopener instance>>, url = '//www.advogato.org/person/raph/diary.html', fp = <socket._fileobject object>, errcode = 302, errmsg = 'Found', headers = <httplib.HTTPMessage instance>
 /usr/lib/python2.6/urllib.py in http_error_302(self=<urllib.FancyURLopener instance>, url='//www.advogato.org/person/raph/diary.html', fp=<socket._fileobject object>, errcode=302, errmsg='Found', headers=<httplib.HTTPMessage instance>, data=None)
  636                         "Internal Server Error: Redirect Recursion", headers)
  637         result = self.redirect_internal(url, fp, errcode, errmsg, headers,
  638                                         data)
  639         self.tries = 0
  640         return result
data = None
 /usr/lib/python2.6/urllib.py in redirect_internal(self=<urllib.FancyURLopener instance>, url='//www.advogato.org/person/raph/diary.html', fp=<socket._fileobject object>, errcode=302, errmsg='Found', headers=<httplib.HTTPMessage instance>, data=None)
  651         # In case the server sent a relative URL, join with original:
  652         newurl = basejoin(self.type + ":" + url, newurl)
  653         return self.open(newurl)
  654 
  655     def http_error_301(self, url, fp, errcode, errmsg, headers, data=None):
self = <urllib.FancyURLopener instance>, self.open = <bound method FancyURLopener.open of <urllib.FancyURLopener instance>>, newurl = 'https://web.archive.org/web/2/advogato.org/person/raph/diary.html'
 /usr/lib/python2.6/urllib.py in open(self=<urllib.FancyURLopener instance>, fullurl='https://web.archive.org/web/2/advogato.org/person/raph/diary.html', data=None)
  203         try:
  204             if data is None:
  205                 return getattr(self, name)(url)
  206             else:
  207                 return getattr(self, name)(url, data)
builtin getattr = <built-in function getattr>, self = <urllib.FancyURLopener instance>, name = 'open_https', url = '//web.archive.org/web/2/advogato.org/person/raph/diary.html'
 /usr/lib/python2.6/urllib.py in open_https(self=<urllib.FancyURLopener instance>, url='//web.archive.org/web/2/advogato.org/person/raph/diary.html', data=None)
  437             if realhost: h.putheader('Host', realhost)
  438             for args in self.addheaders: h.putheader(*args)
  439             h.endheaders()
  440             if data is not None:
  441                 h.send(data)
h = <httplib.HTTPS instance>, h.endheaders = <bound method HTTPSConnection.endheaders of <httplib.HTTPSConnection instance>>
 /usr/lib/python2.6/httplib.py in endheaders(self=<httplib.HTTPSConnection instance>)
  902             raise CannotSendHeader()
  903 
  904         self._send_output()
  905 
  906     def request(self, method, url, body=None, headers={}):
self = <httplib.HTTPSConnection instance>, self._send_output = <bound method HTTPSConnection._send_output of <httplib.HTTPSConnection instance>>
 /usr/lib/python2.6/httplib.py in _send_output(self=<httplib.HTTPSConnection instance>)
  774         msg = "\r\n".join(self._buffer)
  775         del self._buffer[:]
  776         self.send(msg)
  777 
  778     def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
self = <httplib.HTTPSConnection instance>, self.send = <bound method HTTPSConnection.send of <httplib.HTTPSConnection instance>>, msg = 'GET /web/2/advogato.org/person/raph/diary.html H...b.archive.org\r\nUser-Agent: Python-urllib/1.17\r\n\r\n'
 /usr/lib/python2.6/httplib.py in send(self=<httplib.HTTPSConnection instance>, str='GET /web/2/advogato.org/person/raph/diary.html H...b.archive.org\r\nUser-Agent: Python-urllib/1.17\r\n\r\n')
  733         if self.sock is None:
  734             if self.auto_open:
  735                 self.connect()
  736             else:
  737                 raise NotConnected()
self = <httplib.HTTPSConnection instance>, self.connect = <bound method HTTPSConnection.connect of <httplib.HTTPSConnection instance>>
 /usr/lib/python2.6/httplib.py in connect(self=<httplib.HTTPSConnection instance>)
 1110                 self.sock = sock
 1111                 self._tunnel()
 1112             self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
 1113 
 1114     __all__.append("HTTPSConnection")
self = <httplib.HTTPSConnection instance>, self.sock = None, global ssl = <module 'ssl' from '/usr/lib/python2.6/ssl.pyc'>, ssl.wrap_socket = <function wrap_socket>, sock = <socket._socketobject object>, self.key_file = None, self.cert_file = None
 /usr/lib/python2.6/ssl.py in wrap_socket(sock=<socket._socketobject object>, keyfile=None, certfile=None, server_side=False, cert_reqs=0, ssl_version=2, ca_certs=None, do_handshake_on_connect=True, suppress_ragged_eofs=True)
  348                      ssl_version=ssl_version, ca_certs=ca_certs,
  349                      do_handshake_on_connect=do_handshake_on_connect,
  350                      suppress_ragged_eofs=suppress_ragged_eofs)
  351 
  352 
suppress_ragged_eofs = True
 /usr/lib/python2.6/ssl.py in __init__(self=<ssl.SSLSocket object>, sock=<socket._socketobject object>, keyfile=None, certfile=None, server_side=False, cert_reqs=0, ssl_version=2, ca_certs=None, do_handshake_on_connect=True, suppress_ragged_eofs=True)
  116                 try:
  117                     self.settimeout(None)
  118                     self.do_handshake()
  119                 finally:
  120                     self.settimeout(timeout)
self = <ssl.SSLSocket object>, self.do_handshake = <bound method SSLSocket.do_handshake of <ssl.SSLSocket object>>
 /usr/lib/python2.6/ssl.py in do_handshake(self=<ssl.SSLSocket object>)
  291         """Perform a TLS/SSL handshake."""
  292 
  293         self._sslobj.do_handshake()
  294 
  295     def connect(self, addr):
self = <ssl.SSLSocket object>, self._sslobj = <ssl.SSLContext object>, self._sslobj.do_handshake = <built-in method do_handshake of ssl.SSLContext object>

<type 'exceptions.IOError'>: [Errno socket error] [Errno 1] _ssl.c:480: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
      args = ('socket error', SSLError(1, '_ssl.c:480: error:1407742E:SSL rout...3_GET_SERVER_HELLO:tlsv1 alert protocol version'))
      errno = 'socket error'
      filename = None
      message = ''
      strerror = SSLError(1, '_ssl.c:480: error:1407742E:SSL rout...3_GET_SERVER_HELLO:tlsv1 alert protocol version')