Bug#918797: minieigen: FTBFS with Sphinx 1.8: No module named 'sphinx.ext.pngmath'
Dmitry Shachnev
mitya57 at debian.org
Wed Jan 9 13:46:57 GMT 2019
Source: minieigen
Version: 0.50.3+dfsg1-7
Severity: important
User: python-modules-team at lists.alioth.debian.org
Usertags: sphinx1.8
Dear Maintainer,
minieigen fails to build with Sphinx 1.8:
make -C doc html
make[2]: Entering directory '/<<BUILDDIR>>/minieigen-0.50.3+dfsg1/doc'
PYTHONPATH=. sphinx-build -b html -d build/doctrees source build/html
Running Sphinx v1.8.3
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
Extension error:
Could not import extension sphinx.ext.pngmath (exception: No module named 'sphinx.ext.pngmath')
The pngmath extension was deprecated in Sphinx 1.4 and has been removed [1]
in Sphinx 1.8.
It looks like minieigen upstream has updated [2] conf.py to use mathjax
instead of it.
If you want to use mathjax in Debian packaging, then add this line to conf.py:
mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
and make your documentation package depend on libjs-mathjax.
Also you can use imgmath which is another alternative for pngmath.
See [3] for details on math support in Sphinx.
[1]: https://github.com/sphinx-doc/sphinx/pull/4702
[2]: https://github.com/eudoxos/minieigen/commit/103ccad16a6ab1c0
[3]: https://www.sphinx-doc.org/en/1.8/usage/extensions/math.html
--
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/debian-science-maintainers/attachments/20190109/0f100d85/attachment.sig>
More information about the debian-science-maintainers
mailing list