--> -->

UnicodeEncodeError

'decimal' codec can't encode character u'\x00' in position 0: invalid decimal Unicode string

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. /usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object at 0xb7cff94c>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show at 0x9ee43e4>
    • self = <MoinMoin.request.request_cgi.Request object at 0xb7cff94c>
    • self.page = <MoinMoin.Page.Page object at 0x9f1e80c>
    • self.page.page_name = u'ContactUs'
  2. /usr/local/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'ContactUs', request=<MoinMoin.request.request_cgi.Request object at 0xb7cff94c>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x9f5608c>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1171 media=media, pi_refresh=pi.get('refresh'),
    2. 1172 allow_doubleclick=1, trail=trail,
    3. 1173 html_head=html_head,
    4. 1174 )
    5. 1175
    • html_head = ''
  4. /usr/local/lib/python2.5/site-packages/MoinMoin/theme/__init__.py in send_title (self=<MoinMoin.theme.modern.Theme instance at 0x9f1e82c>, text=u'ContactUs', **keywords={'allow_doubleclick': 1, 'html_head': '', 'media': 'screen', 'page': <MoinMoin.Page.Page object at 0x9f5608c>, 'pi_refresh': None, 'print_mode': 0, 'trail': []})

    1. 1749 'pagesize': pagename and page.size() or 0,
    2. 1750 # exists checked to avoid creation of empty edit-log for non-existing pages
    3. 1751 'last_edit_info': exists and page.lastEditInfo() or '',
    4. 1752 'page_name': pagename or '',
    5. 1753 'page_find_page': page_find_page,
    • exists = True
    • page = <MoinMoin.Page.Page object at 0x9f5608c>
    • page.lastEditInfo = <bound method Page.lastEditInfo of <MoinMoin.Page.Page object at 0x9f5608c>>
  5. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in lastEditInfo (self=<MoinMoin.Page.Page object at 0x9f5608c>, request=None)

    1. 581 @return: timestamp and editor information
    2. 582 """
    3. 583 log = self.editlog_entry()
    4. 584 if log:
    5. 585 request = self.request
    • global log = <module 'MoinMoin.log' from '/usr/local/lib/python2.5/site-packages/MoinMoin/log.pyc'>
    • self = <MoinMoin.Page.Page object at 0x9f5608c>
    • self.editlog_entry = <bound method Page.editlog_entry of <MoinMoin.Page.Page object at 0x9f5608c>>
  6. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in editlog_entry (self=<MoinMoin.Page.Page object at 0x9f5608c>)

    1. 529 wanted_rev = "%08d" % self.get_real_rev()
    2. 530 edit_log = editlog.EditLog(request, rootpagename=self.page_name)
    3. 531 for entry in edit_log.reverse():
    4. 532 if entry.rev == wanted_rev:
    5. 533 break
    • entry = None
    • edit_log = <MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>
    • edit_log.reverse = <bound method EditLog.reverse of <MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>>
  7. /usr/local/lib/python2.5/site-packages/MoinMoin/logfile/__init__.py in reverse (self=<MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>)

    1. 114 try:
    2. 115 logging.log(self.loglevel, "LogFile.reverse %s" % self.__filename)
    3. 116 result = self.previous()
    4. 117 except StopIteration:
    5. 118 return
    • result undefined
    • self = <MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>
    • self.previous = <bound method EditLog.previous of <MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>>
  8. /usr/local/lib/python2.5/site-packages/MoinMoin/logfile/__init__.py in previous (self=<MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>)

    1. 321 while result is None:
    2. 322 logging.log(self.loglevel, "LogFile.previous %s" % self.__filename)
    3. 323 result = self.__previous()
    4. 324 if self.filter and not self.filter(result):
    5. 325 result = None
    • result = None
    • self = <MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>
    • self.__previous undefined
  9. /usr/local/lib/python2.5/site-packages/MoinMoin/logfile/__init__.py in __previous (self=<MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>)

    1. 310 if self.peek(-1):
    2. 311 raise StopIteration
    3. 312 return self.parser(self.__buffer.lines[self.__rel_index])
    4. 313
    5. 314 def previous(self):
    • self = <MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>
    • self.parser = <bound method EditLog.parser of <MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>>
    • self.__buffer undefined
    • self.__rel_index undefined
  10. /usr/local/lib/python2.5/site-packages/MoinMoin/logfile/editlog.py in parser (self=<MoinMoin.logfile.editlog.EditLog instance at 0x9f594cc>, line=u'\x00\x00\x00\x00\x0097684000000\t00000004\tSAVE\tContactUs\t86.34.2...-34-205-113.romtelecom.net\t1130016146.74.10322\t\t\n')

    1. 220 result.hostname = result.addr
    2. 221 result.pagename = wikiutil.unquoteWikiname(result.pagename.encode('ascii'))
    3. 222 result.ed_time_usecs = long(result.ed_time_usecs or '0') # has to be long for py 2.2.x
    4. 223 return result
    5. 224
    • result = <MoinMoin.logfile.editlog.EditLogLine instance at 0x9f595ec>
    • result.ed_time_usecs = u'\x00\x00\x00\x00\x0097684000000'
    • builtin long = <type 'long'>

UnicodeEncodeError

'decimal' codec can't encode character u'\x00' in position 0: invalid decimal Unicode string

  • args = ('decimal', u'\x00\x00\x00\x00\x0097684000000', 0, 1, 'invalid decimal Unicode string')
  • encoding = 'decimal'
  • end = 1
  • message = ''
  • object = u'\x00\x00\x00\x00\x0097684000000'
  • reason = 'invalid decimal Unicode string'
  • start = 0

System Details