Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1507 on 2010-06-08 by trac user howarn, assigned to unknown.

$ cd doc

$ make html

mkdir -p build

touch build/generate-stamp

mkdir -p build/html build/doctrees

LANG=C sphinx-build -b html -d build/doctrees source build/html

Running Sphinx v1.0b2+

2.0.dev 2.0.0.dev

Exception occurred:

File "/usr/src/RPM/BUILD/python-module-numpy-2.0.0/doc/sphinxext/numpydoc.py", line 137, in get_directive

raise RuntimeError("No directive named '%s' found" % name)

RuntimeError: No directive named 'function' found

The full traceback has been saved in /usr/src/tmp/sphinx-err-m2iNvQ.log, if you want to report the issue to the developers.

Please also report this if it was a user error, so that a better error message can be provided next time.

Either send bugs to the mailing list at http://groups.google.com/group/sphinx-dev/,

or report them in the tracker at http://bitbucket.org/birkenfeld/sphinx/issues/. Thanks!

make: *** [html] Error 1

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1489 on 2010-05-22 by @mforbes, assigned to @pv.

The numpydoc (sphinxext) sphinx extension as of svn version 8426 is broken when used with the latest sphinx tip (2f0924a705b2).

The first hg version of sphinx where this starts failing is 98f9c2d6f51f where domains are introduced. It is not clear to me right now how to fix this.

Using sphinx-quickstart and adding the 'numpydoc' extension (no other modifications to the defaults and including autodoc) gives the following:

$ make html
sphinx-build -b html -d _build/doctrees . _build/html
Making output directory...
Running Sphinx v1.0pre

Exception occurred:
File "/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/numpydoc-0.3.dev-py2.6.egg/numpydoc/numpydoc.py", line 137, in get_directive
raise RuntimeError("No directive named '%s' found" % name)
RuntimeError: No directive named 'function' found
...
make: *** [html] Error 1

Here is the traceback:

# Sphinx version: 1.0pre
# Docutils version: 0.6 release
# Jinja2 version: 2.2.1
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/Sphinx-1.0pre_2f0924a705b2dev_20100521-py2.6.egg/sphinx/cmdline.py", line 172, in main
warningiserror, tags)
File "/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/Sphinx-1.0pre_2f0924a705b2dev_20100521-py2.6.egg/sphinx/application.py", line 114, in __init__
self.setup_extension(extension)
File "/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/Sphinx-1.0pre_2f0924a705b2dev_20100521-py2.6.egg/sphinx/application.py", line 251, in setup_extension
mod.setup(self)
File "/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/numpydoc-0.3.dev-py2.6.egg/numpydoc/numpydoc.py", line 120, in setup
app.add_directive('np-' + name, wrap_mangling_directive(name, objtype))
File "/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/numpydoc-0.3.dev-py2.6.egg/numpydoc/numpydoc.py", line 140, in wrap_mangling_directive
base_directive = get_directive(base_directive_name)
File "/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/numpydoc-0.3.dev-py2.6.egg/numpydoc/numpydoc.py", line 137, in get_directive
raise RuntimeError("No directive named '%s' found" % name)
RuntimeError: No directive named 'function' found