--> --> -->
 
 
<type 'exceptions.TypeError'>
Python 2.7.3: /usr/bin/python
Thu Apr 24 04:22:54 2014

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/quango/blog/tb.cgi in ()
    511 if __name__ == '__main__':
    512     if os.environ.get('REQUEST_METHOD'):
=>  513         main()
    514     else:
    515         test()
main = <function main>
 /home/quango/blog/tb.cgi in main()
    484 
    485     if not entryid:
=>  486         tb_feed()
    487     elif reqmeth == 'GET':
    488         if not LEGACY_MODE or (LEGACY_MODE and mode=='rss'):
global tb_feed = <function tb_feed>
 /home/quango/blog/tb.cgi in tb_feed(entryid=None)
    402                        'ORDER BY t.added DESC LIMIT 25')
    403         
=>  404     R = db_row.MetaRow(cursor.description)
    405     pings = [R(row) for row in cursor.fetchall()]
    406     db.close()
R undefined, global db_row = <module 'db_row' from '/home/quango/blog/db_row.pyc'>, db_row.MetaRow = <class 'db_row.MetaRow'>, cursor = <cursor object at 0x9313554; closed: 0>, cursor.description = (Column(name='title', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...e=1024, precision=None, scale=None, null_ok=None), Column(name='excerpt', type_code=1043, display_s...ze=256, precision=None, scale=None, null_ok=None), Column(name='blog_name', type_code=1043, display...ze=128, precision=None, scale=None, null_ok=None), Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1184, display_siz...size=8, precision=None, scale=None, null_ok=None), Column(name='etitle', type_code=1043, display_si...ze=100, precision=None, scale=None, null_ok=None))
 /home/quango/blog/db_row.py in __new__(cls=<class 'db_row.MetaRow'>, fields=(Column(name='title', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...e=1024, precision=None, scale=None, null_ok=None), Column(name='excerpt', type_code=1043, display_s...ze=256, precision=None, scale=None, null_ok=None), Column(name='blog_name', type_code=1043, display...ze=128, precision=None, scale=None, null_ok=None), Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1184, display_siz...size=8, precision=None, scale=None, null_ok=None), Column(name='etitle', type_code=1043, display_si...ze=100, precision=None, scale=None, null_ok=None)), driver=None)
    669 
    670     field_dict['__fields__'] = tuple(field_names)
=>  671     field_class = type('fields', (cls.field_base,), field_dict)
    672 
    673     row_dict = {}
field_class undefined, builtin type = <type 'type'>, cls = <class 'db_row.MetaRow'>, cls.field_base = <class 'db_row.Fields'>, field_dict = {'__fields__': (Column(name='title', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...e=1024, precision=None, scale=None, null_ok=None), Column(name='excerpt', type_code=1043, display_s...ze=256, precision=None, scale=None, null_ok=None), Column(name='blog_name', type_code=1043, display...ze=128, precision=None, scale=None, null_ok=None), Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1184, display_siz...size=8, precision=None, scale=None, null_ok=None), Column(name='etitle', type_code=1043, display_si...ze=100, precision=None, scale=None, null_ok=None)), '__slots__': ()}
 /home/quango/blog/db_row.py in __new__(cls=<class 'db_row.MetaFields'>, name='fields', bases=(<class 'db_row.Fields'>,), field_dict={'__fields__': (Column(name='title', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...e=1024, precision=None, scale=None, null_ok=None), Column(name='excerpt', type_code=1043, display_s...ze=256, precision=None, scale=None, null_ok=None), Column(name='blog_name', type_code=1043, display...ze=128, precision=None, scale=None, null_ok=None), Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1184, display_siz...size=8, precision=None, scale=None, null_ok=None), Column(name='etitle', type_code=1043, display_si...ze=100, precision=None, scale=None, null_ok=None)), '__slots__': ()})
    242   def __new__(cls, name, bases, field_dict):
    243     fields = field_dict.get('__fields__',())
=>  244     cls.build_properties(cls, fields, field_dict)
    245     return super(MetaFields,cls).__new__(cls, name, bases, field_dict)
    246 
cls = <class 'db_row.MetaFields'>, cls.build_properties = <function build_properties>, fields = (Column(name='title', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...e=1024, precision=None, scale=None, null_ok=None), Column(name='excerpt', type_code=1043, display_s...ze=256, precision=None, scale=None, null_ok=None), Column(name='blog_name', type_code=1043, display...ze=128, precision=None, scale=None, null_ok=None), Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1184, display_siz...size=8, precision=None, scale=None, null_ok=None), Column(name='etitle', type_code=1043, display_si...ze=100, precision=None, scale=None, null_ok=None)), field_dict = {'__fields__': (Column(name='title', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...e=1024, precision=None, scale=None, null_ok=None), Column(name='excerpt', type_code=1043, display_s...ze=256, precision=None, scale=None, null_ok=None), Column(name='blog_name', type_code=1043, display...ze=128, precision=None, scale=None, null_ok=None), Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1184, display_siz...size=8, precision=None, scale=None, null_ok=None), Column(name='etitle', type_code=1043, display_si...ze=100, precision=None, scale=None, null_ok=None)), '__slots__': ()}
 /home/quango/blog/db_row.py in build_properties(self=<class 'db_row.MetaFields'>, fields=(Column(name='title', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...e=1024, precision=None, scale=None, null_ok=None), Column(name='excerpt', type_code=1043, display_s...ze=256, precision=None, scale=None, null_ok=None), Column(name='blog_name', type_code=1043, display...ze=128, precision=None, scale=None, null_ok=None), Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1184, display_siz...size=8, precision=None, scale=None, null_ok=None), Column(name='etitle', type_code=1043, display_si...ze=100, precision=None, scale=None, null_ok=None)), field_dict={'__fields__': (Column(name='title', type_code=1043, display_siz...ze=128, precision=None, scale=None, null_ok=None), Column(name='url', type_code=1043, display_size=...e=1024, precision=None, scale=None, null_ok=None), Column(name='excerpt', type_code=1043, display_s...ze=256, precision=None, scale=None, null_ok=None), Column(name='blog_name', type_code=1043, display...ze=128, precision=None, scale=None, null_ok=None), Column(name='entryid', type_code=23, display_siz...size=4, precision=None, scale=None, null_ok=None), Column(name='added', type_code=1184, display_siz...size=8, precision=None, scale=None, null_ok=None), Column(name='etitle', type_code=1043, display_si...ze=100, precision=None, scale=None, null_ok=None)), '__slots__': ()})
    256     for f in fields:
    257       if type(f) is not str:
=>  258         raise TypeError, 'Field names must be ASCII strings'
    259       if not f:
    260         raise ValueError, 'Field names cannot be empty'
builtin TypeError = <type 'exceptions.TypeError'>

<type 'exceptions.TypeError'>: Field names must be ASCII strings
      args = ('Field names must be ASCII strings',)
      message = 'Field names must be ASCII strings'