Build failure using Python 3 version of Sphinx 1.1.3

127 views
Skip to first unread message

sam...@gmail.com

unread,
May 8, 2013, 12:35:01 PM5/8/13
to sphin...@googlegroups.com
Hello I'm using Kubuntu Raring. I was trying to build the Cython 0.19 docs, and using python3-sphinx I got the following error traceback -- not sure whether to report this here or at the cython list. There were no errors trying to build using python-sphinx i.e. the Py2 version. Please advise.

# Sphinx version: 1.1.3
# Python version: 3.3.1
# Docutils version: 0.10 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/ext/pngmath.py", line 188, in html_visit_math
    fname, depth = render_math(self, '$'+node['latex']+'$')
  File "/usr/lib/python3/dist-packages/sphinx/ext/pngmath.py", line 134, in render_math
    '[stdout]\n%s' % (stderr, stdout))
sphinx.ext.pngmath.MathExtError: latex exited with error:
[stderr]
b''
[stdout]
b"This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)\n restricted \\write18 enabled.\nentering extended mode\n(./math.tex\nLaTeX2e <2011/06/27>\nBabel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo\naded.\n(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls\nDocument Class: article 2007/10/19 v1.4h Standard LaTeX document class\n(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))\n(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty\n\n! LaTeX Error: File `utf8x.def' not found.\n\nType X to quit or <RETURN> to proceed,\nor enter new name. (Default extension: def)\n\nEnter file name: \n! Emergency stop.\n<read *> \n         \nl.131 \\endinput\n               ^^M\nNo pages of output.\nTranscript written on math.log.\n"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/cmdline.py", line 189, in main
    app.build(force_all, filenames)
  File "/usr/lib/python3/dist-packages/sphinx/application.py", line 204, in build
    self.builder.build_update()
  File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 196, in build_update
    'out of date' % len(to_build))
  File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 252, in build
    self.write(docnames, list(updated_docnames), method)
  File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 292, in write
    self.write_doc(docname, doctree)
  File "/usr/lib/python3/dist-packages/sphinx/builders/html.py", line 419, in write_doc
    self.docwriter.write(doctree, destination)
  File "/usr/lib/python3/dist-packages/docutils/writers/__init__.py", line 80, in write
    self.translate()
  File "/usr/lib/python3/dist-packages/sphinx/writers/html.py", line 38, in translate
    self.document.walkabout(visitor)
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 174, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 174, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 174, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 174, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 166, in walkabout
    visitor.dispatch_visit(self)
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 1627, in dispatch_visit
    return method(node)
  File "/usr/lib/python3/dist-packages/sphinx/ext/pngmath.py", line 190, in html_visit_math
    msg = str(str(exc), 'utf-8', 'replace')
TypeError: decoding str is not supported

sam...@gmail.com

unread,
May 23, 2013, 11:14:24 PM5/23/13
to sphin...@googlegroups.com
Ping, any help on this please? Thanks.

Takayuki Shimizukawa

unread,
May 24, 2013, 6:33:44 AM5/24/13
to sphin...@googlegroups.com
Hi,

I did not know Cython document, but I think you can not use
Sphinx-1.1.3 with Python3.3.1.

* Sphinx-1.1.3 supports Python-2.4 to 3.2.
* Sphinx-1.2b1 supports Python-2.5 to 3.3.

If problems reproduced in above combination, please report to issue
tracker (I think tracker is better than ML).

Best regards,
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa


2013/5/24 <sam...@gmail.com>:
> Ping, any help on this please? Thanks.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sphinx-dev+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Shriramana Sharma

unread,
May 27, 2013, 12:18:08 PM5/27/13
to sphin...@googlegroups.com
On Friday, May 24, 2013 4:03:44 PM UTC+5:30, Takayuki SHIMIZUKAWA wrote:
you can not use Sphinx-1.1.3 with Python3.3.1.

* Sphinx-1.1.3 supports Python-2.4 to 3.2.
* Sphinx-1.2b1 supports Python-2.5 to 3.3.

Thank you for your clarification. Have now reported Ubuntu bug to keep track of this: https://bugs.launchpad.net/ubuntu/+source/sphinx/+bug/1184658

Reply all
Reply to author
Forward
0 new messages