--> -->
 
 
URLError
Python 2.4.6: /usr/local/bin/python2.4
Tue Sep 16 15:25:45 2014

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/fuzzyman/webapps/www.voidspace.org.uk/cgi-bin/pysearch/search.py
  222     config = ConfigObj(cfg_file)
  223     #
  224     main(config)
  225 
  226 """
main = <function main>, config = {'app_id': 'voidspace', 'DEBUG': 'False', 'path'...'term1': 'python', 'term2': 'python programming'}
 /home/fuzzyman/webapps/www.voidspace.org.uk/cgi-bin/pysearch/search.py in main(config={'app_id': 'voidspace', 'DEBUG': 'False', 'path'...'term1': 'python', 'term2': 'python programming'})
   84     if not isblank(req):
   85         c = time.time()
   86         body, num = search(req['query'], start, config)
   87         body =  result_line % body
   88         count_file = join(path, counter) 
body = '', num undefined, global search = <function search>, req = {'query': 'voidspace', 'start': ''}, start = 0, config = {'app_id': 'voidspace', 'DEBUG': 'False', 'path'...'term1': 'python', 'term2': 'python programming'}
 /home/fuzzyman/webapps/www.voidspace.org.uk/cgi-bin/pysearch/search.py in search(query='voidspace', start=0, config={'app_id': 'voidspace', 'DEBUG': 'False', 'path'...'term1': 'python', 'term2': 'python programming'})
  131     else:
  132         srch.query = query
  133     results.update(do_query(srch, pos, domain_hash, allowed))
  134     #
  135     if term1:
results = OrderedDict([]), results.update = <bound method OrderedDict.update of OrderedDict([])>, global do_query = <function do_query>, srch = <yahoo.search.web.WebSearch object>, pos = 1, domain_hash = {'0x50.org': 3, '37signals.com': 58, '3dartist.com': 3887, '3dtree.com': 2, '42.blogs.warnock.me.uk': 1354, '4suite.org': 358, '96db.com': 279, 'aaronsw.com': 4535, 'abo.fi': 6, 'acooke.org': 347, ...}, allowed = ''
 /home/fuzzyman/webapps/www.voidspace.org.uk/cgi-bin/pysearch/search.py in do_query(srch=<yahoo.search.web.WebSearch object>, pos=1, domain_hash={'0x50.org': 3, '37signals.com': 58, '3dartist.com': 3887, '3dtree.com': 2, '42.blogs.warnock.me.uk': 1354, '4suite.org': 358, '96db.com': 279, 'aaronsw.com': 4535, 'abo.fi': 6, 'acooke.org': 347, ...}, allowed='')
  163     srch.start = pos
  164     try:
  165         results = srch.parse_results()
  166     except ServerError:
  167         time.sleep(SLEEP)
results undefined, srch = <yahoo.search.web.WebSearch object>, srch.parse_results = <bound method WebSearch.parse_results of <yahoo.search.web.WebSearch object>>
 /home2/fuzzyman/webapps/www.voidspace.org.uk/cgi-bin/pysearch/yahoo/search/__init__.py in parse_results(self=<yahoo.search.web.WebSearch object>, xml=None)
  725 
  726         if xml is None:
  727             xml = self.get_results()
  728         res = self._result_factory(service=self)
  729         res.parse_results(xml)
xml = None, self = <yahoo.search.web.WebSearch object>, self.get_results = <bound method WebSearch.get_results of <yahoo.search.web.WebSearch object>>
 /home2/fuzzyman/webapps/www.voidspace.org.uk/cgi-bin/pysearch/yahoo/search/__init__.py in get_results(self=<yahoo.search.web.WebSearch object>, stream=None, xml_parser=None, close=True)
  702                         self._valid_params.keys())
  703         if stream is None:
  704             stream = self.open()
  705         if xml_parser is None:
  706             xml_parser = self._xml_parser
stream = None, self = <yahoo.search.web.WebSearch object>, self.open = <bound method WebSearch.open of <yahoo.search.web.WebSearch object>>
 /home2/fuzzyman/webapps/www.voidspace.org.uk/cgi-bin/pysearch/yahoo/search/__init__.py in open(self=<yahoo.search.web.WebSearch object>, opener=None)
  680 
  681         try:
  682             resp = urllib2.urlopen(url, data)
  683         except urllib2.HTTPError, err:
  684             if err.code == 503:
resp undefined, global urllib2 = <module 'urllib2' from '/usr/local/lib/python2.4/urllib2.py'>, urllib2.urlopen = <function urlopen>, url = 'http://api.search.yahoo.com/WebSearchService/V1/...ace+python+programming&results=50&appid=voidspace', data = None
 /usr/local/lib/python2.4/urllib2.py in urlopen(url='http://api.search.yahoo.com/WebSearchService/V1/...ace+python+programming&results=50&appid=voidspace', data=None)
  128     if _opener is None:
  129         _opener = build_opener()
  130     return _opener.open(url, data)
  131 
  132 def install_opener(opener):
global _opener = <urllib2.OpenerDirector instance>, _opener.open = <bound method OpenerDirector.open of <urllib2.OpenerDirector instance>>, url = 'http://api.search.yahoo.com/WebSearchService/V1/...ace+python+programming&results=50&appid=voidspace', data = None
 /usr/local/lib/python2.4/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl='http://api.search.yahoo.com/WebSearchService/V1/...ace+python+programming&results=50&appid=voidspace', data=None)
  356             req = meth(req)
  357 
  358         response = self._open(req, data)
  359 
  360         # 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/local/lib/python2.4/urllib2.py in _open(self=<urllib2.OpenerDirector instance>, req=<urllib2.Request instance>, data=None)
  374         protocol = req.get_type()
  375         result = self._call_chain(self.handle_open, protocol, protocol +
  376                                   '_open', req)
  377         if result:
  378             return result
req = <urllib2.Request instance>
 /usr/local/lib/python2.4/urllib2.py in _call_chain(self=<urllib2.OpenerDirector instance>, chain={'do': [<urllib2.HTTPHandler instance>, <urllib2.HTTPSHandler instance>], 'file': [<urllib2.FileHandler instance>], 'ftp': [<urllib2.FTPHandler instance>], 'http': [<urllib2.HTTPHandler instance>], 'https': [<urllib2.HTTPSHandler instance>], 'proxy': [<urllib2.ProxyHandler instance>], 'unknown': [<urllib2.UnknownHandler instance>]}, kind='http', meth_name='http_open', *args=(<urllib2.Request instance>,))
  335             func = getattr(handler, meth_name)
  336 
  337             result = func(*args)
  338             if result is not None:
  339                 return result
result undefined, func = <bound method HTTPHandler.http_open of <urllib2.HTTPHandler instance>>, args = (<urllib2.Request instance>,)
 /usr/local/lib/python2.4/urllib2.py in http_open(self=<urllib2.HTTPHandler instance>, req=<urllib2.Request instance>)
 1019 
 1020     def http_open(self, req):
 1021         return self.do_open(httplib.HTTPConnection, req)
 1022 
 1023     http_request = AbstractHTTPHandler.do_request_
self = <urllib2.HTTPHandler instance>, self.do_open = <bound method HTTPHandler.do_open of <urllib2.HTTPHandler instance>>, global httplib = <module 'httplib' from '/usr/local/lib/python2.4/httplib.pyc'>, httplib.HTTPConnection = <class httplib.HTTPConnection>, req = <urllib2.Request instance>
 /usr/local/lib/python2.4/urllib2.py in do_open(self=<urllib2.HTTPHandler instance>, http_class=<class httplib.HTTPConnection>, req=<urllib2.Request instance>)
  994             r = h.getresponse()
  995         except socket.error, err: # XXX what error?
  996             raise URLError(err)
  997 
  998         # Pick apart the HTTPResponse object to get the addinfourl
global URLError = <class urllib2.URLError>, err = <socket.gaierror instance>

URLError: <urlopen error (-5, 'No address associated with hostname')>
      args = (<socket.gaierror instance>,)
      reason = <socket.gaierror instance>