Issues

Issue #1231 invalid

docs fail to build when under Python 3

Tshepang Lekhonkhobe
created an issue

Error message:

$ make html
python ../sphinx-build.py -b html -d _build/doctrees    . _build/html
Traceback (most recent call last):
  File "../sphinx-build.py", line 15, in <module>
    sys.exit(main(sys.argv))
  File "/home/tshepang/projects/sphinx/sphinx/__init__.py", line 45, in main
    from sphinx import cmdline
  File "/home/tshepang/projects/sphinx/sphinx/cmdline.py", 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 setup.py install
    $ cd doc
    $ make -e SPHINXBUILD=sphinx-build html
    
  2. Log in to comment