<type 'exceptions.UnboundLocalError'> | Python 2.7.5+: /usr/bin/python Sat Jun 7 03:27:42 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.
/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>) |
556 """Runs the handler, flushes the streams, and ends the request.""" |
557 try: |
=> 558 protocolStatus, appStatus = self.server.handler(self) |
559 except: |
560 traceback.print_exc(file=self.stderr) |
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>> |
/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>) |
1116 try: |
1117 try: |
=> 1118 result = self.application(environ, start_response) |
1119 try: |
1120 for data in result: |
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <__main__.Abe instance>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/lib/cgi-bin/abe.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/var/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_CONNECTION': 'close', 'HTTP_FROM': '[email protected]', 'HTTP_HOST': 'earthchain.info', 'HTTP_USER_AGENT': 'ia_archiver (+http://www.alexa.com/site/help/webmasters; [email protected])', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games', ...}, start_response = <function start_response> |
/usr/local/lib/python2.7/dist-packages/Abe/abe.py in __call__(abe=<__main__.Abe instance>, env={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/lib/cgi-bin/abe.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/var/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_CONNECTION': 'close', 'HTTP_FROM': '[email protected]', 'HTTP_HOST': 'earthchain.info', 'HTTP_USER_AGENT': 'ia_archiver (+http://www.alexa.com/site/help/webmasters; [email protected])', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games', ...}, start_response=<function start_response>) |
292 ('Cache-Control', 'max-age=30')]) |
293 |
=> 294 tvars['title'] = flatten(page['title']) |
295 tvars['h1'] = flatten(page.get('h1') or page['title']) |
296 tvars['body'] = flatten(page['body']) |
tvars undefined, global flatten = <function flatten>, page = {'body': ['<p class="error">Sorry, ', '/EarthCoin', '/q/getblockcount', ' does not exist on this server.</p>'], 'chain': None, 'content_type': 'text/html; charset=utf-8', 'dotdot': '../../', 'env': {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/lib/cgi-bin/abe.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/var/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_CONNECTION': 'close', 'HTTP_FROM': '[email protected]', 'HTTP_HOST': 'earthchain.info', 'HTTP_USER_AGENT': 'ia_archiver (+http://www.alexa.com/site/help/webmasters; [email protected])', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games', ...}, 'params': {}, 'start_response': <function start_response>, 'template': '\n<!DOCTYPE html>\n<html lang="en">\n<head>\n <li...n>\n %(download)s\n </p>\n</body>\n</html>\n', 'title': ['Abe', ' ', '0.8pre']} |
<type 'exceptions.UnboundLocalError'>: local variable 'tvars' referenced before assignment
args =
("local variable 'tvars' referenced before assignment",)
message =
"local variable 'tvars' referenced before assignment"