I'm not sure if this is the right place to post, but I'm having a problem installing Bloodhound 0.7 on Debian Wheezy (with postgres). The install went fine (I followed https://issues.apache.org/bloodhound/wiki/BloodhoundInstall) and I can run

  tracd ./bloodhound/environments/main --port=8000

and browse the bloodhound wiki, etc. But when I try to go to the login page, I get:

UndefinedError: "_dgettext" not defined

The page reports:

==== How to Reproduce ====

While doing a GET operation on `/login`, Trac issued an internal error.


I was able to 'fix' this problem by editing apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/bhtheme/templates/bh_login.html and removing the reference to the dgettext to the part goes from:

   value="${dgettext('acct_mgr', 'Login')}"
to
   value="Login"

but I'm thinking this reflects that something is wrong with my install or setup. Also, when I do this edit, I get the same type of error on the password reset page and I'm not sure how many pages have this 'problem' / what else is broken on my install (Also, with this 'fix' I get invalid username or password when trying to login as admin )


Looking forwarding to playing with Bloodhound. Thanks for the help in advance.

Ben


P.S. Below is the python traceback:


{{{
Traceback (most recent call last):
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/trac/web/main.py", line 477, in _dispatch_request
    dispatcher.dispatch(req)
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/trac/web/main.py", line 233, in dispatch
    content_type)
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/trac/web/chrome.py", line 1019, in render_template
    encoding='utf-8')
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/core.py", line 183, in render
    return encode(generator, method=method, encoding=encoding, out=out)
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/output.py", line 58, in encode
    for chunk in iterator:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/output.py", line 350, in __call__
    for kind, data, pos in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/output.py", line 829, in __call__
    for kind, data, pos in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/output.py", line 669, in __call__
    for kind, data, pos in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/output.py", line 774, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/output.py", line 594, in __call__
    for ev in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/trac/web/chrome.py", line 1156, in _strip_accesskeys
    for kind, data, pos in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/trac/web/chrome.py", line 1145, in _generate
    for kind, data, pos in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 686, in _unmark
    for mark, event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 954, in __call__
    for mark, (kind, data, pos) in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 714, in __call__
    for mark, event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 779, in __call__
    for mark, event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 954, in __call__
    for mark, (kind, data, pos) in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 714, in __call__
    for mark, event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 779, in __call__
    for mark, event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 1175, in __call__
    for mark, (kind, data, pos) in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 714, in __call__
    for mark, event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 779, in __call__
    for mark, event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 726, in __call__
    mark, subevent = next()
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 682, in _mark
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/base.py", line 617, in _include
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/markup.py", line 378, in _match
    ctxt, start=idx + 1, **vars):
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/markup.py", line 378, in _match
    ctxt, start=idx + 1, **vars):
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/markup.py", line 326, in _match
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/base.py", line 557, in _flatten
    for kind, data, pos in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/path.py", line 588, in _generate
    subevent = next()
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/base.py", line 617, in _include
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/markup.py", line 315, in _strip
    event = next()
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/base.py", line 557, in _flatten
    for kind, data, pos in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/path.py", line 588, in _generate
    subevent = next()
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/base.py", line 617, in _include
    for event in stream:
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/markup.py", line 315, in _strip
    event = next()
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/base.py", line 567, in _flatten
    for event in self._flatten(value, ctxt, **vars)
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/base.py", line 577, in _flatten
    result = _eval_expr(data, ctxt, vars)
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/base.py", line 289, in _eval_expr
    retval = expr.evaluate(ctxt)
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/eval.py", line 178, in evaluate
    return eval(self.code, _globals, {'__data__': data})
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/bhtheme/templates/bh_login.html", line 86, in <Expression u"dgettext('acct_mgr', 'Login')">
    <input type="submit" value="${dgettext('acct_mgr', 'Login')}"
File "/data/Bloodhound/apache-bloodhound-0.7/installer/bloodhound/local/lib/python2.7/site-packages/genshi/template/eval.py", line 277, in _die
    raise UndefinedError(self._name, self._owner)
UndefinedError: "_dgettext" not defined
}}}




Reply via email to