rst2latex do not work anymore

Bug #378224 reported by juhtolv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-docutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-docutils

In Ubuntu 8.10 (Intrepid Ibex) python-docutils worked just fine, but after upgrading to 9.04 (Jaunty Jackalope) it does this:

% rst2latex --language=fi --report=5 --strip-comments --stylesheet=RST --graphicx-option=pdftex --font-encoding=LUC,T1 RW-numerointi_ja_kierratys.txt RW-numerointi_ja_kierratys.tex

Traceback (most recent call last):
  File "/usr/bin/X11/rst2latex", line 17, in <module>
    from docutils.core import publish_cmdline, default_description
ImportError: No module named docutils.core

% rst2html --language=en --report=5 --toc-entry-backlinks --footnote-backlinks --section-numbering --strip-comments RW-numerointi_ja_kierratys.txt RW-numerointi_ja_kierratys.tex
Traceback (most recent call last):
  File "/usr/bin/X11/rst2html", line 17, in <module>
    from docutils.core import publish_cmdline, default_description
ImportError: No module named docutils.core

% lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

% apt-cache policy python-docutils
python-docutils:
  Asennettu: 0.5-2ubuntu1
  Ehdokas: 0.5-2ubuntu1
  Versiotaulukko:
 *** 0.5-2ubuntu1 0
        100 /var/lib/dpkg/status

Revision history for this message
juhtolv (juhtolv) wrote :

Maybe this helps, when debugging this:

If I give this command:

locate docutils | sort | less

It shows gazillion lines that say: ”/usr/lib/python2.5/site-packages/docutils"

But if I gives this command (in zsh):

% whence -savc python

It says:/usr/bin/X11/python -> /usr/bin/python2.6
/usr/X11R6/bin/python -> /usr/bin/python2.6
/usr/bin/python -> /usr/bin/python2.6

Maybe it should depend on python2.5 instead of plain python?

Revision history for this message
juhtolv (juhtolv) wrote :

Aha! I edited shebang-lines of rst2latex and rst2html so that they point directly to /usr/bin/python2.5 and now problems are away.

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.