To set the context for others meeting the same issue and following up on an earlier email with Jesse W. to resolve error message "TypeError: _new ()_ takes exactly 3 argument (2 given)" @ line 38 in main.py, per Jesse's suggestions I upgraded dbwrap and downgraded version Genshi to 0.4.4 [ sudo easy_install --record genshi044install Genshi-0.4.4-py2.5.egg
showed version 0.6 being uninstalled - maybe incomplete?)
The error now is
File "/var/lib/python-support/python2.5/genshi/template/eval.py", line 405, in undefined
raise UndefinedError(key, owner=owner)
UndefinedError: "result" not defined
Any suggestions on what to do next and big thanks for the help so far!
Jesse
Full context below:
jesse@jesse-asus1000:~$ sudo python -m powerline.main /etc/powerline.conf[26/May/2010:17:09:31] ENGINE Listening for SIGHUP.
[26/May/2010:17:09:31] ENGINE Listening for SIGTERM.
[26/May/2010:17:09:31] ENGINE Listening for SIGUSR1.
[26/May/2010:17:09:31] ENGINE Bus STARTING
CherryPy Checker:
The Application mounted at '' has an empty config.
[26/May/2010:17:09:31] ENGINE Started monitor thread '_TimeoutMonitor'.
[26/May/2010:17:09:31] ENGINE Started monitor thread 'Autoreloader'.
[26/May/2010:17:09:31] ENGINE Serving on
127.0.0.1:8080
[26/May/2010:17:09:31] ENGINE Bus STARTED
[26/May/2010:17:10:20] HTTP
Request Headers:
HOST: localhost:8080
127.0.0.1 - - [26/May/2010:17:35:01] "GET / HTTP/1.1" 500 4225 "" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"
[26/May/2010:17:35:03] HTTP
Request Headers:
COOKIE: session_id=6d3206ba3bea53eb7aafd127e43eb630cd4cdb9d
HOST: localhost:8080
CACHE-CONTROL: max-age=0
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
USER-AGENT: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
CONNECTION: keep-alive
Remote-Addr: 127.0.0.1
ACCEPT-LANGUAGE: en-us,en;q=0.5
ACCEPT-ENCODING: gzip,deflate
KEEP-ALIVE: 300
[26/May/2010:17:35:03] HTTP Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/usr/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/lib/python2.5/site-packages/powerline-0.2.4-py2.5.egg/powerline/web.py", line 62, in default
return handler_func(**kwargs)
File "/usr/lib/python2.5/site-packages/powerline-0.2.4-py2.5.egg/powerline/web.py", line 133, in wrapper
return loader.load(template).generate(**body).render(method, **render_kwargs)
File "/var/lib/python-support/python2.5/genshi/core.py", line 179, in render
return encode(generator, method=method, encoding=encoding, out=out)
File "/var/lib/python-support/python2.5/genshi/output.py", line 60, in encode
return _encode(u''.join(list(iterator)))
File "/var/lib/python-support/python2.5/genshi/output.py", line 311, in __call__
for kind, data, pos in stream:
File "/var/lib/python-support/python2.5/genshi/output.py", line 592, in __call__
for kind, data, pos in stream:
File "/var/lib/python-support/python2.5/genshi/output.py", line 698, in __call__
for kind, data, pos in chain(stream, [(None, None, None)]):
File "/var/lib/python-support/python2.5/genshi/output.py", line 532, in __call__
for ev in stream:
File "/var/lib/python-support/python2.5/genshi/core.py", line 283, in _ensure
for event in stream:
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 569, in _include
for event in stream:
File "/var/lib/python-support/python2.5/genshi/template/markup.py", line 278, in _match
content = list(content)
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 569, in _include
for event in stream:
File "/var/lib/python-support/python2.5/genshi/template/markup.py", line 235, in _strip
event = stream.next()
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 543, in _exec
for event in stream:
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 496, in _eval
for kind, data, pos in stream:
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 557, in _flatten
**vars)
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 272, in _apply_directives
stream = directives[0](iter(stream), directives[1:], ctxt, **vars)
File "/var/lib/python-support/python2.5/genshi/template/directives.py", line 411, in __call__
value = _eval_expr(self.expr, ctxt, **vars)
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 286, in _eval_expr
retval = expr.evaluate(ctxt)
File "/var/lib/python-support/python2.5/genshi/template/eval.py", line 180, in evaluate
return eval(self.code, _globals, {'__data__': data})
File "/usr/lib/python2.5/site-packages/powerline-0.2.4-py2.5.egg/powerline/templates/index.html", line 16, in <Expression u'result'>
<py:choose test="" py:if="result">
File "/var/lib/python-support/python2.5/genshi/template/eval.py", line 306, in lookup_name
val = cls.undefined(name)
File "/var/lib/python-support/python2.5/genshi/template/eval.py", line 405, in undefined
raise UndefinedError(key, owner=owner)
UndefinedError: "result" not defined
127.0.0.1 - - [26/May/2010:17:35:03] "GET / HTTP/1.1" 500 4225 "" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"
--
Jesse McDonnell