--> -->
 
 
sslerror
Python 2.3.5: /usr/bin/python2.3
Tue Oct 24 03:43:53 2017

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/lairds.org/Kyler/interfaces/Petfinder.cgi
   98                 img_scale = None
   99 
  100         animals = Petfinder.animals(query)
  101 
  102         print '<table>'
animals undefined, Petfinder = <module 'Petfinder' from '/var/www/lairds.org/Kyler/interfaces/Petfinder.pyc'>, Petfinder.animals = <function animals>, query = {'action': ['1'], 'location': ['47905'], 'pet.Animal': ['Dog'], 'pet.Breed': ['Standard Poodle'], 'preview': ['1'], 'row': ['1'], 'scope': ['2']}

 /var/www/lairds.org/Kyler/interfaces/Petfinder.py in animals(query={'action': ['1'], 'location': ['47905'], 'pet.Animal': ['Dog'], 'pet.Breed': ['Standard Poodle'], 'preview': ['1'], 'row': ['1'], 'scope': ['2']})
  207                         f = open('/tmp/pf.html', 'r')
  208                 else:
  209                         f = urllib.urlopen(url)
  210 
  211                 soup = BeautifulSoup.BeautifulSoup()
f undefined, global urllib = <module 'urllib' from '/usr/lib/python2.3/urllib.pyc'>, urllib.urlopen = <function urlopen>, url = 'http://search.petfinder.com/search/search.cgi?pe...g&location=47905&action=1&scope=2&preview=1&row=1'

 /usr/lib/python2.3/urllib.py in urlopen(url='http://search.petfinder.com/search/search.cgi?pe...g&location=47905&action=1&scope=2&preview=1&row=1', data=None, proxies=None)
   74         opener = _urlopener
   75     if data is None:
   76         return opener.open(url)
   77     else:
   78         return opener.open(url, data)
opener = <urllib.FancyURLopener instance>, opener.open = <bound method FancyURLopener.open of <urllib.FancyURLopener instance>>, url = 'http://search.petfinder.com/search/search.cgi?pe...g&location=47905&action=1&scope=2&preview=1&row=1'

 /usr/lib/python2.3/urllib.py in open(self=<urllib.FancyURLopener instance>, fullurl='http://search.petfinder.com/search/search.cgi?pe...g&location=47905&action=1&scope=2&preview=1&row=1', data=None)
  179         try:
  180             if data is None:
  181                 return getattr(self, name)(url)
  182             else:
  183                 return getattr(self, name)(url, data)
builtin getattr = <built-in function getattr>, self = <urllib.FancyURLopener instance>, name = 'open_http', url = '//search.petfinder.com/search/search.cgi?pet.Bre...g&location=47905&action=1&scope=2&preview=1&row=1'

 /usr/lib/python2.3/urllib.py in open_http(self=<urllib.FancyURLopener instance>, url='//search.petfinder.com/search/search.cgi?pet.Bre...g&location=47905&action=1&scope=2&preview=1&row=1', data=None)
  304         else:
  305             if data is None:
  306                 return self.http_error(url, fp, errcode, errmsg, headers)
  307             else:
  308                 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 = '//search.petfinder.com/search/search.cgi?pet.Bre...g&location=47905&action=1&scope=2&preview=1&row=1', fp = <socket._fileobject object>, errcode = 301, errmsg = 'Moved Permanently', headers = <httplib.HTTPMessage instance>

 /usr/lib/python2.3/urllib.py in http_error(self=<urllib.FancyURLopener instance>, url='//search.petfinder.com/search/search.cgi?pet.Bre...g&location=47905&action=1&scope=2&preview=1&row=1', fp=<socket._fileobject object>, errcode=301, errmsg='Moved Permanently', headers=<httplib.HTTPMessage instance>, data=None)
  317             method = getattr(self, name)
  318             if data is None:
  319                 result = method(url, fp, errcode, errmsg, headers)
  320             else:
  321                 result = method(url, fp, errcode, errmsg, headers, data)
