-->
--> -->
<type 'exceptions.IOError'> | Python 2.5.2: /usr/bin/python Tue Feb 9 01:57:04 2010 |
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /var/www/sdml/services/xsltjs.cgi in () |
59
|
60 # Get xml transformation program
|
61 xml = url2str(getValue(qsr[1]))
|
62
|
63 # Create temporary file with xml
|
| xml undefined, url2str = <function url2str at 0x8fdfbc4>, getValue = <function getValue at 0x8fdff0c>, qsr = ['xsl=http://www.sdml.info/xsl/rss2xhtml.xsl', 'xml=http://classes.cs.kent.edu/schedule/feed.xml'] |
| /var/www/sdml/services/xsltjs.cgi in url2str(url='http://classes.cs.kent.edu/schedule/feed.xml') |
15
|
16 def url2str(url):
|
17 f = urllib.urlopen(url)
|
18 lines = f.readlines()
|
19 lines = ''.join(lines)
|
| f undefined, global urllib = <module 'urllib' from '/usr/lib/python2.5/urllib.pyc'>, urllib.urlopen = <function urlopen at 0x8fb9b8c>, url = 'http://classes.cs.kent.edu/schedule/feed.xml' |
| /usr/lib/python2.5/urllib.py in urlopen(url='http://classes.cs.kent.edu/schedule/feed.xml', data=None, proxies=None) |
80 opener = _urlopener
|
81 if data is None:
|
82 return opener.open(url)
|
83 else:
|
84 return opener.open(url, data)
|
| opener = <urllib.FancyURLopener instance at 0x8fe188c>, opener.open = <bound method FancyURLopener.open of <urllib.FancyURLopener instance at 0x8fe188c>>, url = 'http://classes.cs.kent.edu/schedule/feed.xml' |
| /usr/lib/python2.5/urllib.py in open(self=<urllib.FancyURLopener instance at 0x8fe188c>, fullurl='http://classes.cs.kent.edu/schedule/feed.xml', data=None) |
188 try:
|
189 if data is None:
|
190 return getattr(self, name)(url)
|
191 else:
|
192 return getattr(self, name)(url, data)
|
| builtin getattr = <built-in function getattr>, self = <urllib.FancyURLopener instance at 0x8fe188c>, name = 'open_http', url = '//classes.cs.kent.edu/schedule/feed.xml' |
| /usr/lib/python2.5/urllib.py in open_http(self=<urllib.FancyURLopener instance at 0x8fe188c>, url='//classes.cs.kent.edu/schedule/feed.xml', data=None) |
323 if realhost: h.putheader('Host', realhost)
|
324 for args in self.addheaders: h.putheader(*args)
|
325 h.endheaders()
|
326 if data is not None:
|
327 h.send(data)
|
| h = <httplib.HTTP instance at 0x8fe1d8c>, h.endheaders = <bound method HTTPConnection.endheaders of <httplib.HTTPConnection instance at 0x8fea4ac>> |
| /usr/lib/python2.5/httplib.py in endheaders(self=<httplib.HTTPConnection instance at 0x8fea4ac>) |
858 raise CannotSendHeader()
|
859
|
860 self._send_output()
|
861
|
862 def request(self, method, url, body=None, headers={}):
|
| self = <httplib.HTTPConnection instance at 0x8fea4ac>, self._send_output = <bound method HTTPConnection._send_output of <httplib.HTTPConnection instance at 0x8fea4ac>> |
| /usr/lib/python2.5/httplib.py in _send_output(self=<httplib.HTTPConnection instance at 0x8fea4ac>) |
730 msg = "\r\n".join(self._buffer)
|
731 del self._buffer[:]
|
732 self.send(msg)
|
733
|
734 def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
|
| self = <httplib.HTTPConnection instance at 0x8fea4ac>, self.send = <bound method HTTPConnection.send of <httplib.HTTPConnection instance at 0x8fea4ac>>, msg = 'GET /schedule/feed.xml HTTP/1.0\r\nHost: classes.cs.kent.edu\r\nUser-Agent: Python-urllib/1.17\r\n\r\n' |
| /usr/lib/python2.5/httplib.py in send(self=<httplib.HTTPConnection instance at 0x8fea4ac>, str='GET /schedule/feed.xml HTTP/1.0\r\nHost: classes.cs.kent.edu\r\nUser-Agent: Python-urllib/1.17\r\n\r\n') |
697 if self.sock is None:
|
698 if self.auto_open:
|
699 self.connect()
|
700 else:
|
701 raise NotConnected()
|
| self = <httplib.HTTPConnection instance at 0x8fea4ac>, self.connect = <bound method HTTPConnection.connect of <httplib.HTTPConnection instance at 0x8fea4ac>> |
| /usr/lib/python2.5/httplib.py in connect(self=<httplib.HTTPConnection instance at 0x8fea4ac>) |
681 break
|
682 if not self.sock:
|
683 raise socket.error, msg
|
684
|
685 def close(self):
|
| global socket = <module 'socket' from '/usr/lib/python2.5/socket.pyc'>, socket.error = <class 'socket.error'>, msg = error(111, 'Connection refused') |
<type 'exceptions.IOError'>: [Errno socket error] (111, 'Connection refused')
args =
('socket error', error(111, 'Connection refused'))
errno =
'socket error'
filename =
None
message =
''
strerror =
error(111, 'Connection refused')