[Python-apps-team] Bug#551108: trac: Upgrading Lenny Trac (0.11.1-2.1) to Testing (0.11.5-4) breaks ticket views (no admin_href)

Zed Pobre zed at debian.org
Thu Oct 15 18:16:59 UTC 2009


Package: trac
Version: 0.11.5-4
Severity: important

The system is using Postgresql for the database.  When attempting to
view any ticket or create a new ticket I get the following (and adding
an entry for admin_trac_url in the project trac.ini does not seem to
help):

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/api.py", line 339, in send_error
    self.perm.require('TRAC_ADMIN')
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 715, in render_template
    if content_type is None:
  File "/usr/lib/pymodules/python2.5/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/usr/lib/pymodules/python2.5/genshi/output.py", line 60, in encode
    return _encode(u''.join(list(iterator)))
  File "/usr/lib/pymodules/python2.5/genshi/output.py", line 311, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/pymodules/python2.5/genshi/output.py", line 753, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/pymodules/python2.5/genshi/output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/pymodules/python2.5/genshi/output.py", line 698, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "/usr/lib/pymodules/python2.5/genshi/output.py", line 532, in __call__
    for ev in stream:
  File "/usr/lib/pymodules/python2.5/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 767, in _strip_accesskeys
    _invalid_control_chars)
  File "/usr/lib/pymodules/python2.5/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 756, in _generate
    req.chrome['links'] = {}
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/template/markup.py", line 298, in _match
    ctxt, start=idx + 1, **vars):
  File "/usr/lib/pymodules/python2.5/genshi/template/markup.py", line 298, in _match
    ctxt, start=idx + 1, **vars):
  File "/usr/lib/pymodules/python2.5/genshi/template/markup.py", line 245, in _match
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 533, in _eval
    for event in substream:
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/template/markup.py", line 234, in _strip
    event = stream.next()
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 533, in _eval
    for event in substream:
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/template/markup.py", line 234, in _strip
    event = stream.next()
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 510, in _eval
    **vars):
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 520, in _eval
    result = _eval_expr(data, ctxt, **vars)
  File "/usr/lib/pymodules/python2.5/genshi/template/base.py", line 286, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/usr/lib/pymodules/python2.5/genshi/template/eval.py", line 180, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "/usr/lib/python2.5/site-packages/trac/templates/error.html", line 119, in <Expression u'project.admin_href.newticket()'>
    <form class="newticket" method="get" action="${project.admin_href.newticket()}#">
  File "/usr/lib/pymodules/python2.5/genshi/template/eval.py", line 313, in lookup_attr
    val = getattr(obj, key)
  File "/usr/lib/pymodules/python2.5/genshi/template/eval.py", line 279, in _die
    raise UndefinedError(self._name, self._owner)
UndefinedError: {'url': u'https://xxxx.xxxx.xxxx.gov/trac', 'admin': u'', 'name': u'Baselibs', 'descr': u'Baselibs'} has no member named "admin_href"


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (350, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages trac depends on:
ii  python                        2.5.2-3    An interactive high-level object-o
ii  python-central                0.6.11     register and build utility for Pyt
ii  python-genshi                 0.5.1-1    Python XML-based template engine
ii  python-mysqldb                1.2.2-7    A Python interface to MySQL
ii  python-psycopg2               2.0.7-4    Python module for PostgreSQL
ii  python-pysqlite2              2.4.1-1    Python interface to SQLite 3
ii  python-setuptools             0.6c8-4    Python Distutils Enhancements

Versions of packages trac recommends:
ii  apache2                  2.2.9-10+lenny4 Apache HTTP Server metapackage
ii  apache2-mpm-prefork [htt 2.2.9-10+lenny4 Apache HTTP Server - traditional n
ii  libjs-jquery             1.2.6-2         JavaScript library for dynamic web
ii  python-pygments          0.10-1          syntax highlighting package writte
ii  python-subversion        1.5.1dfsg1-4    Python bindings for Subversion
ii  python-tz                2008c-2         Python version of the Olson timezo

Versions of packages trac suggests:
ii  libapache2-mod-pytho 3.3.1-7             Python-embedding module for Apache
ii  libapache2-mod-wsgi  2.5-1~lenny1        Python WSGI adapter module for Apa
pn  python-docutils      <none>              (no description available)
ii  python-textile       2.10-3.1.2          Python parser for the Textile mark
pn  trac-accountmanager  <none>              (no description available)
pn  trac-bzr             <none>              (no description available)
pn  trac-email2trac      <none>              (no description available)
ii  trac-git             0.0.20080710-3      Git version control backend for Tr
ii  trac-mercurial       0.11.0.7+svnr8365-1 Mercurial version control backend
ii  trac-spamfilter      0.2.1+svn6871-1     Spam-prevention plugin for Trac

-- no debconf information





More information about the Python-apps-team mailing list