ikiwiki requires python-docutil

Bug #372752 reported by Malte S. Stretz
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ikiwiki (Debian)
Fix Released
Unknown
ikiwiki (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: ikiwiki

Without python-docutils, creating a new iki will spit out an error in /usr/lib/ikiwiki/plugins/rst but python-docutils are only suggested, not required. Tested with 3.09ubuntu1.1 from bug 368566.

mss@Otherland:~$ ikiwiki -setup /etc/ikiwiki/auto.setup
What will the wiki be named? sixwrt
What revision control system to use? git
What wiki user (or openid) will be admin? mss

Setting up sixwrt ...
Importing /home/mss/sixwrt into git
Initialized empty shared Git repository in /home/mss/sixwrt.git/
Initialized empty Git repository in /home/mss/sixwrt/.git/
[master (root-commit) 85f91bd] initial commit
 1 files changed, 2 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
Counting objects: 3, done.
Unpacking objects: 100% (3/3), done.
Writing objects: 100% (3/3), 240 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To /home/mss/sixwrt.git
 * [new branch] master -> master
Directory /home/mss/sixwrt is now a clone of git repository /home/mss/sixwrt.git
Traceback (most recent call last):
  File "/usr/lib/ikiwiki/plugins/rst", line 18, in <module>
    from docutils.core import publish_parts;
ImportError: No module named docutils.core

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: ikiwiki 3.09ubuntu1.1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ikiwiki
Uname: Linux 2.6.28-11-generic x86_64
UnreportableReason: This is not a genuine Ubuntu package

Revision history for this message
Malte S. Stretz (mss) wrote :
Revision history for this message
Björn (bjoern-kde) wrote :

I can confirm this bug for kubuntu 10.04. After installing package python-docutils the ikiwiki setup succeeded.

Kenyon Ralph (kralph)
Changed in ikiwiki (Ubuntu):
status: New → Confirmed
Revision history for this message
Angel Abad (angelabad) wrote :

Hi! Sorry but could you re-confirm this bug? I tried to reproduce the steps in all Ubuntu supported versions and it works well for me.

Regards,

Changed in ikiwiki (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Björn (bjoern-kde) wrote :

After deinstalling python-docutils I could again reproduce the above behavior on Kubuntu 10.04 (Linux 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linux).

To help debugging I've attached the list of installed packages produced with "dpkg --get-selections". AFAIK you can reproduce this package selection on a test system with "dpkg --set-selections" after a "dpkg --clear-selections". (I'm not really experienced with using dpkg directly so better check the man page.)

Revision history for this message
Angel Abad (angelabad) wrote :

Thanks Björn for the info, I will try it.

Changed in ikiwiki (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Angel Abad (angelabad) wrote :

Sorry Björn but this bug is irreproducible in my computer.

Regards,

Revision history for this message
Malte S. Stretz (mss) wrote :

I don't know why it isn't always reproducible, but from looking at the code it should still happen:

* plugins/rst still depends on docutils

* The directory plugins is iterated in IkiWiki::listplugins()

* IkiWiki::listplugins() is called in IkiWiki::Setup::getsetup() which tries to load all available plugins via IkiWiki::Plugin::external

That's where I stopped looking. Maybe it depends on the local python config if the errors are suppressed or not.

Revision history for this message
Angel Abad (angelabad) wrote :

Fixed in 3.20111106ubuntu upload:

ikiwiki (3.20111106ubuntu1) precise; urgency=low

  * Merge from Debian testing. Remaining changes:
    - Drop wdg-html-validator from Build-Depends field. The xmlns set in the
      generated <html> elements causes /usr/bin/validate to attempt to download
      a file from w3.org. This doesn't work without Internet access.

ikiwiki (3.20111106) unstable; urgency=low

  * searchquery.tmpl: Track escaping change in upstream template.
    Thanks Olly Betts for review.
  * svn: Support subversion 1.7, which does not have .svn in each
    subdirectory.
  * rst: import docutils lazily, to avoid errors during ikiwiki --setup.
    Closes: #637604 (Thanks, smcv)
  * Make the setup automator create YAML formatted files.
  * Fix handling of discussion page creation links to make discussion pages
    in the right place and with the right case. Broken by page case
    preservation feature added in 3.20110707.
 -- Angel Abad <email address hidden> Tue, 29 Nov 2011 21:18:45 +0100

Changed in ikiwiki (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Fix Released
Changed in ikiwiki (Debian):
status: Unknown → Fix Released
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.