[NumPy-Tickets] [NumPy] #1489: numpydoc (sphinxext) broken by latest sphinx source.

NumPy Trac numpy-tickets@scipy....
Fri May 21 23:36:14 CDT 2010


#1489: numpydoc (sphinxext) broken by latest sphinx source.
-----------------------------------------------+----------------------------
 Reporter:  mforbes                            |       Owner:  pv   
     Type:  defect                             |      Status:  new  
 Priority:  normal                             |   Milestone:  2.0.0
Component:  Documentation                      |     Version:       
 Keywords:  numpydoc sphinxext sphinx domains  |  
-----------------------------------------------+----------------------------
 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
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1489>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list