Lisandro Damián Nicanor Pérez Meyer wrote:
> Hi! When creating a ikiwiki setup with:
> 
> ikiwiki --setup /etc/ikiwiki/auto-blog.setup
> 
> I got:
> 
> Directory /home/lisandro/blog is now a clone of git repository
> /home/lisandro/blog.git
> Traceback (most recent call last):
>   File "/usr/lib/ikiwiki/plugins/rst", line 39, in <module>
>       from docutils.core import publish_parts;
>       ImportError: No module named docutils.core
>       Failed to load highlight. Configuring anyway.
> 
> Installing python-docutils solved this problem. I think ikiwiki should
> depend (or recommend) python-docutils.

That's not the right fix in this particular case. The rst plugin is 
not enabled by default, so this warning only comes up because all
plugins are loaded in order to generate the ikiwiki setup file, so
that it can list (commented out) all configuration options for all
plugins.

What needs to be done here is find a way to make the rst plugin quiet
when it's initially loaded and docutils is not abailable. Then it should
only fail hard if it actually is used in that situation. Since it's written
in python, this is beyond my expertise to fix.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to