Loading...

 
 
<class 'urllib2.HTTPError'>
Python 2.7.12: /usr/bin/python
Thu Apr 25 07:05:15 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/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dh2021/CesiumSpaceV3.py in ()
    182                 
    183         displayResults("templateCesiumV1.htm", xml )
    184         #displayResults("templateCesiumV1.htm", 'http://dh.aks.ac.kr/~sandbox/cgi-bin/Cesium/Apps/Sandcastle/dh2021/myPlaces.xml' )
    185         
=>  186 main()
main = <function main>
 /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dh2021/CesiumSpaceV3.py in main()
    181                 return
    182                 
=>  183         displayResults("templateCesiumV1.htm", xml )
    184         #displayResults("templateCesiumV1.htm", 'http://dh.aks.ac.kr/~sandbox/cgi-bin/Cesium/Apps/Sandcastle/dh2021/myPlaces.xml' )
    185         
global displayResults = <function displayResults>, xml = 'http://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml'
 /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dh2021/CesiumSpaceV3.py in displayResults(template='templateCesiumV1.htm', url='http://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml')
    161                 if not line: break
    162                 if( '#YourData' == line.strip()):
=>  163                         displayData( url )
    164                 else:
    165                         print( line )
global displayData = <function displayData>, url = 'http://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml'
 /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dh2021/CesiumSpaceV3.py in displayData(url='http://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml')
     93 def displayData( url ):
     94 
=>   95         xml = urlopen( url )    
     96         contents = str(xml.read()) 
     97                 
xml undefined, global urlopen = <function urlopen>, url = 'http://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml'
 /usr/lib/python2.7/urllib2.py in urlopen(url='http://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml', 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 = 'http://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml', data = None, timeout = <object object>
 /usr/lib/python2.7/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl='http://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml', data=None, timeout=<object object>)
    433         for processor in self.process_response.get(protocol, []):
    434             meth = getattr(processor, meth_name)
=>  435             response = meth(req, response)
    436 
    437         return response
response = <addinfourl at 140267042571976 whose fp = <socket._fileobject object>>, meth = <bound method HTTPErrorProcessor.http_response of <urllib2.HTTPErrorProcessor instance>>, req = <urllib2.Request instance>
 /usr/lib/python2.7/urllib2.py in http_response(self=<urllib2.HTTPErrorProcessor instance>, request=<urllib2.Request instance>, response=<addinfourl at 140267042571976 whose fp = <socket._fileobject object>>)
    546         if not (200 <= code < 300):
    547             response = self.parent.error(
=>  548                 'http', request, response, code, msg, hdrs)
    549 
    550         return response
request = <urllib2.Request instance>, response = <addinfourl at 140267042571976 whose fp = <socket._fileobject object>>, code = 404, msg = 'Not Found', hdrs = <httplib.HTTPMessage instance>
 /usr/lib/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 140267042571976 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>))
    471         if http_err:
    472             args = (dict, 'default', 'http_error_default') + orig_args
=>  473             return self._call_chain(*args)
    474 
    475 # 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 140267042571976 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)
 /usr/lib/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 140267042571976 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>))
    405             func = getattr(handler, meth_name)
    406 
=>  407             result = func(*args)
    408             if result is not None:
    409                 return result
result undefined, func = <bound method HTTPDefaultErrorHandler.http_error...lt of <urllib2.HTTPDefaultErrorHandler instance>>, args = (<urllib2.Request instance>, <addinfourl at 140267042571976 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)
 /usr/lib/python2.7/urllib2.py in http_error_default(self=<urllib2.HTTPDefaultErrorHandler instance>, req=<urllib2.Request instance>, fp=<addinfourl at 140267042571976 whose fp = <socket._fileobject object>>, code=404, msg='Not Found', hdrs=<httplib.HTTPMessage instance>)
    554 class HTTPDefaultErrorHandler(BaseHandler):
    555     def http_error_default(self, req, fp, code, msg, hdrs):
=>  556         raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    557 
    558 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 140267042571976 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://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml'
      fileno = <bound method _fileobject.fileno of <socket._fileobject object>>
      fp = <addinfourl at 140267042571976 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://digerati.aks.ac.kr/DhLab/2021/101/JeongJuYeong/complex/theatre.xml'