FS#27928 - [python-sphinx] sphinx-build doesn't work

Attached to Project: Community Packages
Opened by Alexander Hausmann (Butterbrot) - Friday, 13 January 2012, 14:53 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 High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
python-sphinx requires docutils to work properly. But docutils from [extra] is installed with python2.7 and python-sphinx with python3.2.
So sphinx reports that it cannot find docutils>=0.7. Either repackage sphinx using python2 or docutils using python3

Additional info:
* python-sphinx 1.1.2-1
* docutils 0.8.1-1

Steps to reproduce:
Try running sphinx-build without any arguments.
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 Alexander F. Rødseth (xyproto) - Friday, 13 January 2012, 15:12 GMT
Confirmed. When running sphinx-build, I get:

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/pkg_resources.py", line 2708, in <module>
working_set.require(__requires__)
File "/usr/lib/python3.2/site-packages/pkg_resources.py", line 686, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.2/site-packages/pkg_resources.py", line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: docutils>=0.7
Comment by Alexander Hausmann (Butterbrot) - Friday, 13 January 2012, 16:29 GMT
I built docutils using python3 without warnings or errors. (I didn't run the 2to3-tool)
Comment by Jelle van der Waa (jelly) - Saturday, 14 January 2012, 09:55 GMT
Docutils python3 needs to be moved into [community]
Comment by Garrett Smith (gar1t) - Monday, 16 January 2012, 17:09 GMT
As a work around for this, I grabbed the AUR python-docutils package, added provides=('docutils') and installed python-docutils. This removed docutils, which is the Wrong Thing for python2 apps using docutils, but it did get sphinx going again.

(Yet another python2 -> python3 migration headache)

The two packages could coexit were it not for the common files in /usr/bin.
Comment by Sébastien Luttringer (seblu) - Wednesday, 14 March 2012, 13:48 GMT
can you please test with python-sphinx-1.1.2-3 [testing]

Loading...