{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5285","repository_url":"https://api.github.com/repos/sphinx-doc/sphinx","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5285/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5285/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5285/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/5285","id":349667185,"node_id":"MDU6SXNzdWUzNDk2NjcxODU=","number":5285,"title":"AttributeError: Values instance has no attribute 'link_base'","user":{"login":"aztrock","id":4043932,"node_id":"MDQ6VXNlcjQwNDM5MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4043932?v=4","gravatar_id":"","url":"https://api.github.com/users/aztrock","html_url":"https://github.com/aztrock","followers_url":"https://api.github.com/users/aztrock/followers","following_url":"https://api.github.com/users/aztrock/following{/other_user}","gists_url":"https://api.github.com/users/aztrock/gists{/gist_id}","starred_url":"https://api.github.com/users/aztrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aztrock/subscriptions","organizations_url":"https://api.github.com/users/aztrock/orgs","repos_url":"https://api.github.com/users/aztrock/repos","events_url":"https://api.github.com/users/aztrock/events{/privacy}","received_events_url":"https://api.github.com/users/aztrock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-10T21:49:44Z","updated_at":"2018-08-13T16:29:39Z","closed_at":null,"author_association":"NONE","body":"Subject: <what happen when you do on which document project>\r\n\r\n<!--\r\n  Important: This is a list of issues for Sphinx, not a forum.\r\n  If you'd like to post a question, please move to sphinx-users group.\r\n  https://groups.google.com/forum/#!forum/sphinx-users\r\n\r\n  Thanks,\r\n-->\r\n\r\n### Problem\r\nTwo automodules in same file\r\n\r\n#### Procedure to reproduce the problem\r\n```\r\nmake html\r\n```\r\n\r\n#### Error logs / results\r\n```\r\n# Sphinx version: 1.7.6\r\n# Python version: 2.7.3 (CPython)\r\n# Docutils version: 0.14 \r\n# Jinja2 version: 2.10\r\n# Last messages:\r\n#   Running Sphinx v1.7.6\r\n#   loading translations [es]...\r\n#   done\r\n#   loading pickled environment...\r\n#   done\r\n#   building [mo]: targets for 0 po files that are out of date\r\n#   building [html]: targets for 1 source files that are out of date\r\n#   updating environment:\r\n#   0 added, 1 changed, 0 removed\r\n#   reading sources... [100%] citoplus/models\r\n# Loaded extensions:\r\n#   sphinx.ext.coverage (1.7.6) from /opt/citoplus/local/lib/python2.7/site-packages/sphinx/ext/coverage.pyc\r\n#   sphinx.ext.napoleon (1.7.6) from /opt/citoplus/local/lib/python2.7/site-packages/sphinx/ext/napoleon/__init__.pyc\r\n#   sphinx.ext.todo (1.7.6) from /opt/citoplus/local/lib/python2.7/site-packages/sphinx/ext/todo.pyc\r\n#   sphinx.ext.autodoc (1.7.6) from /opt/citoplus/local/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.pyc\r\n#   sphinxcontrib_django (unknown version) from /opt/citoplus/local/lib/python2.7/site-packages/sphinxcontrib_django/__init__.pyc\r\n#   alabaster (0.7.11) from /opt/citoplus/local/lib/python2.7/site-packages/alabaster/__init__.pyc\r\n#   celery.contrib.sphinx (unknown version) from /opt/citoplus/local/lib/python2.7/site-packages/celery/contrib/sphinx.pyc\r\nTraceback (most recent call last):\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/cmdline.py\", line 304, in main\r\n    app.build(args.force_all, filenames)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/application.py\", line 331, in build\r\n    self.builder.build_update()\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/builders/__init__.py\", line 342, in build_update\r\n    'out of date' % len(to_build))\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/builders/__init__.py\", line 355, in build\r\n    updated_docnames = set(self.env.update(self.config, self.srcdir, self.doctreedir))\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/environment/__init__.py\", line 565, in update\r\n    self._read_serial(docnames, self.app)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/environment/__init__.py\", line 584, in _read_serial\r\n    self.read_doc(docname, app)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/environment/__init__.py\", line 659, in read_doc\r\n    doctree = read_doc(self.app, self, self.doc2path(docname))\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/io.py\", line 302, in read_doc\r\n    pub.publish()\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/core.py\", line 217, in publish\r\n    self.settings)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/readers/__init__.py\", line 72, in read\r\n    self.parse()\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/readers/__init__.py\", line 78, in parse\r\n    self.parser.parse(self.input, document)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/parsers.py\", line 85, in parse\r\n    self.statemachine.run(inputstring, document, inliner=self.inliner)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 171, in run\r\n    input_source=document['source'])\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 239, in run\r\n    context, state, transitions)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 460, in check_line\r\n    return method(match, context, next_state)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2753, in underline\r\n    self.section(title, source, style, lineno - 1, messages)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 327, in section\r\n    self.new_subsection(title, lineno, messages)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 395, in new_subsection\r\n    node=section_node, match_titles=True)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 282, in nested_parse\r\n    node=node, match_titles=match_titles)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 196, in run\r\n    results = StateMachineWS.run(self, input_lines, input_offset)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 239, in run\r\n    context, state, transitions)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 460, in check_line\r\n    return method(match, context, next_state)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2753, in underline\r\n    self.section(title, source, style, lineno - 1, messages)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 327, in section\r\n    self.new_subsection(title, lineno, messages)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 395, in new_subsection\r\n    node=section_node, match_titles=True)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 282, in nested_parse\r\n    node=node, match_titles=match_titles)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 196, in run\r\n    results = StateMachineWS.run(self, input_lines, input_offset)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 239, in run\r\n    context, state, transitions)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 460, in check_line\r\n    return method(match, context, next_state)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2326, in explicit_markup\r\n    nodelist, blank_finish = self.explicit_construct(match)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2338, in explicit_construct\r\n    return method(self, expmatch)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2081, in directive\r\n    directive_class, match, type_name, option_presets)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2130, in run_directive\r\n    result = directive_instance.run()\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/ext/autodoc/directive.py\", line 144, in run\r\n    result = parse_generated_content(self.state, params.result, documenter)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/ext/autodoc/directive.py\", line 85, in parse_generated_content\r\n    nested_parse_with_titles(state, content, node)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/util/nodes.py\", line 219, in nested_parse_with_titles\r\n    return state.nested_parse(content, 0, node, match_titles=1)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 282, in nested_parse\r\n    node=node, match_titles=match_titles)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 196, in run\r\n    results = StateMachineWS.run(self, input_lines, input_offset)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 239, in run\r\n    context, state, transitions)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 460, in check_line\r\n    return method(match, context, next_state)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2328, in explicit_markup\r\n    self.explicit_list(blank_finish)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2358, in explicit_list\r\n    match_titles=self.state_machine.match_titles)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 319, in nested_list_parse\r\n    node=node, match_titles=match_titles)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 196, in run\r\n    results = StateMachineWS.run(self, input_lines, input_offset)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 239, in run\r\n    context, state, transitions)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 460, in check_line\r\n    return method(match, context, next_state)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2631, in explicit_markup\r\n    nodelist, blank_finish = self.explicit_construct(match)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2338, in explicit_construct\r\n    return method(self, expmatch)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2081, in directive\r\n    directive_class, match, type_name, option_presets)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2130, in run_directive\r\n    result = directive_instance.run()\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/domains/__init__.py\", line 237, in run\r\n    return BaseDirective.run(self)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/sphinx/directives/__init__.py\", line 179, in run\r\n    self.state.nested_parse(self.content, self.content_offset, contentnode)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 282, in nested_parse\r\n    node=node, match_titles=match_titles)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 196, in run\r\n    results = StateMachineWS.run(self, input_lines, input_offset)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 239, in run\r\n    context, state, transitions)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/statemachine.py\", line 460, in check_line\r\n    return method(match, context, next_state)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 2767, in text\r\n    paragraph, literalnext = self.paragraph(lines, startline)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 418, in paragraph\r\n    textnodes, messages = self.inline_text(text, lineno)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 427, in inline_text\r\n    return self.inliner.parse(text, lineno, self.memo, self.parent)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 645, in parse\r\n    lineno)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 787, in interpreted_or_phrase_ref\r\n    lineno)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py\", line 871, in interpreted\r\n    nodes, messages2 = role_fn(role, rawsource, text, lineno, self)\r\n  File \"/opt/citoplus/local/lib/python2.7/site-packages/django/contrib/admindocs/utils.py\", line 126, in _role\r\n    inliner.document.settings.link_base,\r\nAttributeError: Values instance has no attribute 'link_base'\r\n\r\n```\r\n\r\n#### Expected results\r\ntwo automodule. same file\r\n\r\n```\r\nModels                                                                          \r\n======                                                                          \r\n                                                                                 \r\nHome                                                                            \r\n____                                                                            \r\n.. automodule:: app.home.models                                                                                                                            \r\n    :members:                                                                   \r\n                                                                                \r\nUsuarios                                                                        \r\n________                                                                        \r\n.. automodule:: app.usuarios.models                                             \r\n    :members:   \r\n```\r\n\r\n\r\n\r\n### Environment info\r\n- OS: Linux debian 7\r\n- Python version: 2.7\r\n- Sphinx version: 1.7.6\r\n"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/comments/412579672","html_url":"https://github.com/sphinx-doc/sphinx/issues/5285#issuecomment-412579672","issue_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5285","id":412579672,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjU3OTY3Mg==","user":{"login":"tk0miya","id":748828,"node_id":"MDQ6VXNlcjc0ODgyOA==","avatar_url":"https://avatars2.githubusercontent.com/u/748828?v=4","gravatar_id":"","url":"https://api.github.com/users/tk0miya","html_url":"https://github.com/tk0miya","followers_url":"https://api.github.com/users/tk0miya/followers","following_url":"https://api.github.com/users/tk0miya/following{/other_user}","gists_url":"https://api.github.com/users/tk0miya/gists{/gist_id}","starred_url":"https://api.github.com/users/tk0miya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tk0miya/subscriptions","organizations_url":"https://api.github.com/users/tk0miya/orgs","repos_url":"https://api.github.com/users/tk0miya/repos","events_url":"https://api.github.com/users/tk0miya/events{/privacy}","received_events_url":"https://api.github.com/users/tk0miya/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T16:29:39Z","updated_at":"2018-08-13T16:29:39Z","author_association":"MEMBER","body":"It seems `link_base` attribute is not a standard attribute of docutils. It is not also used in Sphinx. I guess it is an original attribute of django's extension.\r\nSo I think this is not a bug of Sphinx."}}
{"actor":{"display_login":"tk0miya"}}