When I run cactus serve on a site using the restructuredtext template tag, the page fails to rebuild due to the following error:
Building index.html<string>:: (ERROR/3) Cannot embed stylesheet '../env/lib/python2.7/site-packages/docutils/writers/html4css1/html4css1.css': No such file or directory.
*** Error while building[Errno 2] No such file or directory: '../env/lib/python2.7/site-packages/docutils/writers/html4css1/template.txt'
It looks like docutils is using a relative path to embed its stylesheets. The regeneration fails because Cactus changes its working directory using os.chdir() prior to serving pages.
When I run
cactus serve
on a site using therestructuredtext
template tag, the page fails to rebuild due to the following error:It looks like docutils is using a relative path to embed its stylesheets. The regeneration fails because Cactus changes its working directory using
os.chdir()
prior to serving pages.