[PKG-Openstack-devel] Bug#902590: python-oslo.policy: FTBFS with Sphinx using Python 3 by default
Dmitry Shachnev
mitya57 at debian.org
Thu Jun 28 09:11:50 BST 2018
Source: python-oslo.policy
Version: 1.33.1-3
Severity: important
Dear maintainer,
I am going to switch Sphinx scripts to using Python 3 by default, when both
python-sphinx and python3-sphinx are installed (see #898009).
During a test build of reverse dependencies, your package failed to build:
debian/rules override_dh_sphinxdoc
make[1]: Entering directory '/<<PKGBUILDDIR>>'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
sphinx-build -b html doc/source debian/python-oslo.policy-doc/usr/share/doc/python-oslo.policy-doc/html
Running Sphinx v1.7.5
Extension error:
Could not import extension openstackdocstheme (exception: No module named 'openstackdocstheme')
debian/rules:21: recipe for target 'override_dh_sphinxdoc' failed
make[1]: *** [override_dh_sphinxdoc] Error 2
The reason is that only a Python 2 version of openstackdocstheme exists in
Build-Depends-Indep.
Potential solutions to this would be adding Python 3 build-dependencies, or
using “python2 -m sphinx” explicitly instead of “sphinx-build”.
You can test this locally by running this command before package build:
sudo ln -sf /usr/share/sphinx/scripts/python3/sphinx-build /usr/bin/sphinx-build
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/openstack-devel/attachments/20180628/b9346fe9/attachment.sig>
More information about the Openstack-devel
mailing list