[SciPy-Dev] Building the docs: need "plot_directive" extension

Warren Weckesser warren.weckesser at enthought.com
Sun May 22 12:48:48 EDT 2011


On Sun, May 22, 2011 at 11:42 AM, <josef.pktd at gmail.com> wrote:

> On Sun, May 22, 2011 at 12:21 PM, Warren Weckesser
> <warren.weckesser at enthought.com> wrote:
> >
> >
> > On Sun, May 22, 2011 at 11:12 AM, Warren Weckesser
> > <warren.weckesser at enthought.com> wrote:
> >>
> >> I'm trying to build the HTML docs.  Running 'make html' in the doc/
> >> directory first resulted in:
> >>
> >>     Extension error:
> >>     Could not import extension numpydoc (exception: No module named
> >> numpydoc)
> >>
> >> so I installed the numpydoc package from pypi.  Now I get this:
> >>
> >>     Extension error:
> >>     Could not import extension plot_directive (exception: No module
> named
> >> plot_directive)
> >>
> >> How do I install the 'plot_directive' extension?
> >>
> >
> >
> > I just compared an old svn checkout that I have to the current trunk;
> looks
> > like the directory doc/sphinxext/ has been removed, which is where
> > plot_directory.py lived.  Now to figure out why...
>
> could also be that your sphinx version is too old, but I don't know
> what the current requirement is.
>


I found a thread from last June where Skipper ran into the same problem:

   http://mail.scipy.org/pipermail/scipy-dev/2010-June/014647.html

I also realized that the 'numpydoc' package includes the plot_directive
extension.  I just had to change doc/source/conf.py to refer to the
extensions as 'numpydoc.numpydoc' and 'numpydoc.plot_directive', and the
docs built--with only 4531 warnings!

Warren



>
> Josef
>
> >
> >
> > Warren
> >
> >
> >>
> >> I'm using python 2.7, numpy 1.5.1, matplotlib 1.0.1.
> >>
> >>
> >> Warren
> >>
> >
> >
> > _______________________________________________
> > SciPy-Dev mailing list
> > SciPy-Dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/scipy-dev
> >
> >
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20110522/b64d9269/attachment.html>


More information about the SciPy-Dev mailing list