Issue #1231 invalid

docs fail to build when under Python 3

Tshepang Lekhonkhobe
created an issue

Error message:

$ make html
python ../ -b html -d _build/doctrees    . _build/html
Traceback (most recent call last):
  File "../", line 15, in <module>
  File "/home/tshepang/projects/sphinx/sphinx/", line 45, in main
    from sphinx import cmdline
  File "/home/tshepang/projects/sphinx/sphinx/", line 103
    print 'Sphinx (sphinx-build) %s' %  __version__
SyntaxError: invalid syntax
make: *** [html] Error 1

Comments (2)

  1. Takayuki Shimizukawa

    Sphinx raw source code is not support Python3. The source code will be converted for python3 at installation time.

    If you want to build the Sphinx documentation with python3, please install Sphinx and make with installed sphinx-build command as like as:

    $ python install
    $ cd doc
    $ make -e SPHINXBUILD=sphinx-build html
  2. Log in to comment