Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#27820 - [python-sphinx] Python 3 Sphinx version needs Python 3 docutils

Attached to Project: Community Packages
Opened by Damien Gombault (Desintegr) - Wednesday, 04 January 2012, 12:04 GMT
Last edited by Sébastien Luttringer (seblu) - Thursday, 15 March 2012, 10:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No


Run `make html` in a Sphinx project or `sphinx-build`, you get :

mkdir -p build/html build/doctrees
sphinx-build -b html -d build/doctrees source build/html
Traceback (most recent call last):
File "/usr/bin/sphinx-build", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.2/site-packages/", line 2708, in <module>
File "/usr/lib/python3.2/site-packages/", line 686, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.2/site-packages/", line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: docutils>=0.7
make: *** [html] Erreur 1
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Thursday, 15 March 2012, 10:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-sphinx-1.1.2-3
Comment by tycho garen (tychoish) - Wednesday, 04 January 2012, 20:10 GMT
Confirming this behavior. This breaks Sphinx.
Comment by Jelle van der Waa (jelly) - Saturday, 07 January 2012, 11:17 GMT
Depends On : python-distribute python-jinja python-pygments

should work now
Comment by Damien Gombault (Desintegr) - Wednesday, 18 January 2012, 11:29 GMT
Re-tested with 1.1.2-2.

python2-sphinx works.

python-sphinx does not work because it needs docutils built for Python 3.
Currently, docutils is built for 2.7.

$ pacman -Ql docutils | grep 2.7
docutils /usr/lib/python2.7/
docutils /usr/lib/python2.7/site-packages/
docutils /usr/lib/python2.7/site-packages/docutils-0.8.1-py2.7.egg-info
docutils /usr/lib/python2.7/site-packages/docutils/
docutils /usr/lib/python2.7/site-packages/docutils/
docutils /usr/lib/python2.7/site-packages/docutils/__init__.pyc
docutils /usr/lib/python2.7/site-packages/docutils/__init__.pyo

pacman -Ql docutils | grep 3.2
$ -> nothing
Comment by Nick (clu) - Friday, 20 January 2012, 01:07 GMT
Hilariously enough someone is providing docutils with python 3 support in the AUR:
Comment by Sébastien Luttringer (seblu) - Wednesday, 14 March 2012, 13:47 GMT
can you please test with python-sphinx-1.1.2-3 [testing]
Comment by Damien Gombault (Desintegr) - Thursday, 15 March 2012, 08:08 GMT
I successfully compiled my document with python-sphinx-1.1.2-3 [testing] :

% make html
mkdir -p build/html build/doctrees
sphinx-build -b html -d build/doctrees source build/html
Running Sphinx v1.1.2
loading translations [fr]... done
loading pickled environment... not yet created
building [html]: targets for 731 source files that are out of date