[Python-modules-team] Bug#559072: python-turbokid: turbogears 1.1 doesn't find kid template engine

Tuukka Tolvanen tuukka.tolvanen at gmail.com
Tue Dec 1 18:32:30 UTC 2009

Package: python-turbokid
Version: 1.0.4-6
Severity: important

After some upgrades, looking at an older turbogears project that uses
kid gives me:

      File "/usr/lib/pymodules/python2.5/genshi/template/loader.py",
line 237, in load
        raise TemplateNotFound(filename, search_path)
    TemplateNotFound: Template
"/home/tt/src/corematic/coreweb/templates/welcome.html" not found

That's to be expected considering the change of default templater from
kid to genshi in tg 1.1 I guess. Adding to my app.cfg

    tg.defaultview = "kid"

gets me to:

      File "/usr/lib/pymodules/python2.5/turbogears/view/base.py",
line 107, in _choose_engine
        "Template engine %s is not installed" % enginename
    KeyError: 'Template engine kid is not installed'

Poking about in /usr/lib/pymodules/python2.5/turbogears/view/base.py

    for entrypoint in pkg_resources.iter_entry_points(
        print "ENTRYPOINT " + entrypoint.name

shows indeed nothing kid-like is getting listed. After some searches
and rummaging around in the egg-infos,

cd /usr/share/pyshared
mv TurboKid-1.0.4.egg-info tk
mkdir TurboKid-1.0.4.egg-info
cd TurboKid-1.0.4.egg-info
mv ../tk PKG-INFO
cat > entry_points.txt <<EOF
    kid = turbokid.kidsupport:KidSupport

fixes this for me -- apparently the tubokid bits aren't getting
registered quite properly?

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-turbokid depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-kid                    0.9.6-1    simple Pythonic template language
ii  python-pkg-resources          0.6.8-1    Package Discovery and Resource Acc
ii  python-support                1.0.4      automated rebuilding support for P

python-turbokid recommends no packages.

python-turbokid suggests no packages.

-- no debconf information

More information about the Python-modules-team mailing list