Source: minieigen
Version: 0.50.3+dfsg1-7
Severity: important
User: [email protected]
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

Attachment: signature.asc
Description: PGP signature

Reply via email to