<type 'exceptions.KeyError'> at /feed/

'inline_styles'

Python build/bdist.linux-i686/egg/markdown/__init__.py in setConfig, line 478
Web GET http://antrix.net/mini/tb.py/feed/

Traceback (innermost first)

Local vars
VariableValue
key
'inline_styles'
self
<markdown.extensions.codehilite.CodeHiliteExtension instance at 0xa0b2150c>
value
'True'
  • build/bdist.linux-i686/egg/markdown/extensions/codehilite.py in __init__
    Local vars
    VariableValue
    configs
    [('inline_styles', 'True')]
    key
    'inline_styles'
    self
    <markdown.extensions.codehilite.CodeHiliteExtension instance at 0xa0b2150c>
    value
    'True'
  • build/bdist.linux-i686/egg/markdown/extensions/codehilite.py in makeExtension
    Local vars
    VariableValue
    configs
    [('inline_styles', 'True')]
  • build/bdist.linux-i686/egg/markdown/__init__.py in load_extension
    Local vars
    VariableValue
    configs
    {'inline_styles': 'True'}
    ext_args
    'inline_styles=True'
    ext_module
    'markdown.extensions'
    ext_name
    'codehilite'
    module
    <module 'markdown.extensions.codehilite' from '/home/antrix/local/python2.5/lib/python2.5/site-packages/Markdown-2.0.1-py2.5.egg/markdown/extensions/codehilite.pyc'>
    module_name_new_style
    'markdown.extensions.codehilite'
    module_name_old_style
    'mdx_codehilite'
    pairs
    [['inline_styles', 'True']]
    pos
    10
    x
    'inline_styles'
    y
    'True'
  • build/bdist.linux-i686/egg/markdown/__init__.py in load_extensions
    Local vars
    VariableValue
    ext_name
    'codehilite(inline_styles=True)'
    ext_names
    ['codehilite(inline_styles=True)']
    extensions
    []
  • build/bdist.linux-i686/egg/markdown/__init__.py in markdown
    Local vars
    VariableValue
    extensions
    ['codehilite(inline_styles=True)']
    output_format
    'xhtml1'
    safe_mode
    False
    text
    '<blockquote class="quotable"><span class="quote-text">A corner case is an objection that may be technically reasonable and may have a probability of occurring, but its probability of occurring is lower than your probability of running out of money.</span><span class="quote-source"> -- <a href="http://entrepreneur.venturebeat.com/2009/11/24/killing-innovation-with-corner-cases/">Steve Blank</a></span></blockquote> \n'
  • tb.py in GET
    1. entry.content = markdown.markdown(e.content, ['codehilite'])
    2. print render.base(render.entry(entry, True), entry.title)
    3. class FeedC:
    4. def GET(self):
    5. entries = blog.entries[:config.per_page]
    6. for e in entries:
    1. e.content = markdown.markdown(e.content, ['codehilite(inline_styles=True)']) ...
    1. web.header('Content-Type', 'application/atom+xml; charset=UTF-8')
    2. #web.header('Content-Type', 'text/xml')
    3. print render.feed(entries)
    4. class StaticServerC:
    Local vars
    VariableValue
    e
    Entry(id=200, title="None", created=2009-11-28 04:32:47, modified=None, content="<blockquote class="quotable"><span class="quote-text">A corner case is an objection that may be technically reasonable and may have a probability of occurring, but its probability of occurring is lower than your probability of running out of money.</span><span class="quote-source"> -- <a href="http://entrepreneur.venturebeat.com/2009/11/24/killing-innovation-with-corner-cases/">Steve Blank</a></span></blockquote> ")
    entries
    [could not display: <UnicodeEncodeError: 'ascii' codec can't encode character u'\u092a' in position 807: ordinal not in range(128)>]
    self
    <__main__.FeedC instance at 0xa0b1d88c>
  • /home/.lana/antrix/local/python2.5/lib/python2.5/site-packages/web.py-0.23-py2.5.egg/web/request.py in handle
    1. meth = "GET"
    2. if not hasattr(cls, meth):
    3. return nomethod(cls)
    4. tocall = getattr(cls(), meth)
    5. args = list(result.groups())
    6. for d in re.findall(r'\\(\d+)', ofn):
    7. args.pop(int(d) - 1)
    1. return tocall(*([x and urllib.unquote(x) for x in args] + fna)) ...
    1. return web.notfound()
    2. def nomethod(cls):
    3. """Returns a `405 Method Not Allowed` error for `cls`."""
    4. web.ctx.status = '405 Method Not Allowed'
    Local vars
    VariableValue
    args
    []
    cls
    <class __main__.FeedC at 0xa0b054ac>
    fn
    'FeedC'
    fna
    []
    fvars
    {'Blog': <class models.Blog at 0xa0b812cc>, 'EntryC': <class __main__.EntryC at 0xa0b0547c>, 'FeedC': <class __main__.FeedC at 0xa0b054ac>, 'IndexC': <class __main__.IndexC at 0xa0b0544c>, 'StaticServerC': <class __main__.StaticServerC at 0xa0b054dc>, '__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': 'tb.py', '__name__': '__main__', 'batch': <function batch at 0xa0b04d84>, 'blog': <models.Blog instance at 0xa0b0784c>, 'chain': <type 'itertools.chain'>, 'config': <module 'config' from '/home/.lana/antrix/antrix.net/mini/config.pyc'>, 'get_entries_range': <function get_entries_range at 0xa0b04dbc>, 'islice': <type 'itertools.islice'>, 'markdown': <module 'markdown' from '/home/antrix/local/python2.5/lib/python2.5/site-packages/Markdown-2.0.1-py2.5.egg/markdown/__init__.pyc'>, 'mime_type': <function mime_type at 0xa0b04a3c>, 'mimetypes': <module 'mimetypes' from '/home/antrix/local/python2.5/lib/python2.5/mimetypes.pyc'>, 'render': <web.template.render instance at 0xa0b0764c>, 'timesince': <module 'timesince' from '/home/.lana/antrix/antrix.net/mini/timesince.pyc'>, 'urls': ('/(static)/.*', 'StaticServerC', '/(templates)/.*', 'StaticServerC', '/feed/?', 'FeedC', '/entry/(\\d*)/?', 'EntryC', '/(\\d+)/?', 'IndexC', '/?', 'IndexC'), 'web': <module 'web' from '/home/antrix/local/python2.5/lib/python2.5/site-packages/web.py-0.23-py2.5.egg/web/__init__.pyc'>}
    mapping
    ('/(static)/.*', 'StaticServerC', '/(templates)/.*', 'StaticServerC', '/feed/?', 'FeedC', '/entry/(\\d*)/?', 'EntryC', '/(\\d+)/?', 'IndexC', '/?', 'IndexC')
    meth
    'GET'
    mod
    {'Blog': <class models.Blog at 0xa0b812cc>, 'EntryC': <class __main__.EntryC at 0xa0b0547c>, 'FeedC': <class __main__.FeedC at 0xa0b054ac>, 'IndexC': <class __main__.IndexC at 0xa0b0544c>, 'StaticServerC': <class __main__.StaticServerC at 0xa0b054dc>, '__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': 'tb.py', '__name__': '__main__', 'batch': <function batch at 0xa0b04d84>, 'blog': <models.Blog instance at 0xa0b0784c>, 'chain': <type 'itertools.chain'>, 'config': <module 'config' from '/home/.lana/antrix/antrix.net/mini/config.pyc'>, 'get_entries_range': <function get_entries_range at 0xa0b04dbc>, 'islice': <type 'itertools.islice'>, 'markdown': <module 'markdown' from '/home/antrix/local/python2.5/lib/python2.5/site-packages/Markdown-2.0.1-py2.5.egg/markdown/__init__.pyc'>, 'mime_type': <function mime_type at 0xa0b04a3c>, 'mimetypes': <module 'mimetypes' from '/home/antrix/local/python2.5/lib/python2.5/mimetypes.pyc'>, 'render': <web.template.render instance at 0xa0b0764c>, 'timesince': <module 'timesince' from '/home/.lana/antrix/antrix.net/mini/timesince.pyc'>, 'urls': ('/(static)/.*', 'StaticServerC', '/(templates)/.*', 'StaticServerC', '/feed/?', 'FeedC', '/entry/(\\d*)/?', 'EntryC', '/(\\d+)/?', 'IndexC', '/?', 'IndexC'), 'web': <module 'web' from '/home/antrix/local/python2.5/lib/python2.5/site-packages/web.py-0.23-py2.5.egg/web/__init__.pyc'>}
    ofn
    'FeedC'
    ofno
    'FeedC'
    result
    <_sre.SRE_Match object at 0xa0b1e058>
    tocall
    <bound method FeedC.GET of <__main__.FeedC instance at 0xa0b1d88c>>
    url
    '/feed/?'
  • /home/.lana/antrix/local/python2.5/lib/python2.5/site-packages/web.py-0.23-py2.5.egg/web/request.py in <lambda>
    1. return name
    2. mod = __import__(modname(), None, None, [""])
    3. #@@probably should replace this with some inspect magic
    4. name = utils.dictfind(fvars, inp)
    5. func = lambda: handle(getattr(mod, name), mod)
    6. else:
    1. func = lambda: handle(inp, fvars) ...
    1. else:
    2. func = inp
    3. return func
    4. def run(inp, fvars, *middleware):
    5. """
    Local vars
    VariableValue
    fvars
    {'Blog': <class models.Blog at 0xa0b812cc>, 'EntryC': <class __main__.EntryC at 0xa0b0547c>, 'FeedC': <class __main__.FeedC at 0xa0b054ac>, 'IndexC': <class __main__.IndexC at 0xa0b0544c>, 'StaticServerC': <class __main__.StaticServerC at 0xa0b054dc>, '__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': 'tb.py', '__name__': '__main__', 'batch': <function batch at 0xa0b04d84>, 'blog': <models.Blog instance at 0xa0b0784c>, 'chain': <type 'itertools.chain'>, 'config': <module 'config' from '/home/.lana/antrix/antrix.net/mini/config.pyc'>, 'get_entries_range': <function get_entries_range at 0xa0b04dbc>, 'islice': <type 'itertools.islice'>, 'markdown': <module 'markdown' from '/home/antrix/local/python2.5/lib/python2.5/site-packages/Markdown-2.0.1-py2.5.egg/markdown/__init__.pyc'>, 'mime_type': <function mime_type at 0xa0b04a3c>, 'mimetypes': <module 'mimetypes' from '/home/antrix/local/python2.5/lib/python2.5/mimetypes.pyc'>, 'render': <web.template.render instance at 0xa0b0764c>, 'timesince': <module 'timesince' from '/home/.lana/antrix/antrix.net/mini/timesince.pyc'>, 'urls': ('/(static)/.*', 'StaticServerC', '/(templates)/.*', 'StaticServerC', '/feed/?', 'FeedC', '/entry/(\\d*)/?', 'EntryC', '/(\\d+)/?', 'IndexC', '/?', 'IndexC'), 'web': <module 'web' from '/home/antrix/local/python2.5/lib/python2.5/site-packages/web.py-0.23-py2.5.egg/web/__init__.pyc'>}
    inp
    ('/(static)/.*', 'StaticServerC', '/(templates)/.*', 'StaticServerC', '/feed/?', 'FeedC', '/entry/(\\d*)/?', 'EntryC', '/(\\d+)/?', 'IndexC', '/?', 'IndexC')
  • /home/.lana/antrix/local/python2.5/lib/python2.5/site-packages/web.py-0.23-py2.5.egg/web/webapi.py in wsgifunc
    1. _load(env)
    2. # allow uppercase methods only
    3. if ctx.method.upper() != ctx.method:
    4. return notfound()
    5. try:
    1. result = func() ...
    1. except StopIteration:
    2. result = None
    3. except:
    4. print >> debug, traceback.format_exc()
    5. result = internalerror()
    Local vars
    VariableValue
    env
    {'DOCUMENT_ROOT': '/home/antrix/antrix.net', 'FCGI_FORCE_CGI': 'Y', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'antrix.net', 'HTTP_PRAGMA': 'no-cache', 'HTTP_USER_AGENT': 'FeedBurner/1.0 (http://www.FeedBurner.com)', 'HTTP_X_FEEDBURNER_URI': 'antrix-mini', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/feed/', 'PATH_TRANSLATED': '/home/antrix/antrix.net/feed/', 'QUERY_STRING': '', 'REDIRECT_STATUS': '200', 'REDIRECT_URL': '/mini/feed/', 'REMOTE_ADDR': '74.125.158.80', 'REMOTE_PORT': '42150', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/mini/feed/', 'SCRIPT_FILENAME': '/home/antrix/antrix.net/mini/tb.py', 'SCRIPT_NAME': '/mini/tb.py', 'SCRIPT_URI': 'http://antrix.net/mini/feed/', 'SCRIPT_URL': '/mini/feed/', 'SERVER_ADDR': '208.113.231.190', 'SERVER_ADMIN': 'webmaster@antrix.net', 'SERVER_NAME': 'antrix.net', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache', 'UNIQUE_ID': 'RKWNQtBx@qIAAGp8BnAAAAAH', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xa0fb20b0>, 'wsgi.input': <open file '<stdin>', mode 'r' at 0xa0fb2020>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': True, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}
    func
    <function <lambda> at 0xa0b04df4>
    start_resp
    <function start_response at 0xa0b18fb4>
  • Response so far

    HEADERS

    Content-Type: text/html

    BODY

    Request information

    INPUT

    No data.

    No data.

    META

    VariableValue
    Content-Type
    'text/html'

    ENVIRONMENT

    VariableValue
    DOCUMENT_ROOT
    '/home/antrix/antrix.net'
    FCGI_FORCE_CGI
    'Y'
    GATEWAY_INTERFACE
    'CGI/1.1'
    HTTP_ACCEPT
    'text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2'
    HTTP_ACCEPT_ENCODING
    'gzip'
    HTTP_CACHE_CONTROL
    'no-cache'
    HTTP_CONNECTION
    'keep-alive'
    HTTP_HOST
    'antrix.net'
    HTTP_PRAGMA
    'no-cache'
    HTTP_USER_AGENT
    'FeedBurner/1.0 (http://www.FeedBurner.com)'
    HTTP_X_FEEDBURNER_URI
    'antrix-mini'
    PATH
    '/usr/local/bin:/usr/bin:/bin'
    PATH_INFO
    '/feed/'
    PATH_TRANSLATED
    '/home/antrix/antrix.net/feed/'
    QUERY_STRING
    ''
    REDIRECT_STATUS
    '200'
    REDIRECT_URL
    '/mini/feed/'
    REMOTE_ADDR
    '74.125.158.80'
    REMOTE_PORT
    '42150'
    REQUEST_METHOD
    'GET'
    REQUEST_URI
    '/mini/feed/'
    SCRIPT_FILENAME
    '/home/antrix/antrix.net/mini/tb.py'
    SCRIPT_NAME
    '/mini/tb.py'
    SCRIPT_URI
    'http://antrix.net/mini/feed/'
    SCRIPT_URL
    '/mini/feed/'
    SERVER_ADDR
    '208.113.231.190'
    SERVER_ADMIN
    'webmaster@antrix.net'
    SERVER_NAME
    'antrix.net'
    SERVER_PORT
    '80'
    SERVER_PROTOCOL
    'HTTP/1.1'
    SERVER_SIGNATURE
    ''
    SERVER_SOFTWARE
    'Apache'
    UNIQUE_ID
    'RKWNQtBx@qIAAGp8BnAAAAAH'
    wsgi.errors
    <open file '<stderr>', mode 'w' at 0xa0fb20b0>
    wsgi.input
    <open file '<stdin>', mode 'r' at 0xa0fb2020>
    wsgi.multiprocess
    True
    wsgi.multithread
    False
    wsgi.run_once
    True
    wsgi.url_scheme
    'http'
    wsgi.version
    (1, 0)

    You're seeing this error because you have web.internalerror set to web.debugerror. Change that if you want a different one.