--> -->

IndexError

list index out of range

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. /srv/moin_tw/moin-productive/MoinMoin/request.py in run (self=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>)

    1. 1205 self.page.send_page(self, msg=msg)
    2. 1206 else:
    3. 1207 handler(self.page.page_name, self)
    4. 1208
    5. 1209 # generate page footer (actions that do not want this footer use
    • handler = <function do_show at 0xf79ed304>
    • self = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
    • self.page = <MoinMoin.Page.Page instance at 0xf6ad828c>
    • self.page.page_name = u'EventStats/UserAgents'
  2. /srv/moin_tw/moin-productive/MoinMoin/wikiaction.py in do_show (pagename=u'EventStats/UserAgents', request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>)

    1. 466 else:
    2. 467 request.cacheable = 1
    3. 468 Page(request, pagename).send_page(request, count_hit=1)
    4. 469
    5. 470
    • global Page = <class MoinMoin.Page.Page at 0xf7019f5c>
    • request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
    • pagename = u'EventStats/UserAgents'
    • ).send_page undefined
    • count_hit undefined
  3. /srv/moin_tw/moin-productive/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance at 0xf6ad830c>, request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>, msg='', **keywords={'count_hit': 1})

    1. 1254 format_args=pi_formatargs,
    2. 1255 do_cache=do_cache,
    3. 1256 start_line=pi_lines)
    4. 1257
    5. 1258 # check for pending footnotes
    • start_line undefined
    • pi_lines = 7
  4. /srv/moin_tw/moin-productive/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance at 0xf6ad830c>, request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>, Parser=<class MoinMoin.parser.wiki.Parser at 0xf6fc6d4c>, body=u'[[StatsChart(useragents)]]\n', format_args=u'', do_cache=1, **kw={'start_line': 7})

    1. 1345 try:
    2. 1346 code = self.loadCache(request)
    3. 1347 self.execute(request, parser, code)
    4. 1348 except Exception, e:
    5. 1349 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page instance at 0xf6ad830c>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance at 0xf6ad830c>>
    • request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
    • parser = <MoinMoin.parser.wiki.Parser instance at 0xf6ad872c>
    • code = <code object <module> at 0xf70d5068, file "EventStats/UserAgents", line 2>
  5. /srv/moin_tw/moin-productive/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance at 0xf6ad830c>, request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>, parser=<MoinMoin.parser.wiki.Parser instance at 0xf6ad872c>, code=<code object <module> at 0xf70d5068, file "EventStats/UserAgents", line 2>)

    1. 1374 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1375 try:
    3. 1376 exec code
    4. 1377 except 'CacheNeedsUpdate':
    5. 1378 raise Exception('CacheNeedsUpdate')
    • code = <code object <module> at 0xf70d5068, file "EventStats/UserAgents", line 2>
  6. /srv/de.wikiwikiweb.moinmaster/bin15/EventStats/UserAgents in ()

  7. /srv/moin_tw/moin-productive/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0xf6ad85ac>, macro_obj=<MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>, name=u'StatsChart', args=u'useragents')

    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 at 0xf6ad76ec>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>>
    • name = u'StatsChart'
    • args = u'useragents'
  8. /srv/moin_tw/moin-productive/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>, macro_name=u'StatsChart', args=u'useragents')

    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 = <function execute at 0xf6a8abc4>
    • self = <MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>
    • args = u'useragents'
  9. /srv/moin_tw/moin-productive/MoinMoin/macro/StatsChart.py in execute (macro=<MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>, args=u'useragents', **kw={})

    1. 29 formatter.text(_('Bad chart type "%s"!') % args) +
    2. 30 formatter.sysmsg(0))
    3. 31
    4. 32 return func(macro.formatter.page.page_name, macro.request)
    5. 33
    • func = <function linkto at 0xf6a8a80c>
    • macro = <MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>
    • macro.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0xf6ad85ac>
    • macro.formatter.page = <MoinMoin.Page.Page instance at 0xf6ad830c>
    • macro.formatter.page.page_name = u'EventStats/UserAgents'
    • macro.request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
  10. /srv/moin_tw/moin-productive/MoinMoin/stats/useragents.py in linkto (pagename=u'EventStats/UserAgents', request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>, params='')

    1. 24
    2. 25 if not request.cfg.chart_options:
    3. 26 return text(pagename, request)
    4. 27 if _debug:
    5. 28 return draw(pagename, request)
    • global text = <function text at 0xf6a8ad14>
    • pagename = u'EventStats/UserAgents'
    • request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
  11. /srv/moin_tw/moin-productive/MoinMoin/stats/useragents.py in text (pagename=u'EventStats/UserAgents', request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>)

    1. 92 _ = request.getText
    2. 93
    3. 94 data = get_data(request)
    4. 95
    5. 96 sum = 0.0
    • data undefined
    • global get_data = <function get_data at 0xf6a8a6bc>
    • request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
  12. /srv/moin_tw/moin-productive/MoinMoin/stats/useragents.py in get_data (request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>)

    1. 73 ua = ua[pos:].split(';')[1].strip()
    2. 74 else:
    3. 75 ua = ua.split()[0]
    4. 76 #ua = ua.replace(';', '\n')
    5. 77 data[ua] = data.get(ua, 0) + 1
    • ua = u'\xa0'
    • ua.split = <built-in method split of unicode object at 0xf6a7c8d8>

IndexError

list index out of range

  • args = ('list index out of range',)
  • message = 'list index out of range'

System Details

  • Date: Mon, 04 Jun 2007 23:03:26 +0000
  • Platform: Linux web.thinkmo.de 2.6.20-thinkmo-1 #1 SMP Sat Feb 17 13:11:11 UTC 2007 x86_64
  • Python: Python 2.5 (/usr/bin/python2.5)
  • MoinMoin: Release 1.5.8 (release)