--> -->
 
 
<class 'urllib2.HTTPError'>
Python 2.7.5: /usr/bin/python
Fri Mar 1 23:20:55 2024

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/u4526019/public_html/cgi-bin/pos_inventory.py in ()
     69     print("</table>")
     70 
     71 if __name__ == "__main__":
=>   72     create_pos_list()
     73 
create_pos_list = <function create_pos_list>
 /home/u4526019/public_html/cgi-bin/pos_inventory.py in create_pos_list()
     29     # print(headers)
     30     req = urllib2.Request(url, headers=headers)
=>   31     response = urllib2.urlopen(req)
     32     response_headers = response.info()
     33     # print ">>> HEADERS <<<<\n%s\n>>> <<<'''" % response_headers
response undefined, global urllib2 = <module 'urllib2' from '/usr/lib64/python2.7/urllib2.pyc'>, urllib2.urlopen = <function urlopen>, req = <urllib2.Request instance>
 /usr/lib64/python2.7/urllib2.py in urlopen(url=<urllib2.Request instance>, data=None, timeout=<object object>, cafile=None, capath=None, cadefault=False, context=None)
    152     else:
    153         opener = _opener
=>  154     return opener.open(url, data, timeout)
    155 
    156 def install_opener(opener):
opener = <urllib2.OpenerDirector instance>, opener.open = <bound method OpenerDirector.open of <urllib2.OpenerDirector instance>>, url = <urllib2.Request instance>, data = None, timeout = <object object>
 /usr/lib64/python2.7/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl=<urllib2.Request instance>, data=None, timeout=<object object>)
    435         for processor in self.process_response.get(protocol, []):
    436             meth = getattr(processor, meth_name)
=>  437             response = meth(req, response)
    438 
    439         return response
response = <addinfourl at 47917324740080 whose fp = <socket._fileobject object>>, meth = <bound method HTTPErrorProcessor.http_response of <urllib2.HTTPErrorProcessor instance>>, req = <urllib2.Request instance>
 /usr/lib64/python2.7/urllib2.py in http_response(self=<urllib2.HTTPErrorProcessor instance>, request=<urllib2.Request instance>, response=<addinfourl at 47917324740080 whose fp = <socket._fileobject object>>)
    548         if not (200 <= code < 300):
    549             response = self.parent.error(
=>  550                 'http', request, response, code, msg, hdrs)
    551 
    552         return response
request = <urllib2.Request instance>, response = <addinfourl at 47917324740080 whose fp = <socket._fileobject object>>, code = 404, msg = 'Not Found', hdrs = <httplib.HTTPMessage instance>
 /usr/lib64/python2.7/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 47917324740080 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>))
    473         if http_err:
    474             args = (dict, 'default', 'http_error_default') + orig_args
=>  475             return self._call_chain(*args)
    476 
    477 # 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 47917324740080 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)
 /usr/lib64/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='default', meth_name='http_error_default', *args=(<urllib2.Request instance>, <addinfourl at 47917324740080 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>))
    407             func = getattr(handler, meth_name)
    408 
=>  409             result = func(*args)
    410             if result is not None:
    411                 return result
result undefined, func = <bound method HTTPDefaultErrorHandler.http_error...lt of <urllib2.HTTPDefaultErrorHandler instance>>, args = (<urllib2.Request instance>, <addinfourl at 47917324740080 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)
 /usr/lib64/python2.7/urllib2.py in http_error_default(self=<urllib2.HTTPDefaultErrorHandler instance>, req=<urllib2.Request instance>, fp=<addinfourl at 47917324740080 whose fp = <socket._fileobject object>>, code=404, msg='Not Found', hdrs=<httplib.HTTPMessage instance>)
    556 class HTTPDefaultErrorHandler(BaseHandler):
    557     def http_error_default(self, req, fp, code, msg, hdrs):
=>  558         raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    559 
    560 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 47917324740080 whose fp = <socket._fileobject object>>

<class 'urllib2.HTTPError'>: HTTP Error 404: Not Found
      args = ()
      close = <bound method HTTPError.close of HTTPError()>
      code = 404
      errno = None
      filename = 'http://jumpgate-tri.org/jossh-api/pos/89adc72b1392.json'
      fileno = <bound method _fileobject.fileno of <socket._fileobject object>>
      fp = <addinfourl at 47917324740080 whose fp = <socket._fileobject object>>
      getcode = <bound method HTTPError.getcode of HTTPError()>
      geturl = <bound method HTTPError.geturl of HTTPError()>
      hdrs = <httplib.HTTPMessage instance>
      headers = <httplib.HTTPMessage instance>
      info = <bound method HTTPError.info of HTTPError()>
      message = ''
      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>>
      reason = 'Not Found'
      strerror = None
      url = 'http://jumpgate-tri.org/jossh-api/pos/89adc72b1392.json'