--> --> -->
 
 
HTTPError
Python 2.4.3: /usr/bin/python
Wed Feb 8 02:25:10 2012

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/hosting_users/bwhite8129/www/home/services/sponge.cgi
   30 for theaterCode in Theater.keys() :
   31     url = "http://www.spongehouse.com/movieschedule.php?where=%d&date=%s" % ( theaterCode, date )
   32     page = urllib2.urlopen(url).readlines()
   33     thisMovieList = {}
   34     for line in page :
page undefined, urllib2 = <module 'urllib2' from '/usr/lib64/python2.4/urllib2.pyc'>, urllib2.urlopen = <function urlopen>, url = 'http://www.spongehouse.com/movieschedule.php?where=1&date=20120208', ).readlines undefined
 /usr/lib64/python2.4/urllib2.py in urlopen(url='http://www.spongehouse.com/movieschedule.php?where=1&date=20120208', 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://www.spongehouse.com/movieschedule.php?where=1&date=20120208', data = None
 /usr/lib64/python2.4/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl='http://www.spongehouse.com/movieschedule.php?where=1&date=20120208', data=None)
  362         for processor in self.process_response.get(protocol, []):
  363             meth = getattr(processor, meth_name)
  364             response = meth(req, response)
  365 
  366         return response
response = <addinfourl at 46940959334912 whose fp = <socket._fileobject object>>, meth = <bound method HTTPErrorProcessor.http_response of <urllib2.HTTPErrorProcessor instance>>, req = <urllib2.Request instance>
 /usr/lib64/python2.4/urllib2.py in http_response(self=<urllib2.HTTPErrorProcessor instance>, request=<urllib2.Request instance>, response=<addinfourl at 46940959334912 whose fp = <socket._fileobject object>>)
  469 
  470         if code not in (200, 206):
  471             response = self.parent.error(
  472                 'http', request, response, code, msg, hdrs)
  473 
response = <addinfourl at 46940959334912 whose fp = <socket._fileobject object>>, self = <urllib2.HTTPErrorProcessor instance>, self.parent = <urllib2.OpenerDirector instance>, self.parent.error = <bound method OpenerDirector.error of <urllib2.OpenerDirector instance>>, request = <urllib2.Request instance>, code = 404, msg = 'Not Found', hdrs = <httplib.HTTPMessage instance>
 /usr/lib64/python2.4/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 46940959334912 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>))
  400         if http_err:
  401             args = (dict, 'default', 'http_error_default') + orig_args
  402             return self._call_chain(*args)
  403 
  404 # 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 46940959334912 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)
 /usr/lib64/python2.4/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 46940959334912 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage 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 HTTPDefaultErrorHandler.http_error...lt of <urllib2.HTTPDefaultErrorHandler instance>>, args = (<urllib2.Request instance>, <addinfourl at 46940959334912 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)
 /usr/lib64/python2.4/urllib2.py in http_error_default(self=<urllib2.HTTPDefaultErrorHandler instance>, req=<urllib2.Request instance>, fp=<addinfourl at 46940959334912 whose fp = <socket._fileobject object>>, code=404, msg='Not Found', hdrs=<httplib.HTTPMessage instance>)
  478 class HTTPDefaultErrorHandler(BaseHandler):
  479     def http_error_default(self, req, fp, code, msg, hdrs):
  480         raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  481 
  482 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 46940959334912 whose fp = <socket._fileobject object>>

HTTPError: HTTP Error 404: Not Found
      close = <bound method HTTPError.close of <HTTPError at 4...9334912 whose fp = <socket._fileobject object>>>>
      code = 404
      filename = 'http://www.spongehouse.com/movieschedule.php?where=1&date=20120208'
      fileno = <bound method _fileobject.fileno of <socket._fileobject object>>
      fp = <addinfourl at 46940959334912 whose fp = <socket._fileobject object>>
      geturl = <bound method HTTPError.geturl of <HTTPError at ...9334912 whose fp = <socket._fileobject object>>>>
      hdrs = <httplib.HTTPMessage instance>
      headers = <httplib.HTTPMessage instance>
      info = <bound method HTTPError.info of <HTTPError at 46...9334912 whose fp = <socket._fileobject object>>>>
      msg = 'Not Found'
      next = <bound method _fileobject.next of <socket._fileobject object>>
      read = <bound method _fileobject.read of <socket._fileobject object>>
      readline = <bound method _fileobject.readline of <socket._fileobject object>>
      readlines = <bound method _fileobject.readlines of <socket._fileobject object>>
      url = 'http://www.spongehouse.com/movieschedule.php?where=1&date=20120208'