result undefined, method = <bound method FancyURLopener.http_error_301 of <urllib.FancyURLopener instance>>, url = '//search.petfinder.com/search/search.cgi?pet.Bre...g&location=47905&action=1&scope=2&preview=1&row=1', fp = <socket._fileobject object>, errcode = 301, errmsg = 'Moved Permanently', headers = <httplib.HTTPMessage instance>

 /usr/lib/python2.3/urllib.py in http_error_301(self=<urllib.FancyURLopener instance>, url='//search.petfinder.com/search/search.cgi?pet.Bre...g&location=47905&action=1&scope=2&preview=1&row=1', fp=<socket._fileobject object>, errcode=301, errmsg='Moved Permanently', headers=<httplib.HTTPMessage instance>, data=None)
  582     def http_error_301(self, url, fp, errcode, errmsg, headers, data=None):
  583         """Error 301 -- also relocated (permanently)."""
  584         return self.http_error_302(url, fp, errcode, errmsg, headers, data)
  585 
  586     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 = '//search.petfinder.com/search/search.cgi?pet.Bre...g&location=47905&action=1&scope=2&preview=1&row=1', fp = <socket._fileobject object>, errcode = 301, errmsg = 'Moved Permanently', headers = <httplib.HTTPMessage instance>, data = None

 /usr/lib/python2.3/urllib.py in http_error_302(self=<urllib.FancyURLopener instance>, url='//search.petfinder.com/search/search.cgi?pet.Bre...g&location=47905&action=1&scope=2&preview=1&row=1', fp=<socket._fileobject object>, errcode=301, errmsg='Moved Permanently', headers=<httplib.HTTPMessage instance>, data=None)
  563                         "Internal Server Error: Redirect Recursion", headers)
  564         result = self.redirect_internal(url, fp, errcode, errmsg, headers,
  565                                         data)
  566         self.tries = 0
  567         return result
data = None

 /usr/lib/python2.3/urllib.py in redirect_internal(self=<urllib.FancyURLopener instance>, url='//search.petfinder.com/search/search.cgi?pet.Bre...g&location=47905&action=1&scope=2&preview=1&row=1', fp=<socket._fileobject object>, errcode=301, errmsg='Moved Permanently', headers=<httplib.HTTPMessage instance>, data=None)
  578         # In case the server sent a relative URL, join with original:
  579         newurl = basejoin(self.type + ":" + url, newurl)
  580         return self.open(newurl)
  581 
  582     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 = 'http://awos.petfinder.com/shelters/search.html?p...g&location=47905&action=1&scope=2&preview=1&row=1'

 /usr/lib/python2.3/urllib.py in open(self=<urllib.FancyURLopener instance>, fullurl='http://awos.petfinder.com/shelters/search.html?p...g&location=47905&action=1&scope=2&preview=1&row=1', data=None)
  179         try:
  180             if data is None:
  181                 return getattr(self, name)(url)
  182             else:
  183                 return getattr(self, name)(url, data)
builtin getattr = <built-in function getattr>, self = <urllib.FancyURLopener instance>, name = 'open_http', url = '//awos.petfinder.com/shelters/search.html?pet.Br...g&location=47905&action=1&scope=2&preview=1&row=1'

 /usr/lib/python2.3/urllib.py in open_http(self=<urllib.FancyURLopener instance>, url='//awos.petfinder.com/shelters/search.html?pet.Br...g&location=47905&action=1&scope=2&preview=1&row=1', data=None)
  304         else:
  305             if data is None:
  306                 return self.http_error(url, fp, errcode, errmsg, headers)
  307             else:
  308                 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 = '//awos.petfinder.com/shelters/search.html?pet.Br...g&location=47905&action=1&scope=2&preview=1&row=1', fp = <socket._fileobject object>, errcode = 302, errmsg = 'Found', headers = <httplib.HTTPMessage instance>

 /usr/lib/python2.3/urllib.py in http_error(self=<urllib.FancyURLopener instance>, url='//awos.petfinder.com/shelters/search.html?pet.Br...g&location=47905&action=1&scope=2&preview=1&row=1', fp=<socket._fileobject object>, errcode=302, errmsg='Found', headers=<httplib.HTTPMessage instance>, data=None)
  317             method = getattr(self, name)
  318             if data is None:
  319                 result = method(url, fp, errcode, errmsg, headers)
  320             else:
  321                 result = method(url, fp, errcode, errmsg, headers, data)
result undefined, method = <bound method FancyURLopener.http_error_302 of <urllib.FancyURLopener instance>>, url = '//awos.petfinder.com/shelters/search.html?pet.Br...g&location=47905&action=1&scope=2&preview=1&row=1', fp = <socket._fileobject object>, errcode = 302, errmsg = 'Found', headers = <httplib.HTTPMessage instance>

 /usr/lib/python2.3/urllib.py in http_error_302(self=<urllib.FancyURLopener instance>, url='//awos.petfinder.com/shelters/search.html?pet.Br...g&location=47905&action=1&scope=2&preview=1&row=1', fp=<socket._fileobject object>, errcode=302, errmsg='Found', headers=<httplib.HTTPMessage instance>, data=None)
  563                         "Internal Server Error: Redirect Recursion", headers)
  564         result = self.redirect_internal(url, fp, errcode, errmsg, headers,
  565                                         data)
  566         self.tries = 0
  567         return result
