rst2s5 can't find theme files

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

Bug Description

When using rst2s5, I noticed is not finding the theme files anymore, making rst2s5 basically useless (or just a poor HTML writer).

>>> docutils.writers.s5_html.themes_dir_path
'/usr/local/lib/python2.7/dist-packages/docutils/writers/s5_html/themes'

But:

$ dpkg -L docutils-common | grep s5_html.*theme | head -n1
/usr/share/docutils/writers/s5_html/themes

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-docutils 0.8.1-4ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-26.42~precise1-generic 3.5.7.6
Uname: Linux 3.5.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
Date: Thu Mar 14 15:16:47 2013
MarkForUpload: True
PackageArchitecture: all
SourcePackage: python-docutils
UpgradeStatus: Upgraded to precise on 2012-05-24 (294 days ago)

Revision history for this message
luca (llucax) wrote :
Revision history for this message
luca (llucax) wrote :

BTW, a workaround is to just copy the files manually to a "ui" subdirectory, for example:

mkdir ui; cp -r /usr/share/docutils/writers/s5_html/themes/default ui/default

But is not trivial at all to figure this out...

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Thanks for reporting this.

> '/usr/local/lib/python2.7/dist-packages/docutils/writers/s5_html/themes'

The "/usr/local" prefix means that you did your own installation of docutils. This works fine here with the installation from repositories (on 13.04):

>>> import docutils.writers.s5_html
>>> docutils.writers.s5_html.themes_dir_path
'/usr/share/docutils/writers/s5_html/themes'

Can you please check if this bug exists for you with docutils from repositories?

Changed in python-docutils (Ubuntu):
status: New → Invalid
status: Invalid → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-docutils (Ubuntu) because there has been no activity for 60 days.]

Changed in python-docutils (Ubuntu):
status: Incomplete → Expired
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.