IOError: [Errno 9] Bad file descriptor | Python 2.3.3 d:\apps\python23\pythonw.exe |
A problem occurred while running a Python script. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call first. The exception attributes are:
__doc__ = 'I/O operation failed.'
__getitem__ = <bound method IOError.__getitem__ of <exceptions.IOError instance at 0x00C323C8>>
__init__ = <bound method IOError.__init__ of <exceptions.IOError instance at 0x00C323C8>>
__module__ = 'exceptions'
__str__ = <bound method IOError.__str__ of <exceptions.IOError instance at 0x00C323C8>>
args = (9, 'Bad file descriptor')
errno = 9
filename = None
strerror = 'Bad file descriptor'
D:\Apps\Python23\lib\BaseHTTPServer.py in log_message(self=<roundup.scripts.roundup_server.RoundupRequestHandler instance at 0x00C5AC38>, format='"%s" %s %s', *args=('GET /iv/issue?:template=item HTTP/1.1', '200', '-')) |
435 """
436
437 sys.stderr.write("%s - - [%s] %s\n" %
|
global sys = <module 'sys' (built-in)>, global stderr = undefined, global write = undefined, self = <roundup.scripts.roundup_server.RoundupRequestHandler instance at 0x00C5AC38>, global address_string = undefined, global log_date_time_string = undefined, format = '"%s" %s %s', args = ('GET /iv/issue?:template=item HTTP/1.1', '200', '-')
438 (self.address_string(),
439 self.log_date_time_string(),
402
403 self.log_message('"%s" %s %s',
404 self.requestline, str(code), str(size))
|
self = <roundup.scripts.roundup_server.RoundupRequestHandler instance at 0x00C5AC38>, global requestline = undefined, global str = undefined, code = 200, size = '-'
405
406 def log_error(self, *args):
365
366 """
367 self.log_request(code)
|
self = <roundup.scripts.roundup_server.RoundupRequestHandler instance at 0x00C5AC38>, global log_request = undefined, code = 200
368 if message is None:
369 if code in self.responses:
587 if not headers.has_key('Content-Type'):
588 headers['Content-Type'] = 'text/html'
589 self.request.send_response(response)
|
self = <_roundup_tracker_1.interfaces.Client instance at 0x00C2B8F0>, global request = undefined, global send_response = undefined, response = 200
590 for entry in headers.items():
591 self.request.send_header(*entry)
571 def write(self, content):
572 if not self.headers_done:
self = <_roundup_tracker_1.interfaces.Client instance at 0x00C2B8F0>, global header = undefined
574 self.request.wfile.write(content)
575
285 except:
286 # everything else
287 self.write(cgitb.html())
|
self = <_roundup_tracker_1.interfaces.Client instance at 0x00C2B8F0>, global write = undefined, global cgitb = <module 'roundup.cgi.cgitb' from 'D:\Apps\Python23\lib\site-packages\roundup\cgi\cgitb.pyo'>, global html = undefined
288
289 def clean_sessions(self):