<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1507" rel="nofollow">http://projects.scipy.org/numpy/ticket/1507</a> on 2010-06-08 by trac user howarn, assigned to unknown.</em></p>
<p dir="auto">$ cd doc<br>
$ make html<br>
mkdir -p build<br>
touch build/generate-stamp<br>
mkdir -p build/html build/doctrees<br>
LANG=C sphinx-build -b html -d build/doctrees   source build/html<br>
Running Sphinx v1.0b2+<br>
2.0.dev 2.0.0.dev</p>
<p dir="auto">Exception occurred:<br>
File "/usr/src/RPM/BUILD/python-module-numpy-2.0.0/doc/sphinxext/numpydoc.py", line 137, in get_directive<br>
raise RuntimeError("No directive named '%s' found" % name)<br>
RuntimeError: No directive named 'function' found<br>
The full traceback has been saved in /usr/src/tmp/sphinx-err-m2iNvQ.log, if you want to report the issue to the developers.<br>
Please also report this if it was a user error, so that a better error message can be provided next time.<br>
Either send bugs to the mailing list at <a href="http://groups.google.com/group/sphinx-dev/" rel="nofollow">http://groups.google.com/group/sphinx-dev/</a>,<br>
or report them in the tracker at <a href="http://bitbucket.org/birkenfeld/sphinx/issues/" rel="nofollow">http://bitbucket.org/birkenfeld/sphinx/issues/</a>. Thanks!<br>
make: *** [html] Error 1</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1489" rel="nofollow">http://projects.scipy.org/numpy/ticket/1489</a> on 2010-05-22 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mforbes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mforbes">@mforbes</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>.</em></p>
<p dir="auto">The numpydoc (sphinxext) sphinx extension as of svn version 8426 is broken when used with the latest sphinx tip (2f0924a705b2).</p>
<p dir="auto">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.</p>
<p dir="auto">Using sphinx-quickstart and adding the 'numpydoc' extension (no other modifications to the defaults and including autodoc) gives the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ make html
sphinx-build -b html -d _build/doctrees   . _build/html
Making output directory...
Running Sphinx v1.0pre

Exception occurred:
  File &quot;/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/numpydoc-0.3.dev-py2.6.egg/numpydoc/numpydoc.py&quot;, line 137, in get_directive
    raise RuntimeError(&quot;No directive named '%s' found&quot; % name)
RuntimeError: No directive named 'function' found
... 
make: *** [html] Error 1"><pre class="notranslate"><code class="notranslate">$ 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
</code></pre></div>
<p dir="auto">Here is the traceback:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Sphinx version: 1.0pre
# Docutils version: 0.6 release
# Jinja2 version: 2.2.1
Traceback (most recent call last):
  File &quot;/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/Sphinx-1.0pre_2f0924a705b2dev_20100521-py2.6.egg/sphinx/cmdline.py&quot;, line 172, in main
    warningiserror, tags)
  File &quot;/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/Sphinx-1.0pre_2f0924a705b2dev_20100521-py2.6.egg/sphinx/application.py&quot;, line 114, in __init__
    self.setup_extension(extension)
  File &quot;/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/Sphinx-1.0pre_2f0924a705b2dev_20100521-py2.6.egg/sphinx/application.py&quot;, line 251, in setup_extension
    mod.setup(self)
  File &quot;/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/numpydoc-0.3.dev-py2.6.egg/numpydoc/numpydoc.py&quot;, line 120, in setup
    app.add_directive('np-' + name, wrap_mangling_directive(name, objtype))
  File &quot;/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/numpydoc-0.3.dev-py2.6.egg/numpydoc/numpydoc.py&quot;, line 140, in wrap_mangling_directive
    base_directive = get_directive(base_directive_name)
  File &quot;/Library/Frameworks/Python.framework/Versions/6.0.4/lib/python2.6/site-packages/numpydoc-0.3.dev-py2.6.egg/numpydoc/numpydoc.py&quot;, line 137, in get_directive
    raise RuntimeError(&quot;No directive named '%s' found&quot; % name)
RuntimeError: No directive named 'function' found"><pre class="notranslate"><code class="notranslate"># 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
</code></pre></div>