Error while building Python doc

Terry Reedy tjreedy at
Sun Dec 22 21:59:11 CET 2013

On 12/22/2013 1:53 PM, shankha wrote:
> Hi,
> I am trying to build Python documents as listed here
> make -C Doc html
> Error message:
> Checked out revision 89010.
> mkdir -p build/html build/doctrees
> python tools/ -b html -d build/doctrees -D
> latex_paper_size=  . build/html
> Traceback (most recent call last):
>    File "tools/", 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, 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

More information about the Python-list mailing list