-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Follow-up for interested readers: we both did something wrong; Erik had
a duplicate ":type param:" in one of his docstrings, and Sphinx was not
tolerant enough to handle that.  The latter is now fixed.

Georg

Am 02.08.2010 07:25, schrieb Erik Tollerud:
> Before posting to the issue tracker, I just want to make sure there
> isn't something I missed that changed between 1.0b2 and 1.0.1 that I
> was supposed to change in my documentation.  When I run sphinx on my
> docs, everything's fine until the writing stage, when I see the
> traceback I've included below.  As far as I can tell, the source of
> the problem is that when trying to resolve references, sphinx for some
> reason visits a particular text node twice, so when it tries to
> replace it a second time, there's nothing to replace because it's
> already been replaced.
> 
> So is this something I did wrong, or a bug?
> 
> Traceback (most recent call
> last):coords
>   File "setup.py", line 92, in <module>
>     cmdclass = cmdclassd
>   File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
>     dist.run_commands()
>   File "/usr/lib/python2.6/distutils/dist.py", line 975, in
> run_commands
>     self.run_command(cmd)
>   File "/usr/lib/python2.6/distutils/dist.py", line 995, in
> run_command
>     cmd_obj.run()
>   File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.1-py2.6.egg/
> sphinx/setup_command.py", line 141, in run
>     app.builder.build_all()
>   File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.1-py2.6.egg/
> sphinx/builders/__init__.py", line 161, in build_all
>     self.build(None, summary='all source files', method='all')
>   File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.1-py2.6.egg/
> sphinx/builders/__init__.py", line 254, in build
>     self.write(docnames, list(updated_docnames), method)
>   File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.1-py2.6.egg/
> sphinx/builders/__init__.py", line 292, in write
>     doctree = self.env.get_and_resolve_doctree(docname, self)
>   File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.1-py2.6.egg/
> sphinx/environment.py", line 1108, in get_and_resolve_doctree
>     self.resolve_references(doctree, docname, builder)
>   File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.1-py2.6.egg/
> sphinx/environment.py", line 1327, in resolve_references
>     node.replace_self(newnode or contnode)
>   File "/usr/local/lib/python2.6/dist-packages/docutils/nodes.py",
> line 693, in replace_self
>     self.parent.replace(self, new)
>   File "/usr/local/lib/python2.6/dist-packages/docutils/nodes.py",
> line 666, in replace
>     index = self.index(old)
>   File "/usr/local/lib/python2.6/dist-packages/docutils/nodes.py",
> line 641, in index
>     return self.children.index(item)
> ValueError: list.index(x): x not in list
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEARECAAYFAkxavC0ACgkQN9GcIYhpnLDhtACfaVjvRRCpyJQS8Eq2PXMbkMdo
fFkAn0BivFt+WnJroRw4CvilZ1L6MIm1
=VjbG
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to