Attachment 'traceback.html'

Download

--> -->

UnicodeDecodeError

'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)

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.

  1. /var/lib/python-support/python2.4/MoinMoin/request.py in run (self=<MoinMoin.request.RequestFastCGI object>)

    1. 1152 # Visit pagename
    2. 1153 self.page = Page(self, pagename)
    3. 1154 self.page.send_page(self, count_hit=1)
    4. 1155
    5. 1156 # generate page footer (actions that do not want this footer
    • self = <MoinMoin.request.RequestFastCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>
    • count_hit undefined
  2. /var/lib/python-support/python2.4/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, msg='', **keywords={'count_hit': 1})

    1. 1234 format_args=pi_formatargs,
    2. 1235 do_cache=do_cache,
    3. 1236 start_line=pi_lines)
    4. 1237
    5. 1238 # check for pending footnotes
    • start_line undefined
    • pi_lines = 5
  3. /var/lib/python-support/python2.4/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'[[SystemInfo]]\n', format_args=u'', do_cache=1, **kw={'start_line': 5})

    1. 1317 try:
    2. 1318 code = self.loadCache(request)
    3. 1319 self.execute(request, parser, code)
    4. 1320 except 'CacheNeedsUpdate':
    5. 1321 try:
    • self = <MoinMoin.Page.Page instance>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestFastCGI object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object ? at 0x2aaaaba01180, file "SystemInfo", line 2>
  4. /var/lib/python-support/python2.4/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0x2aaaaba01180, file "SystemInfo", line 2>)

    1. 1341 if hasattr(MoinMoin, '__loader__'):
    2. 1342 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    3. 1343 exec code
    4. 1344
    5. 1345 def loadCache(self, request):
    • code = <code object ? at 0x2aaaaba01180, file "SystemInfo", line 2>
  5. /var/www/wiki/SystemInfo in ?

  6. /var/lib/python-support/python2.4/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'SystemInfo', args=None)

    1. 288 def macro(self, macro_obj, name, args):
    2. 289 # call the macro
    3. 290 return macro_obj.execute(name, args)
    4. 291
    5. 292 def _get_bang_args(self, line):
    • macro_obj = <MoinMoin.wikimacro.Macro instance>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>
    • name = u'SystemInfo'
    • args = None
  7. /var/lib/python-support/python2.4/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'SystemInfo', args=None)

    1. 118 else:
    2. 119 raise ImportError("Cannot load macro %s" % macro_name)
    3. 120 return execute(self, args)
    4. 121
    5. 122 def _m_lang(self, text):
    • execute = <unbound method Macro._macro_SystemInfo>
    • self = <MoinMoin.wikimacro.Macro instance>
    • args = None
  8. /var/lib/python-support/python2.4/MoinMoin/wikimacro.py in _macro_SystemInfo (self=<MoinMoin.wikimacro.Macro instance>, args=None)

    1. 414 data_dir = self.request.cfg.data_dir
    2. 415 row(_('Disk usage of %(data_dir)s/pages/') % {'data_dir': data_dir},
    3. 416 _formatInReadableUnits(_getDirectorySize(os.path.join(data_dir, 'pages'))))
    4. 417 row(_('Disk usage of %(data_dir)s/') % {'data_dir': data_dir},
    5. 418 _formatInReadableUnits(_getDirectorySize(data_dir)))
    • _formatInReadableUnits = <function _formatInReadableUnits>
    • _getDirectorySize = <function _getDirectorySize>
    • global os = <module 'os' from '/usr/lib/python2.4/os.pyc'>
    • os.path = <module 'posixpath' from '/usr/lib/python2.4/posixpath.pyc'>
    • os.path.join = <function join>
    • data_dir = u'/srv/wiki/data'
  9. /var/lib/python-support/python2.4/MoinMoin/wikimacro.py in _getDirectorySize (path=u'/srv/wiki/data/pages')

    1. 370 try:
    2. 371 dirsize = 0
    3. 372 for root, dirs, files in os.walk(path):
    4. 373 dirsize += sum([os.path.getsize(os.path.join(root, name)) for name in files])
    5. 374 except EnvironmentError, e:
    • root = u'/srv/wiki/data/pages/LesFemmesQuiOntFaitLaFrance'
    • dirs = [u'attachments', u'revisions', u'cache']
    • files = [u'edit-log', u'current']
    • global os = <module 'os' from '/usr/lib/python2.4/os.pyc'>
    • os.walk = <function walk>
    • path = u'/srv/wiki/data/pages'
  10. /var/www/wiki/os.py in walk (top=u'/srv/wiki/data/pages', topdown=True, onerror=None)

    1. 289 path = join(top, name)
    2. 290 if not islink(path):
    3. 291 for x in walk(path, topdown, onerror):
    4. 292 yield x
    5. 293 if not topdown:
    • x = (u'/srv/wiki/data/pages/LesFemmesQuiOntFaitLaFrance', [u'attachments', u'revisions', u'cache'], [u'edit-log', u'current'])
    • global walk = <function walk>
    • path = u'/srv/wiki/data/pages/LesFemmesQuiOntFaitLaFrance'
    • topdown = True
    • onerror = None
  11. /var/www/wiki/os.py in walk (top=u'/srv/wiki/data/pages/LesFemmesQuiOntFaitLaFrance', topdown=True, onerror=None)

    1. 289 path = join(top, name)
    2. 290 if not islink(path):
    3. 291 for x in walk(path, topdown, onerror):
    4. 292 yield x
    5. 293 if not topdown:
    • x undefined
    • global walk = <function walk>
    • path = u'/srv/wiki/data/pages/LesFemmesQuiOntFaitLaFrance/attachments'
    • topdown = True
    • onerror = None
  12. /var/www/wiki/os.py in walk (top=u'/srv/wiki/data/pages/LesFemmesQuiOntFaitLaFrance/attachments', topdown=True, onerror=None)

    1. 279 dirs, nondirs = [], []
    2. 280 for name in names:
    3. 281 if isdir(join(top, name)):
    4. 282 dirs.append(name)
    5. 283 else:
    • isdir = <function isdir>
    • join = <function join>
    • top = u'/srv/wiki/data/pages/LesFemmesQuiOntFaitLaFrance/attachments'
    • name = 'femmes_r\xc3\xa9sistantes.pdf'
  13. /var/www/wiki/posixpath.py in join (a=u'/srv/wiki/data/pages/LesFemmesQuiOntFaitLaFrance/attachments', *p=('femmes_r\xc3\xa9sistantes.pdf',))

    1. 63 path += b
    2. 64 else:
    3. 65 path += '/' + b
    4. 66 return path
    5. 67
    • path = u'/srv/wiki/data/pages/LesFemmesQuiOntFaitLaFrance/attachments'
    • b = 'femmes_r\xc3\xa9sistantes.pdf'

UnicodeDecodeError

'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)

  • args = ('ascii', '/femmes_r\xc3\xa9sistantes.pdf', 9, 10, 'ordinal not in range(128)')
  • encoding = 'ascii'
  • end = 10
  • object = '/femmes_r\xc3\xa9sistantes.pdf'
  • reason = 'ordinal not in range(128)'
  • start = 9

System Details

  • Date: Tue, 01 Jul 2008 09:27:56 +0000
  • Platform: Linux emma 2.6.24-1-amd64 #1 SMP Thu Jun 5 08:06:01 UTC 2008 x86_64
  • Python: Python 2.4.4 (/usr/bin/python)
  • MoinMoin: Release 1.5.3 (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.
  • [get | view] (2008-07-01 09:33:56, 26.4 KB) [[attachment:screenshot.png]]
  • [get | view] (2008-07-01 09:40:48, 22.9 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.