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/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_modpython.Request object at 0x2a31738c>)
- 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 at 0x29db42cc>
- self = <MoinMoin.request.request_modpython.Request object at 0x2a31738c>
- self.page = <MoinMoin.Page.Page object at 0x2a317a2c>
- self.page.page_name = u'qmail'
/usr/local/lib/python2.5/site-packages/MoinMoin/action/AttachFile.py in execute (pagename=u'qmail', request=<MoinMoin.request.request_modpython.Request object at 0x2a31738c>)
- 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 at 0x29db43ac>
- pagename = u'qmail'
- request = <MoinMoin.request.request_modpython.Request object at 0x2a31738c>
/usr/local/lib/python2.5/site-packages/MoinMoin/action/AttachFile.py in _do_upload (pagename=u'qmail', request=<MoinMoin.request.request_modpython.Request object at 0x2a31738c>)
- 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'spamcontrol-2.3.17.tgz'
- bytes undefined
- global add_attachment = <function add_attachment at 0x29db409c>
- request = <MoinMoin.request.request_modpython.Request object at 0x2a31738c>
- pagename = u'qmail'
- filecontent = <closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>
- overwrite = 0
/usr/local/lib/python2.5/site-packages/MoinMoin/action/AttachFile.py in add_attachment (request=<MoinMoin.request.request_modpython.Request object at 0x2a31738c>, pagename=u'qmail', target=u'spamcontrol-2.3.17.tgz', filecontent=<closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>, overwrite=0)
- 208 stream = open(fpath, 'wb')
- 209 try:
- 210 _write_stream(filecontent, stream)
- 211 finally:
- 212 stream.close()
- global _write_stream = <function _write_stream at 0x29db4064>
- filecontent = <closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>
- stream = <closed file '/usr/local/www/wiki/data/pages/qma...spamcontrol-2.3.17.tgz', mode 'wb' at 0x2a30c5c0>
/usr/local/lib/python2.5/site-packages/MoinMoin/action/AttachFile.py in _write_stream (content=<closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>, stream=<closed file '/usr/local/www/wiki/data/pages/qma...spamcontrol-2.3.17.tgz', mode 'wb' at 0x2a30c5c0>, 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/local/lib/python2.5/shutil.pyc'>
- shutil.copyfileobj = <function copyfileobj at 0x29b75ed4>
- content = <closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>
- stream = <closed file '/usr/local/www/wiki/data/pages/qma...spamcontrol-2.3.17.tgz', mode 'wb' at 0x2a30c5c0>
- bufsize = 8192
/usr/local/lib/python2.5/shutil.py in copyfileobj (fsrc=<closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>, fdst=<closed file '/usr/local/www/wiki/data/pages/qma...spamcontrol-2.3.17.tgz', mode 'wb' at 0x2a30c5c0>, length=8192)
- 19 """copy data from file-like object fsrc to file-like object fdst"""
- 20 while 1:
- 21 buf = fsrc.read(length)
- 22 if not buf:
- 23 break
- buf undefined
- fsrc = <closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>
- fsrc.read = <built-in method read of file object at 0x2a30cc38>
- length = 8192
ValueError
I/O operation on closed file
- args = ('I/O operation on closed file',)
- message = 'I/O operation on closed file'
System Details
- Date: Mon, 04 Aug 2008 10:06:53 +0000
- Platform: FreeBSD sis.home 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
- Python: Python 2.5.2 (/usr/local/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.