docs fail to build when under Python 3

Tshepang Lekhonkhobe avatarTshepang 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 (1)

  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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.