<type 'exceptions.KeyError'> | Python 2.7.18: /usr/bin/python2 Sat Apr 20 08:00:56 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib64/python2.7/runpy.py in _run_module_as_main(mod_name='__main__', alter_argv=0) |
172 sys.argv[0] = fname |
173 return _run_code(code, main_globals, None, |
=> 174 "__main__", fname, loader, pkg_name) |
175 |
176 def run_module(mod_name, init_globals=None, |
fname = '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/__main__.py', loader = <zipimporter object "/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi">, pkg_name = '' |
/usr/lib64/python2.7/runpy.py in _run_code(code=<code object <module> at 0x7f81395ce2b0, file "/....org/ezmlm-browse/index.cgi/__main__.py", line 1>, run_globals={'__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/__main__.py', '__loader__': <zipimporter object "/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi">, '__name__': '__main__', '__package__': '', 'main': <module 'main' from '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/main.py'>}, init_globals=None, mod_name='__main__', mod_fname='/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/__main__.py', mod_loader=<zipimporter object "/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi">, pkg_name='') |
70 __loader__ = mod_loader, |
71 __package__ = pkg_name) |
=> 72 exec code in run_globals |
73 return run_globals |
74 |
code = <code object <module> at 0x7f81395ce2b0, file "/....org/ezmlm-browse/index.cgi/__main__.py", line 1>, run_globals = {'__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/__main__.py', '__loader__': <zipimporter object "/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi">, '__name__': '__main__', '__package__': '', 'main': <module 'main' from '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/main.py'>} |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/__main__.py in <module>() |
1 import main |
=> 2 main.main() |
main = <module 'main' from '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/main.py'>, main.main = <function main> |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/main.py in main() |
424 |
425 if path is not None: |
426 main_path(path) |
427 else: |
=> 428 main_form() |
global main_form = <function main_form> |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/main.py in main_form() |
378 except ImportError: |
379 die(ctxt, "Invalid command") |
=> 380 module.do(ctxt) |
381 |
382 def main(): |
module = <module 'commands.showmsg' from '/home/alex/webs....org/ezmlm-browse/index.cgi/commands/showmsg.py'>, module.do = <function do>, global ctxt = {'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'} |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/commands/showmsg.py in do(ctxt={'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}) |
16 ctxt['threadlen'] = len(ctxt[MESSAGES]) |
17 write('<div class=msg>') |
=> 18 write(html('msg-pager') % ctxt) |
19 write('<hr>') |
20 sub_showmsg(ctxt, ctxt[MSGNUM]) |
global write = <function write>, global html = <function html>, ctxt = {'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'} |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/context.py in __getitem__(self={'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}, key=u'iif(msgnum<ezmlm.num, "%(format_timestamp(ezmlm....subjlink(msgnum+1))s, %(msgauthlink(msgnum+1))s")') |
62 return self.dict[key] |
63 except KeyError: |
=> 64 return self.eval(key) |
65 def __setitem__(self, key, val): |
66 self.dict[key] = val |
self = {'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}, self.eval = <bound method Context.eval of {'threadnum': 0, '...-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}>, key = u'iif(msgnum<ezmlm.num, "%(format_timestamp(ezmlm....subjlink(msgnum+1))s, %(msgauthlink(msgnum+1))s")' |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/context.py in eval(self={'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}, body=u'iif(msgnum<ezmlm.num, "%(format_timestamp(ezmlm....subjlink(msgnum+1))s, %(msgauthlink(msgnum+1))s")') |
55 self.stack.append(self.dict.copy()) |
56 def eval(self, body): |
=> 57 return eval(body, self.globals, self.dict) |
58 def execute(self, body): |
59 exec(body, self.globals, self.dict) |
builtin eval = <built-in function eval>, body = u'iif(msgnum<ezmlm.num, "%(format_timestamp(ezmlm....subjlink(msgnum+1))s, %(msgauthlink(msgnum+1))s")', self = {'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}, self.globals = {'__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, ...}, 'absurl': <function absurl>, 'cmdlink': <function cmdlink>, 'config': <module 'config' from '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/config.py'>, 'defined': <built-in method has_key of dict object>, 'format_timestamp': <function <lambda>>, 'html': <function escape_html>, 'iif': <function iif>, 'isogmtime': <function isogmtime>, 'markup_urls': <function markup_urls>, ...}, self.dict = {'CONTEXT_DOCUMENT_ROOT': '/home/alex/websites/linuxhacker.org/ezmlm-browse', 'CONTEXT_PREFIX': '/ezmlm-browse', 'DOCUMENT_ROOT': '/home/alex/websites/linuxhacker.org/website', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.linuxhacker.org', 'HTTP_USER_AGENT': 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Geck...patible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'PATH': '/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bi...local/bin:/usr/local/sbin:/opt/bin:/var/qmail/bin', 'QUERY_STRING': 'list=nanogui&cmd=showmsg&msgnum=13081', ...} |
/home/alex/websites/linuxhacker.org/ezmlm-browse/<string> in <module>() |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/main.py in iif(cond=True, truestr='%(format_timestamp(ezmlm.index[msgnum+1]))s %(msgsubjlink(msgnum+1))s, %(msgauthlink(msgnum+1))s', falsestr='') |
40 global ctxt |
41 if cond: |
=> 42 return truestr % ctxt |
43 return falsestr % ctxt |
44 |
truestr = '%(format_timestamp(ezmlm.index[msgnum+1]))s %(msgsubjlink(msgnum+1))s, %(msgauthlink(msgnum+1))s', global ctxt = {'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'} |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/context.py in __getitem__(self={'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}, key='format_timestamp(ezmlm.index[msgnum+1])') |
62 return self.dict[key] |
63 except KeyError: |
=> 64 return self.eval(key) |
65 def __setitem__(self, key, val): |
66 self.dict[key] = val |
self = {'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}, self.eval = <bound method Context.eval of {'threadnum': 0, '...-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}>, key = 'format_timestamp(ezmlm.index[msgnum+1])' |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/context.py in eval(self={'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}, body='format_timestamp(ezmlm.index[msgnum+1])') |
55 self.stack.append(self.dict.copy()) |
56 def eval(self, body): |
=> 57 return eval(body, self.globals, self.dict) |
58 def execute(self, body): |
59 exec(body, self.globals, self.dict) |
builtin eval = <built-in function eval>, body = 'format_timestamp(ezmlm.index[msgnum+1])', self = {'threadnum': 0, 'cmd': 'showmsg', 'threadidx': ...O-X', 'UNIQUE_ID': 'ZiNoKLf83isuc22sM5GzfQAAAAo'}, self.globals = {'__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, ...}, 'absurl': <function absurl>, 'cmdlink': <function cmdlink>, 'config': <module 'config' from '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/config.py'>, 'defined': <built-in method has_key of dict object>, 'format_timestamp': <function <lambda>>, 'html': <function escape_html>, 'iif': <function iif>, 'isogmtime': <function isogmtime>, 'markup_urls': <function markup_urls>, ...}, self.dict = {'CONTEXT_DOCUMENT_ROOT': '/home/alex/websites/linuxhacker.org/ezmlm-browse', 'CONTEXT_PREFIX': '/ezmlm-browse', 'DOCUMENT_ROOT': '/home/alex/websites/linuxhacker.org/website', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.linuxhacker.org', 'HTTP_USER_AGENT': 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Geck...patible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'PATH': '/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bi...local/bin:/usr/local/sbin:/opt/bin:/var/qmail/bin', 'QUERY_STRING': 'list=nanogui&cmd=showmsg&msgnum=13081', ...} |
/home/alex/websites/linuxhacker.org/ezmlm-browse/<string> in <module>() |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/ezmlm.py in __getitem__(self=<ezmlm.EzmlmIndex instance>, key=13082) |
111 except KeyError: |
112 self.populate(key/100) |
=> 113 msg = self.msgs[key] |
114 if type(msg[SUBJECT]) is not types.UnicodeType: |
115 try: |
msg undefined, self = <ezmlm.EzmlmIndex instance>, self.msgs = {13000: {'author': 'Joseph Lopes', 'authorid': 'mcbiolbibalimafjcngh', 'date': '25 May 2011 14:49:11 -0000', 'month': 201105, 'msgnum': 13000, 'subject': 'mw-0.91 to current tarball, white is blue?', 'threadid': 'cfjnlngpolbiaddbddfk', 'timestamp': 1306334951.0}, 13001: {'author': 'sibu xolo', 'authorid': 'mmdhjbohknbgdiioljko', 'date': '25 May 2011 17:52:16 -0000', 'month': 201105, 'msgnum': 13001, 'subject': 'Re: amd64, freetype and t1lib', 'threadid': 'ehcjcoghiehgacpcnjco', 'timestamp': 1306345936.0}, 13002: {'author': 'Georg Potthast', 'authorid': 'eghcjojkbpifofmfmjae', 'date': '25 May 2011 21:00:30 -0000', 'month': 201105, 'msgnum': 13002, 'subject': 'Re: Compile with DJGPP or MSC', 'threadid': 'ngcjheoackgibbnkmleo', 'timestamp': 1306357230.0}, 13003: {'author': 'sibu xolo', 'authorid': 'mmdhjbohknbgdiioljko', 'date': '26 May 2011 02:05:47 -0000', 'month': 201105, 'msgnum': 13003, 'subject': 'Re: amd64, freetype and t1lib', 'threadid': 'ehcjcoghiehgacpcnjco', 'timestamp': 1306375547.0}, 13004: {'author': 'sibu xolo', 'authorid': 'mmdhjbohknbgdiioljko', 'date': '26 May 2011 14:59:54 -0000', 'month': 201105, 'msgnum': 13004, 'subject': 'fltk-1.3', 'threadid': 'lpbngidgcbenkachihpp', 'timestamp': 1306421994.0}, 13005: {'author': 'Greg Haerr', 'authorid': 'hkmebnbghmbpbeiooefn', 'date': '26 May 2011 16:55:59 -0000', 'month': 201105, 'msgnum': 13005, 'subject': 'Re: mw-0.91 to current tarball, white is blue?', 'threadid': 'cfjnlngpolbiaddbddfk', 'timestamp': 1306428959.0}, 13006: {'author': 'Greg Haerr', 'authorid': 'hkmebnbghmbpbeiooefn', 'date': '26 May 2011 16:56:54 -0000', 'month': 201105, 'msgnum': 13006, 'subject': 'Re: Touchscreen sluggish when using tslib', 'threadid': 'iiliabmldholjkenmiob', 'timestamp': 1306429014.0}, 13007: {'author': 'Greg Haerr', 'authorid': 'hkmebnbghmbpbeiooefn', 'date': '26 May 2011 16:59:18 -0000', 'month': 201105, 'msgnum': 13007, 'subject': 'Re: amd64, freetype and t1lib', 'threadid': 'ehcjcoghiehgacpcnjco', 'timestamp': 1306429158.0}, 13008: {'author': 'Georg Potthast', 'authorid': 'eghcjojkbpifofmfmjae', 'date': '28 May 2011 12:05:36 -0000', 'month': 201105, 'msgnum': 13008, 'subject': 'Screen driver development questions', 'threadid': 'lnfnicomeepkeahkllpi', 'timestamp': 1306584336.0}, 13009: {'author': 'Greg Haerr', 'authorid': 'hkmebnbghmbpbeiooefn', 'date': '28 May 2011 18:14:08 -0000', 'month': 201105, 'msgnum': 13009, 'subject': 'Re: Screen driver development questions', 'threadid': 'lnfnicomeepkeahkllpi', 'timestamp': 1306606448.0}, ...}, key = 13082 |
<type 'exceptions.KeyError'>: 13082
args =
(13082,)
message =
13082