Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sphinx suffers AssertionError and stops #873

Closed
shimizukawa opened this issue Jan 3, 2015 · 1 comment
Closed

sphinx suffers AssertionError and stops #873

shimizukawa opened this issue Jan 3, 2015 · 1 comment
Labels

Comments

@shimizukawa
Copy link
Member

Exception occurred:
File "/usr/local/lib/python2.7/dist-packages/docutils/nodes.py", line 692, in replace_self
'Losing "%s" attribute: %s' % (att, self[att])
AssertionError: Losing "ids" attribute: ['nat-ref']
The full traceback has been saved in /tmp/sphinx-err-uq1LjW.log, if you want to report the issue to the developers.

*And this is the mentioned file:
*

# Sphinx version: 1.1.2
# Python version: 2.7.2+
# Docutils version: 0.8.1 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1.2-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.2-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.2-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.2-py2.7.egg/sphinx/builders/__init__.py", line 252, in build
    self.write(docnames, list(updated_docnames), method)
  File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1.2-py2.7.egg/sphinx/builders/__init__.py", line 291, in write
    doctree = self.env.get_and_resolve_doctree(docname, self)
  File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1.2-py2.7.egg/sphinx/environment.py", line 1228, in get_and_resolve_doctree
    self.resolve_references(doctree, docname, builder)
  File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1.2-py2.7.egg/sphinx/environment.py", line 1472, in resolve_references
    self.process_only_nodes(doctree, builder, fromdocname)
  File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1.2-py2.7.egg/sphinx/environment.py", line 1510, in process_only_nodes
    node.replace_self(node.children)
  File "/usr/local/lib/python2.7/dist-packages/docutils/nodes.py", line 692, in replace_self
    'Losing "%s" attribute: %s' % (att, self[att])
AssertionError: Losing "ids" attribute: ['nat-ref']

@shimizukawa
Copy link
Member Author

From Georg Brandl on 2012-03-10 18:36:36+00:00

Fixes #873: do not raise assertion errors on empty "only" directives.

→ <<cset 95f0155>>

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant