You are not allowed to edit this page.

Clear message

Hint: get email notification when this page changes, by clicking Subscribe.

--> -->
2012-03-26

TypeError

not all arguments converted during string formatting

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. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)

    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 execute>
    • self = <MoinMoin.request.RequestCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'RecentChanges'
  2. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/action/PackagePages.py in execute (pagename=u'RecentChanges', request=<MoinMoin.request.RequestCGI object>)

    1. 167 return Dialog(self.request, content=form)
    2. 168
    3. 169 def execute(pagename, request):
    4. 170 """ Glue code for actions """
    5. 171 PackagePages(pagename, request).render()
    • global PackagePages = <class MoinMoin.action.PackagePages.PackagePages>
    • pagename = u'RecentChanges'
    • request = <MoinMoin.request.RequestCGI object>
    • ).render undefined
  3. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/action/PackagePages.py in render (self=<MoinMoin.action.PackagePages.PackagePages instance>)

    1. 57 self.package()
    2. 58 except ActionError, e:
    3. 59 return self.page.send_page(self.request, msg=e.args[0])
    4. 60
    5. 61 def package(self):
    • self = <MoinMoin.action.PackagePages.PackagePages instance>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>
    • self.request = <MoinMoin.request.RequestCGI object>
    • msg undefined
    • e = ActionError(u'You are not allowed to edit this page.',)
    • e.args = (u'You are not allowed to edit this page.',)
  4. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, msg=u'You are not allowed to edit this page.', **keywords={})

    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
  5. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'\n||<tablestyle="width: 100%; background: #E6EAF0...his wiki.\nMore system information on SystemInfo.\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>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestCGI object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object <module> at 0x7fd740a018b0, file "RecentChanges", line 2>
  6. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object <module> at 0x7fd740a018b0, file "RecentChanges", 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 0x7fd740a018b0, file "RecentChanges", line 2>
  7. /home/project-web/tmda/cgi-bin/RecentChanges in ()

  8. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'RecentChanges', 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'RecentChanges'
    • args = None
  9. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'RecentChanges', 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 = <function execute>
    • self = <MoinMoin.wikimacro.Macro instance>
    • args = None
  10. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/macro/RecentChanges.py in execute (macro=<MoinMoin.wikimacro.Macro instance>, args=None, **kw={})

    1. 319
    2. 320 for page in pages:
    3. 321 request.write(format_page_edits(macro, page, bookmark_usecs))
    4. 322 pages = {}
    5. 323 day_count += 1
    • request = <MoinMoin.request.RequestCGI object>
    • request.write = <bound method RequestCGI.write of <MoinMoin.request.RequestCGI object>>
    • global format_page_edits = <function format_page_edits>
    • macro = <MoinMoin.wikimacro.Macro instance>
    • page = [<MoinMoin.logfile.editlog.EditLogLine instance>]
    • bookmark_usecs = 0
  11. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/macro/RecentChanges.py in format_page_edits (macro=<MoinMoin.wikimacro.Macro instance>, lines=[<MoinMoin.logfile.editlog.EditLogLine instance>], bookmark_usecs=0)

    1. 114 name, util.rangelist(positions)))
    2. 115 else:
    3. 116 d['editors'] = [line.getEditor(request)]
    4. 117
    5. 118 comments = []
    • d = {'editors': None, 'icon_html': u'<a href="/cgi-bin/moin.cgi/JasonMastaler?action=...g/moin-diff.png" title="[DIFF]" width="15" /></a>', 'pagelink_html': u'<a href="/cgi-bin/moin.cgi/JasonMastaler">JasonMastaler</a>', 'time_html': '00:38'}
    • line = <MoinMoin.logfile.editlog.EditLogLine instance>
    • line.getEditor = <bound method EditLogLine.getEditor of <MoinMoin.logfile.editlog.EditLogLine instance>>
    • request = <MoinMoin.request.RequestCGI object>
  12. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/logfile/editlog.py in getEditor (self=<MoinMoin.logfile.editlog.EditLogLine instance>, request=<MoinMoin.request.RequestCGI object>)

    1. 91 else:
    2. 92 title = ""
    3. 93 kind, info = self.getInterwikiEditorData(request)
    4. 94 if kind == 'interwiki':
    5. 95 name = self._usercache[self.userid].name
    • kind undefined
    • info undefined
    • self = <MoinMoin.logfile.editlog.EditLogLine instance>
    • self.getInterwikiEditorData = <bound method EditLogLine.getInterwikiEditorData of <MoinMoin.logfile.editlog.EditLogLine instance>>
    • request = <MoinMoin.request.RequestCGI object>
  13. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/logfile/editlog.py in getInterwikiEditorData (self=<MoinMoin.logfile.editlog.EditLogLine instance>, request=<MoinMoin.request.RequestCGI object>)

    1. 73 if self.userid:
    2. 74 if not self._usercache.has_key(self.userid):
    3. 75 self._usercache[self.userid] = user.User(request, self.userid, auth_method="editlog:75")
    4. 76 userdata = self._usercache[self.userid]
    5. 77 if userdata.mailto_author and userdata.email:
    • self = <MoinMoin.logfile.editlog.EditLogLine instance>
    • self._usercache = {}
    • self.userid = u'1074635546.92.26683'
    • global user = <module 'MoinMoin.user' from '../moin/lib/python2.4/site-packages/MoinMoin/user.pyc'>
    • user.User = <class MoinMoin.user.User>
    • request = <MoinMoin.request.RequestCGI object>
    • auth_method undefined
  14. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/user.py in __init__ (self=<MoinMoin.user.User at 0x7fd7424ac3b0 name:'' id:1074635546.92.26683 valid:0>, request=<MoinMoin.request.RequestCGI object>, id=u'1074635546.92.26683', name='', password=None, auth_username='', **kw={'auth_method': 'editlog:75'})

    1. 260 check_pass = 1
    2. 261 if self.id:
    3. 262 self.load_from_id(check_pass)
    4. 263 if self.name == self.auth_username:
    5. 264 self.trusted = 1
    • self = <MoinMoin.user.User at 0x7fd7424ac3b0 name:'' id:1074635546.92.26683 valid:0>
    • self.load_from_id = <bound method User.load_from_id of <MoinMoin.use...424ac3b0 name:'' id:1074635546.92.26683 valid:0>>
    • check_pass = 0
  15. /home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/user.py in load_from_id (self=<MoinMoin.user.User at 0x7fd7424ac3b0 name:'' id:1074635546.92.26683 valid:0>, check_pass=0)

    1. 333 dbh = dbConnect(self._request)
    2. 334 cur = dbh.cursor()
    3. 335 cur.execute('SELECT data FROM users WHERE user_id = %s', (self.id))
    4. 336 data = cur.fetchone()
    5. 337 if not data:
    • cur = <MySQLdb.cursors.Cursor object>
    • cur.execute = <bound method Cursor.execute of <MySQLdb.cursors.Cursor object>>
    • self = <MoinMoin.user.User at 0x7fd7424ac3b0 name:'' id:1074635546.92.26683 valid:0>
    • self.id = u'1074635546.92.26683'
  16. /usr/lib64/python2.7/site-packages/MySQLdb/cursors.py in execute (self=<MySQLdb.cursors.Cursor object>, query='SELECT data FROM users WHERE user_id = %s', args=u'1074635546.92.26683')

    1. 185 for key, item in args.iteritems())
    2. 186 else:
    3. 187 query = query % tuple([db.literal(item) for item in args])
    4. 188 try:
    5. 189 r = None
    • query = 'SELECT data FROM users WHERE user_id = %s'
    • builtin tuple = <type 'tuple'>
    • db = <weakproxy at 0x7fd7409c9d08 to Connection>
    • db.literal = <bound method Connection.literal of <_mysql.connection open to 'mysql-t' at 1cc73d0>>
    • item = u'3'
    • args = u'1074635546.92.26683'

TypeError

not all arguments converted during string formatting

  • args = ('not all arguments converted during string formatting',)
  • message = 'not all arguments converted during string formatting'

System Details

  • Date: Thu, 28 Mar 2024 09:22:39 +0000
  • Platform: Linux sfp-ioweb82-2.v30.lw.sourceforge.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
  • Python: Python 2.7.5 (/bin/python)
  • MoinMoin: Release 1.5.8 (release)