Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62552

Re: Error while building Python doc

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Error while building Python doc
Date 2013-12-22 15:59 -0500
References <CAO_L6qFHy7XTs5s_dY5L3rWAmEPbz5hgMqJBsuoWkdbuXOKmQg@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4509.1387745971.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 12/22/2013 1:53 PM, shankha wrote:
> Hi,
> I am trying to build Python documents as listed here
>
> http://docs.python.org/devguide/documenting.html#building-the-documentation
>
> make -C Doc html
>
> Error message:
> Checked out revision 89010.
> mkdir -p build/html build/doctrees
> python tools/sphinx-build.py -b html -d build/doctrees -D
> latex_paper_size=  . build/html
> Traceback (most recent call last):
>    File "tools/sphinx-build.py", line 27, in <module>
>      from sphinx import main
> ImportError: No module named sphinx
> make: *** [build] Error 1
> make: Leaving directory `Python-git/cpythonL-doc/Doc'
>
> Sphinx is located inside the directory: Doc/tools.

Based on my Windows tree, that should be Doc/tools/sphinx/, along with 
docutils, jinja, and pygments directories. To be a module, sphinx must 
contain __init__.py, along with other files.

> Do I need to change how I import (the path may be).

Did you run "make -C Doc checkout" first? (I do not know what the -C 
does, as I just do "make checkout" and occasionally make update in Doc 
on Windows, which run Doc/make.bat.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Error while building Python doc Terry Reedy <tjreedy@udel.edu> - 2013-12-22 15:59 -0500

csiph-web