data = None

 /usr/lib/python2.3/urllib.py in redirect_internal(self=<urllib.FancyURLopener instance>, url='//awos.petfinder.com/shelters/search.html?pet.Br...g&location=47905&action=1&scope=2&preview=1&row=1', fp=<socket._fileobject object>, errcode=302, errmsg='Found', headers=<httplib.HTTPMessage instance>, data=None)
  578         # In case the server sent a relative URL, join with original:
  579         newurl = basejoin(self.type + ":" + url, newurl)
  580         return self.open(newurl)
  581 
  582     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.petfinder.com/'

 /usr/lib/python2.3/urllib.py in open(self=<urllib.FancyURLopener instance>, fullurl='https://www.petfinder.com/', data=None)
  179         try:
  180             if data is None:
  181                 return getattr(self, name)(url)
  182             else:
  183                 return getattr(self, name)(url, data)
builtin getattr = <built-in function getattr>, self = <urllib.FancyURLopener instance>, name = 'open_https', url = '//www.petfinder.com/'

 /usr/lib/python2.3/urllib.py in open_https(self=<urllib.FancyURLopener instance>, url='//www.petfinder.com/', data=None)
  373             if realhost: h.putheader('Host', realhost)
  374             for args in self.addheaders: h.putheader(*args)
  375             h.endheaders()
  376             if data is not None:
  377                 h.send(data)
h = <httplib.HTTPS instance>, h.endheaders = <bound method HTTPSConnection.endheaders of <httplib.HTTPSConnection instance>>

 /usr/lib/python2.3/httplib.py in endheaders(self=<httplib.HTTPSConnection instance>)
  713             raise CannotSendHeader()
  714 
  715         self._send_output()
  716 
  717     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.3/httplib.py in _send_output(self=<httplib.HTTPSConnection instance>)
  598         msg = "\r\n".join(self._buffer)
  599         del self._buffer[:]
  600         self.send(msg)
  601 
  602     def putrequest(self, method, url, skip_host=0):
self = <httplib.HTTPSConnection instance>, self.send = <bound method HTTPSConnection.send of <httplib.HTTPSConnection instance>>, msg = 'GET / HTTP/1.0\r\nHost: www.petfinder.com\r\nUser-agent: Python-urllib/1.15\r\n\r\n'

 /usr/lib/python2.3/httplib.py in send(self=<httplib.HTTPSConnection instance>, str='GET / HTTP/1.0\r\nHost: www.petfinder.com\r\nUser-agent: Python-urllib/1.15\r\n\r\n')
  565         if self.sock is None:
  566             if self.auto_open:
  567                 self.connect()
  568             else:
  569                 raise NotConnected()
self = <httplib.HTTPSConnection instance>, self.connect = <bound method HTTPSConnection.connect of <httplib.HTTPSConnection instance>>

 /usr/lib/python2.3/httplib.py in connect(self=<httplib.HTTPSConnection instance>)
  986         sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  987         sock.connect((self.host, self.port))
  988         ssl = socket.ssl(sock, self.key_file, self.cert_file)
  989         self.sock = FakeSocket(sock, ssl)
  990 
ssl undefined, global socket = <module 'socket' from '/usr/lib/python2.3/socket.pyc'>, socket.ssl = <function ssl>, sock = <socket._socketobject object>, self = <httplib.HTTPSConnection instance>, self.key_file = None, self.cert_file = None

 /usr/lib/python2.3/socket.py in ssl(sock=<socket object, fd=4, family=2, type=1, protocol=0>, keyfile=None, certfile=None)
   71         if hasattr(sock, "_sock"):
   72             sock = sock._sock
   73         return _realssl(sock, keyfile, certfile)
   74 
   75 # WSA error codes
global _realssl = <built-in function ssl>, sock = <socket object, fd=4, family=2, type=1, protocol=0>, keyfile = None, certfile = None

sslerror: (8, 'EOF occurred in violation of protocol')
      args = (8, 'EOF occurred in violation of protocol')