Due to packaging changes, Genshi no longer works with TurboGears

Bug #226285 reported by James E. Blair
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
genshi (Debian)
Fix Released
Unknown
genshi (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In Hardy, the packaging for Genshi gratuitously removes support for setuptools, which is required for Genshi to work as a plugin for TurboGears.

In the debian package for 0.4.4-2, the following changelog entry appears:

  * Drop useless dependency on python-setuptools, use distutils instead.
    + Add debian/patches/01_no_setuptools.patch.

python-setuptools is not a "useless" dependency. It supplies the entry_points mechanism which enables Genshi to work as a plugin for TurboGears, as well as other frameworks that support the python.templating.engines plugin system.

In fact, the patch itself removes the entry_points information from the setup script.

Please drop the patch from the Ubuntu (and Debian?) packaging for Genshi. That will restore this important functionality.

Changed in genshi:
status: Unknown → Fix Committed
Revision history for this message
James E. Blair (corvus) wrote : TEST CASE

TEST CASE:

~$ sudo apt-get install python-genshi python-turbogears
~$ cp -R /usr/share/doc/python-genshi/examples/turbogears genshitest
~$ cd genshitest/
~/genshitest$ ./start-genshitest.py

Then use a web browser to visit the URL:

  http://localhost:8080/

The bug results in a traceback and the following error message being
displayed in the browser:

  KeyError: 'Template engine genshi is not installed'

After the bug is fixed, a sample page will be displayed, including the
text:

  Using Genshi in TurboGears

Revision history for this message
Lostiger (weida-ma) wrote :

I can confirm this bug on Ubuntu 8.04 desktop.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I built a deb with the fix in it:

http://people.ubuntu.com/~mwh/python-genshi_0.4.4-2ubuntu1.1_all.deb

This is literally the first deb I've ever built so I've probably done all sorts of things wrong but it seems to work for me.

Changed in genshi:
status: Fix Committed → Fix Released
Revision history for this message
Steve Guio (guioking-deactivatedaccount) wrote :

It will be fixed when version 0.4.4-4 of genshi come into intrepid.

Revision history for this message
Steve Guio (guioking-deactivatedaccount) wrote :

The current version in Intrepid now works with TurboGears. Thanks

Changed in genshi:
status: New → Fix Released
Revision history for this message
Claude Paroz (paroz) wrote :

Sorry, but I cannot understand why such a bug is not corrected in an LTS release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.