Hint: you can search for multiple words, just like Google. See also HelpOnSearching. |
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.
/home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)
- 1205 self.page.send_page(self, msg=msg)
- 1206 else:
- 1207 handler(self.page.page_name, self)
- 1208
- 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'
/home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/action/MyPages.py in execute (pagename=u'RecentChanges', request=<MoinMoin.request.RequestCGI object>)
- 21 if not username:
- 22 return thispage.send_page(request,
- 23 msg = _('Please log in first.'))
- 24
- 25 userhomewiki = request.cfg.user_homewiki
- msg undefined
- _ = <function <lambda>>
/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'Please log in first.', **keywords={})
- 1254 format_args=pi_formatargs,
- 1255 do_cache=do_cache,
- 1256 start_line=pi_lines)
- 1257
- 1258 # check for pending footnotes
- start_line undefined
- pi_lines = 7
/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})
- 1345 try:
- 1346 code = self.loadCache(request)
- 1347 self.execute(request, parser, code)
- 1348 except Exception, e:
- 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 0x7f3c816f5530, file "RecentChanges", line 2>
/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 0x7f3c816f5530, file "RecentChanges", line 2>)
- 1374 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
- 1375 try:
- 1376 exec code
- 1377 except 'CacheNeedsUpdate':
- 1378 raise Exception('CacheNeedsUpdate')
- code = <code object <module> at 0x7f3c816f5530, file "RecentChanges", line 2>
/home/project-web/tmda/cgi-bin/RecentChanges in
() /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)
- 288 def macro(self, macro_obj, name, args):
- 289 # call the macro
- 290 return macro_obj.execute(name, args)
- 291
- 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
/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)
- 118 else:
- 119 raise ImportError("Cannot load macro %s" % macro_name)
- 120 return execute(self, args)
- 121
- 122 def _m_lang(self, text):
- execute = <function execute>
- self = <MoinMoin.wikimacro.Macro instance>
- args = None
/home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/macro/RecentChanges.py in execute (macro=<MoinMoin.wikimacro.Macro instance>, args=None, **kw={})
- 319
- 320 for page in pages:
- 321 request.write(format_page_edits(macro, page, bookmark_usecs))
- 322 pages = {}
- 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
/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)
- 114 name, util.rangelist(positions)))
- 115 else:
- 116 d['editors'] = [line.getEditor(request)]
- 117
- 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>
/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>)
- 91 else:
- 92 title = ""
- 93 kind, info = self.getInterwikiEditorData(request)
- 94 if kind == 'interwiki':
- 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>
/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>)
- 73 if self.userid:
- 74 if not self._usercache.has_key(self.userid):
- 75 self._usercache[self.userid] = user.User(request, self.userid, auth_method="editlog:75")
- 76 userdata = self._usercache[self.userid]
- 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
/home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/user.py in __init__ (self=<MoinMoin.user.User at 0x7f3c831a31b8 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'})
- 260 check_pass = 1
- 261 if self.id:
- 262 self.load_from_id(check_pass)
- 263 if self.name == self.auth_username:
- 264 self.trusted = 1
- self = <MoinMoin.user.User at 0x7f3c831a31b8 name:'' id:1074635546.92.26683 valid:0>
- self.load_from_id = <bound method User.load_from_id of <MoinMoin.use...831a31b8 name:'' id:1074635546.92.26683 valid:0>>
- check_pass = 0
/home/project-web/tmda/moin/lib/python2.4/site-packages/MoinMoin/user.py in load_from_id (self=<MoinMoin.user.User at 0x7f3c831a31b8 name:'' id:1074635546.92.26683 valid:0>, check_pass=0)
- 333 dbh = dbConnect(self._request)
- 334 cur = dbh.cursor()
- 335 cur.execute('SELECT data FROM users WHERE user_id = %s', (self.id))
- 336 data = cur.fetchone()
- 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 0x7f3c831a31b8 name:'' id:1074635546.92.26683 valid:0>
- self.id = u'1074635546.92.26683'
/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')
- 185 for key, item in args.iteritems())
- 186 else:
- 187 query = query % tuple([db.literal(item) for item in args])
- 188 try:
- 189 r = None
- query = 'SELECT data FROM users WHERE user_id = %s'
- builtin tuple = <type 'tuple'>
- db = <weakproxy at 0x7f3c816c1aa0 to Connection>
- db.literal = <bound method Connection.literal of <_mysql.connection open to 'mysql-t' at 1d82ee0>>
- 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: Fri, 29 Mar 2024 09:53:14 +0000
- Platform: Linux sfp-ioweb82-1.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)