Attachment 'traceback.html'
Download--> -->
ValueError
I/O operation on closed file
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_modpython.Request object>)
- 1304 self.page.send_page()
- 1305 else:
- 1306 handler(self.page.page_name, self)
- 1307
- 1308 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function execute>
- self = <MoinMoin.request.request_modpython.Request object>
- self.page = <MoinMoin.Page.Page object>
- self.page.page_name = u'TravelInsurance'
/usr/lib/python2.4/site-packages/MoinMoin/action/AttachFile.py in execute (pagename=u'TravelInsurance', request=<MoinMoin.request.request_modpython.Request object>)
- 511 handler = globals().get('_do_%s' % do[0])
- 512 if handler:
- 513 msg = handler(pagename, request)
- 514 else:
- 515 msg = _('Unsupported AttachFile sub-action: %s') % (wikiutil.escape(do[0]), )
- msg undefined
- handler = <function _do_upload>
- pagename = u'TravelInsurance'
- request = <MoinMoin.request.request_modpython.Request object>
/usr/lib/python2.4/site-packages/MoinMoin/action/AttachFile.py in _do_upload (pagename=u'TravelInsurance', request=<MoinMoin.request.request_modpython.Request object>)
- 590 # add the attachment
- 591 try:
- 592 target, bytes = add_attachment(request, pagename, target, filecontent, overwrite=overwrite)
- 593 msg = _("Attachment '%(target)s' (remote name '%(filename)s')"
- 594 " with %(bytes)d bytes saved.") % {
- target = u'travel-insurance-schedule.pdf'
- bytes undefined
- global add_attachment = <function add_attachment>
- request = <MoinMoin.request.request_modpython.Request object>
- pagename = u'TravelInsurance'
- filecontent = <closed file '<fdopen>', mode 'w+b'>
- overwrite = 1
/usr/lib/python2.4/site-packages/MoinMoin/action/AttachFile.py in add_attachment (request=<MoinMoin.request.request_modpython.Request object>, pagename=u'TravelInsurance', target=u'travel-insurance-schedule.pdf', filecontent=<closed file '<fdopen>', mode 'w+b'>, overwrite=1)
- 208 stream = open(fpath, 'wb')
- 209 try:
- 210 _write_stream(filecontent, stream)
- 211 finally:
- 212 stream.close()
- global _write_stream = <function _write_stream>
- filecontent = <closed file '<fdopen>', mode 'w+b'>
- stream = <closed file '/srv/www/mywiki/data/pages/TravelI...hments/travel-insurance-schedule.pdf', mode 'wb'>
/usr/lib/python2.4/site-packages/MoinMoin/action/AttachFile.py in _write_stream (content=<closed file '<fdopen>', mode 'w+b'>, stream=<closed file '/srv/www/mywiki/data/pages/TravelI...hments/travel-insurance-schedule.pdf', mode 'wb'>, bufsize=8192)
- 175 if hasattr(content, 'read'): # looks file-like
- 176 import shutil
- 177 shutil.copyfileobj(content, stream, bufsize)
- 178 elif isinstance(content, str):
- 179 stream.write(content)
- shutil = <module 'shutil' from '/usr/lib/python2.4/shutil.pyc'>
- shutil.copyfileobj = <function copyfileobj>
- content = <closed file '<fdopen>', mode 'w+b'>
- stream = <closed file '/srv/www/mywiki/data/pages/TravelI...hments/travel-insurance-schedule.pdf', mode 'wb'>
- bufsize = 8192
/usr/lib/python2.4/shutil.py in copyfileobj (fsrc=<closed file '<fdopen>', mode 'w+b'>, fdst=<closed file '/srv/www/mywiki/data/pages/TravelI...hments/travel-insurance-schedule.pdf', mode 'wb'>, length=8192)
- 20 """copy data from file-like object fsrc to file-like object fdst"""
- 21 while 1:
- 22 buf = fsrc.read(length)
- 23 if not buf:
- 24 break
- buf undefined
- fsrc = <closed file '<fdopen>', mode 'w+b'>
- fsrc.read = <built-in method read of file object>
- length = 8192
ValueError
I/O operation on closed file
- args = ('I/O operation on closed file',)
System Details
- Date: Mon, 23 Jun 2008 10:27:05 +0000
- Platform: Linux po.intranet.virtensys.com 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:36:49 EST 2008 i686
- Python: Python 2.4.3 (/usr/bin/python)
- MoinMoin: Release 1.7.0 (release)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.