Skip to content

Instantly share code, notes, and snippets.

@veriojon
Created April 12, 2011 15:11
Show Gist options
  • Save veriojon/915682 to your computer and use it in GitHub Desktop.
Save veriojon/915682 to your computer and use it in GitHub Desktop.
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 58146)
----------------------------------------
2011-04-12 11:09:57,048 INFO [imata.views.asset][worker 0] ([[u'SSID', u'Filename', u'Artstor Classification[1816]', u'Work Type[1821]', u'Creator[1822]', u'Culture[1814]', u'Title[1815]', u'Title 2[1823]', u'Title 3[1824]', u'Title 4[1825]', u'Style/Period[1826]', u'Date[1827]', u'Date extent[1832]', u'Date type[1829]', u'Earliest Date[1819]', u'Latest Date[1820]', u'Materials[1830]', u'Techniques[1831]', u'Measurements[1828]', u'Location[1817]', u'Location type[1846]', u'Subject[1842]', u'Relationships[1844]', u'Image View Type[1840]', u'Image View Description[1835]', u'Image agent[1833]', u'Image Date[1845]', u'Image subject[1836]', u'Order number[1837]', u'ID Number[1834]', u'Old ID number[1839]', u'Legacy data notes[1841]', u'Requestor id[1838]', u'Source[1843]', u'Rights[1818]', u'Subject 2[1847]', u'PlayDate[2087]'], ['38023', u'foo.jpg', '', '', u'Hlad\xedkov\xe1, Jenny (Czech tapissier and printmaker, born 1930) Female [500202351]', '', '', '', '', '', '', u'today', '', '', '0', '0', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2010']], [(1816, 2), (1821, 3), (1822, 4), (1814, 5), (1815, 6), (1823, 7), (1824, 8), (1825, 9), (1826, 10), (1827, 11), (1832, 12), (1829, 13), (1819, 14), (1820, 15), (1830, 16), (1831, 17), (1828, 18), (1817, 19), (1846, 20), (1842, 21), (1844, 22), (1840, 23), (1835, 24), (1833, 25), (1845, 26), (1836, 27), (1837, 28), (1834, 29), (1839, 30), (1841, 31), (1838, 32), (1843, 33), (1818, 34), (1847, 35), (2087, 36)])
Traceback (most recent call last):
File "/Users/jon/Env/lib/python2.7/site-packages/paste/httpserver.py", line 1068, in process_request_in_thread
self.finish_request(request, client_address)
File "/Users/jon/Env/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Users/jon/Env/lib/python2.7/SocketServer.py", line 639, in __init__
self.handle()
File "/Users/jon/Env/lib/python2.7/site-packages/paste/httpserver.py", line 442, in handle
BaseHTTPRequestHandler.handle(self)
File "/Users/jon/Env/lib/python2.7/BaseHTTPServer.py", line 337, in handle
self.handle_one_request()
File "/Users/jon/Env/lib/python2.7/site-packages/paste/httpserver.py", line 437, in handle_one_request
self.wsgi_execute()
File "/Users/jon/Env/lib/python2.7/site-packages/paste/httpserver.py", line 287, in wsgi_execute
self.wsgi_start_response)
File "/Users/jon/Env/lib/python2.7/site-packages/pyramid-1.0-py2.7.egg/pyramid/router.py", line 158, in __call__
response = view_callable(context, request)
File "/Users/jon/Env/lib/python2.7/site-packages/pyramid-1.0-py2.7.egg/pyramid/config.py", line 2916, in _requestonly_view
response = view(request)
File "/Users/jon/Code/imata/imata/decorators.py", line 29, in wrapped_view
return func(request)
File "/Users/jon/Code/imata/imata/views/asset.py", line 288, in xls_import
errors = _validate_excel_import(records_array, col_map, request)
File "/Users/jon/Code/imata/imata/views/asset.py", line 585, in _validate_excel_import
asset = query.filter_by(id=myvalues[1]).one()
File "/Users/jon/Env/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 890, in filter_by
for key, value in kwargs.iteritems()]
File "/Users/jon/Env/lib/python2.7/site-packages/sqlalchemy/orm/util.py", line 565, in _entity_descriptor
entity = entity.class_
AttributeError: 'Table' object has no attribute 'class_'
2011-04-12 11:09:57,433 CRITI [imata.views.asset][worker 8] parse_filtering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment