Advertisement
Guest User

Untitled

a guest
Oct 7th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.63 KB | None | 0 0
  1. A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
  2.  
  3. /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
  4. 556 """Runs the handler, flushes the streams, and ends the request."""
  5. 557 try:
  6. 558 protocolStatus, appStatus = self.server.handler(self)
  7. 559 except:
  8. 560 traceback.print_exc(file=self.stderr)
  9. protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
  10. /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
  11. 1116 try:
  12. 1117 try:
  13. 1118 result = self.application(environ, start_response)
  14. 1119 try:
  15. 1120 for data in result:
  16. result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <__main__.Abe instance>, environ = {'DOCUMENT_ROOT': '/etc/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,he-IL;q=0.6,he;q=0.4', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'blockexplorer.sytes.net', 'HTTP_REFERER': 'http://blockexplorer.sytes.net/chain/Namecoin/q', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/...TML, like Gecko) Chrome/14.0.835.187 Safari/535.1', ...}, start_response = <function start_response>
  17. /usr/local/lib/python2.6/dist-packages/Abe/abe.py in __call__(abe=<__main__.Abe instance>, env={'DOCUMENT_ROOT': '/etc/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,he-IL;q=0.6,he;q=0.4', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'blockexplorer.sytes.net', 'HTTP_REFERER': 'http://blockexplorer.sytes.net/chain/Namecoin/q', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/...TML, like Gecko) Chrome/14.0.835.187 Safari/535.1', ...}, start_response=<function start_response>)
  18. 219 abe.store.catch_up()
  19. 220
  20. 221 handler(page)
  21. 222 except PageNotFound:
  22. 223 status = '404 Not Found'
  23. handler = <bound method Abe.handle_chain of <__main__.Abe instance>>, page = {'body': [], 'content_type': 'text/html', 'dotdot': '../../../', 'env': {'DOCUMENT_ROOT': '/etc/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,he-IL;q=0.6,he;q=0.4', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'blockexplorer.sytes.net', 'HTTP_REFERER': 'http://blockexplorer.sytes.net/chain/Namecoin/q', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/...TML, like Gecko) Chrome/14.0.835.187 Safari/535.1', ...}, 'params': {}, 'start_response': <function start_response>, 'template': '\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 St...ONATIONS_NMC)s">NMC</a>\n </p>\n</body>\n</html>\n', 'title': ['Abe', ' ', '0.7pre']}
  24. /usr/local/lib/python2.6/dist-packages/Abe/abe.py in handle_chain(abe=<__main__.Abe instance>, page={'body': [], 'content_type': 'text/html', 'dotdot': '../../../', 'env': {'DOCUMENT_ROOT': '/etc/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,he-IL;q=0.6,he;q=0.4', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'blockexplorer.sytes.net', 'HTTP_REFERER': 'http://blockexplorer.sytes.net/chain/Namecoin/q', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/...TML, like Gecko) Chrome/14.0.835.187 Safari/535.1', ...}, 'params': {}, 'start_response': <function start_response>, 'template': '\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 St...ONATIONS_NMC)s">NMC</a>\n </p>\n</body>\n</html>\n', 'title': ['Abe', ' ', '0.7pre']})
  25. 362 raise Redirect()
  26. 363 if cmd == 'q':
  27. 364 return abe.handle_q(page, chain=chain)
  28. 365 if cmd is not None:
  29. 366 raise PageNotFound()
  30. abe = <__main__.Abe instance>, abe.handle_q = <bound method Abe.handle_q of <__main__.Abe instance>>, page = {'body': [], 'content_type': 'text/html', 'dotdot': '../../../', 'env': {'DOCUMENT_ROOT': '/etc/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,he-IL;q=0.6,he;q=0.4', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'blockexplorer.sytes.net', 'HTTP_REFERER': 'http://blockexplorer.sytes.net/chain/Namecoin/q', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/...TML, like Gecko) Chrome/14.0.835.187 Safari/535.1', ...}, 'params': {}, 'start_response': <function start_response>, 'template': '\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 St...ONATIONS_NMC)s">NMC</a>\n </p>\n</body>\n</html>\n', 'title': ['Abe', ' ', '0.7pre']}, chain = {'address_version': '4', 'code3': 'NMC', 'id': Decimal('3'), 'last_block_id': Decimal('480469'), 'name': 'Namecoin'}
  31. /usr/local/lib/python2.6/dist-packages/Abe/abe.py in handle_q(abe=<__main__.Abe instance>, page={'body': [], 'content_type': 'text/html', 'dotdot': '../../../', 'env': {'DOCUMENT_ROOT': '/etc/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,he-IL;q=0.6,he;q=0.4', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'blockexplorer.sytes.net', 'HTTP_REFERER': 'http://blockexplorer.sytes.net/chain/Namecoin/q', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/...TML, like Gecko) Chrome/14.0.835.187 Safari/535.1', ...}, 'params': {}, 'start_response': <function start_response>, 'template': '\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 St...ONATIONS_NMC)s">NMC</a>\n </p>\n</body>\n</html>\n', 'title': ['Abe', ' ', '0.7pre']}, chain={'address_version': '4', 'code3': 'NMC', 'id': Decimal('3'), 'last_block_id': Decimal('480469'), 'name': 'Namecoin'})
  32. 1293 raise PageNotFound()
  33. 1294
  34. 1295 abe.do_raw(page, func(page, chain))
  35. 1296
  36. 1297 def q(abe, page):
  37. abe = <__main__.Abe instance>, abe.do_raw = <bound method Abe.do_raw of <__main__.Abe instance>>, page = {'body': [], 'content_type': 'text/html', 'dotdot': '../../../', 'env': {'DOCUMENT_ROOT': '/etc/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,he-IL;q=0.6,he;q=0.4', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'blockexplorer.sytes.net', 'HTTP_REFERER': 'http://blockexplorer.sytes.net/chain/Namecoin/q', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/...TML, like Gecko) Chrome/14.0.835.187 Safari/535.1', ...}, 'params': {}, 'start_response': <function start_response>, 'template': '\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 St...ONATIONS_NMC)s">NMC</a>\n </p>\n</body>\n</html>\n', 'title': ['Abe', ' ', '0.7pre']}, func = <bound method Abe.q_getblockcount of <__main__.Abe instance>>, chain = {'address_version': '4', 'code3': 'NMC', 'id': Decimal('3'), 'last_block_id': Decimal('480469'), 'name': 'Namecoin'}
  38. /usr/local/lib/python2.6/dist-packages/Abe/abe.py in q_getblockcount(abe=<__main__.Abe instance>, page={'body': [], 'content_type': 'text/html', 'dotdot': '../../../', 'env': {'DOCUMENT_ROOT': '/etc/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,he-IL;q=0.6,he;q=0.4', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'blockexplorer.sytes.net', 'HTTP_REFERER': 'http://blockexplorer.sytes.net/chain/Namecoin/q', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/...TML, like Gecko) Chrome/14.0.835.187 Safari/535.1', ...}, 'params': {}, 'start_response': <function start_response>, 'template': '\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 St...ONATIONS_NMC)s">NMC</a>\n </p>\n</body>\n</html>\n', 'title': ['Abe', ' ', '0.7pre']}, chain={'address_version': '4', 'code3': 'NMC', 'id': Decimal('3'), 'last_block_id': Decimal('480469'), 'name': 'Namecoin'})
  39. 1318 return 'Shows the greatest block height in CHAIN.\n' \
  40. 1319 '/chain/CHAIN/q/getblockcount\n'
  41. 1320 return abe.get_max_block_height(chain)
  42. 1321
  43. 1322 def q_translate_address(abe, page, chain):
  44. abe = <__main__.Abe instance>, abe.get_max_block_height = <bound method Abe.get_max_block_height of <__main__.Abe instance>>, chain = {'address_version': '4', 'code3': 'NMC', 'id': Decimal('3'), 'last_block_id': Decimal('480469'), 'name': 'Namecoin'}
  45. /usr/local/lib/python2.6/dist-packages/Abe/abe.py in get_max_block_height(abe=<__main__.Abe instance>, chain={'address_version': '4', 'code3': 'NMC', 'id': Decimal('3'), 'last_block_id': Decimal('480469'), 'name': 'Namecoin'})
  46. 1311 # "getblockcount" traditionally returns max(block_height),
  47. 1312 # which is one less than the actual block count.
  48. 1313 return abe.store.get_block_number(chain['id'])
  49. 1314
  50. 1315 def q_getblockcount(abe, page, chain):
  51. abe = <__main__.Abe instance>, abe.store = <Abe.DataStore.DataStore object>, abe.store.get_block_number undefined, chain = {'address_version': '4', 'code3': 'NMC', 'id': Decimal('3'), 'last_block_id': Decimal('480469'), 'name': 'Namecoin'}
  52. <type 'exceptions.AttributeError'>: 'DataStore' object has no attribute 'get_block_number'
  53. args = ("'DataStore' object has no attribute 'get_block_number'",)
  54. message = "'DataStore' object has no attribute 'get_block_number'"
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement