Hello, I was experimenting to add a widgetbroser (from toscawidgets.org) to a sample python code. I enabled the extension according to the guidelines in [1] and tried several variants of the following sphinx code (different indentation, commenting some of the directives, even using only widgetbrowser::, but with no luck.
.. automodule:: sample.foo .. autoclass:: sample.foo.MyClass .. widgetbrowser:: sample.foo.MyClass they all end with the same error message, complaining for self.children.remove(item). Can someone shed some light? Note that I have also upgraded docutils from 0.7 to 0.8.1 and the sys.path is correct, since the sphinx code compiles perfectly when a omit the widgetbrowser:: directive. Thank you in advance. Stefano David [1] http://toscawidgets.org/documentation/WidgetBrowser/embed.html#enable-the-extension *** full traceback*** # Sphinx version: 1.1 # Python version: 2.7.1+ # Docutils version: 0.8.1 release # Jinja2 version: 2.5.5 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1-py2.7.egg/ sphinx/cmdline.py", line 189, in main app.build(force_all, filenames) File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1-py2.7.egg/ sphinx/application.py", line 204, in build self.builder.build_update() File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1-py2.7.egg/ sphinx/builders/__init__.py", line 196, in build_update 'out of date' % len(to_build)) File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1-py2.7.egg/ sphinx/builders/__init__.py", line 216, in build purple, length): File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1-py2.7.egg/ sphinx/builders/__init__.py", line 120, in status_iterator for item in iterable: File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1-py2.7.egg/ sphinx/environment.py", line 613, in update_generator self.read_doc(docname, app=app) File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1-py2.7.egg/ sphinx/environment.py", line 767, in read_doc self.filter_messages(doctree) File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1-py2.7.egg/ sphinx/environment.py", line 877, in filter_messages node.parent.remove(node) File "/usr/local/lib/python2.7/dist-packages/docutils-0.8.1- py2.7.egg/docutils/nodes.py", line 638, in remove self.children.remove(item) ValueError: list.remove(x): x not in list *** end traceback -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
