<class 'urllib2.URLError'> | Python 2.7.5: /usr/bin/python Mon Mar 17 23:24:39 2025 |
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>) |
429 req = meth(req) |
430 |
=> 431 response = self._open(req, data) |
432 |
433 # 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/lib64/python2.7/urllib2.py in _open(self=<urllib2.OpenerDirector instance>, req=<urllib2.Request instance>, data=None) |
447 protocol = req.get_type() |
448 result = self._call_chain(self.handle_open, protocol, protocol + |
=> 449 '_open', req) |
450 if result: |
451 return result |
req = <urllib2.Request instance> |
/usr/lib64/python2.7/urllib2.py in _call_chain(self=<urllib2.OpenerDirector instance>, chain={'file': [<urllib2.FileHandler instance>], 'ftp': [<urllib2.FTPHandler instance>], 'http': [<urllib2.HTTPHandler instance>], 'https': [<urllib2.HTTPSHandler instance>], 'unknown': [<urllib2.UnknownHandler instance>]}, kind='http', meth_name='http_open', *args=(<urllib2.Request 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 HTTPHandler.http_open of <urllib2.HTTPHandler instance>>, args = (<urllib2.Request instance>,) |
/usr/lib64/python2.7/urllib2.py in http_open(self=<urllib2.HTTPHandler instance>, req=<urllib2.Request instance>) |
1242 |
1243 def http_open(self, req): |
=> 1244 return self.do_open(httplib.HTTPConnection, req) |
1245 |
1246 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/lib64/python2.7/httplib.pyc'>, httplib.HTTPConnection = <class httplib.HTTPConnection>, req = <urllib2.Request instance> |
/usr/lib64/python2.7/urllib2.py in do_open(self=<urllib2.HTTPHandler instance>, http_class=<class httplib.HTTPConnection>, req=<urllib2.Request instance>, **http_conn_args={}) |
1212 except socket.error, err: # XXX what error? |
1213 h.close() |
=> 1214 raise URLError(err) |
1215 else: |
1216 try: |
global URLError = <class 'urllib2.URLError'>, err = error(113, 'No route to host') |
<class 'urllib2.URLError'>: <urlopen error [Errno 113] No route to host>
args =
(error(113, 'No route to host'),)
errno =
None
filename =
None
message =
''
reason =
error(113, 'No route to host')
strerror =
None