{"action":"opened","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1674","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1674/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1674/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1674/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/1674","id":54269884,"number":1674,"title":"TypeError: 'type' object is not iterable ","user":{"login":"loganesch-wf","id":7361942,"avatar_url":"https://avatars.githubusercontent.com/u/7361942?v=3","gravatar_id":"","url":"https://api.github.com/users/loganesch-wf","html_url":"https://github.com/loganesch-wf","followers_url":"https://api.github.com/users/loganesch-wf/followers","following_url":"https://api.github.com/users/loganesch-wf/following{/other_user}","gists_url":"https://api.github.com/users/loganesch-wf/gists{/gist_id}","starred_url":"https://api.github.com/users/loganesch-wf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganesch-wf/subscriptions","organizations_url":"https://api.github.com/users/loganesch-wf/orgs","repos_url":"https://api.github.com/users/loganesch-wf/repos","events_url":"https://api.github.com/users/loganesch-wf/events{/privacy}","received_events_url":"https://api.github.com/users/loganesch-wf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-14T00:43:24Z","updated_at":"2015-01-14T00:43:24Z","closed_at":null,"body":"When trying to build documentation (any type: html, man pages, latexpdf...) sphinx fails while trying to autodoc a subdirectory of a project. I've tried many different approaches to try to narrow down what the problem is but I can't seem to find the culprit. All of the rst files were generated by sphinx-apidoc. \r\n\r\ndirectory A has the following rst file: \r\n```\r\nDirectory A\r\n=======================================\r\n\r\nSubmodules\r\n----------\r\n\r\n.. toctree::\r\n\r\n   A.fileB\r\n   A.fileC\r\n   A.fileD\r\n   A.fileE\r\n\r\nModule contents\r\n---------------\r\n\r\n.. automodule:: A\r\n    :members:\r\n    :undoc-members:\r\n    :show-inheritance:\r\n```\r\n\r\nFailure does not occur if the :members: directive is removed. Failure also does not occur if files B or E are missing, or if the import of file B in E is missing or commented out. \r\n\r\nIt will still fail if fileB and fileE are paired down to simply the following: \r\n\r\nfileB:\r\n```\r\nclass B(object):\r\n    pass\r\n```\r\n\r\nfileE:\r\n```\r\nfrom fileB import B\r\n\r\nclass E(B):\r\n    pass\r\n```\r\n\r\nwith the following stack trace: \r\n\r\n```\r\n# Sphinx version: 1.3b2\r\n# Python version: 2.7.5\r\n# Docutils version: 0.12 release\r\n# Jinja2 version: 2.6\r\n# Last messages:\r\n#   reading sources... [ 37%] foo\r\n#   reading sources... [ 37%] foo\r\n#   reading sources... [ 38%] foo\r\n#   reading sources... [ 38%] foo\r\n#   reading sources... [ 39%] foo\r\n#   reading sources... [ 39%] foo\r\n#   reading sources... [ 40%] foo\r\n#   reading sources... [ 40%] foo\r\n#   reading sources... [ 41%] foo\r\n#   reading sources... [ 41%] problem file\r\n# Loaded extensions:\r\n#   sphinx.ext.autodoc (1.3b2) from Sphinx-1.3b2-py2.7.egg/sphinx/ext/autodoc.pyc\r\n#   sphinx.ext.viewcode (1.3b2) from Sphinx-1.3b2-py2.7.egg/sphinx/ext/viewcode.pyc\r\nTraceback (most recent call last):\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/cmdline.py\", line 246, in main\r\n    app.build(opts.force_all, filenames)\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/application.py\", line 257, in build\r\n    self.builder.build_update()\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/builders/__init__.py\", line 237, in build_update\r\n    'out of date' % len(to_build))\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/builders/__init__.py\", line 251, in build\r\n    self.doctreedir, self.app))\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/environment.py\", line 585, in update\r\n    self._read_serial(docnames, app)\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/environment.py\", line 601, in _read_serial\r\n    self.read_doc(docname, app)\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/environment.py\", line 753, in read_doc\r\n    pub.publish()\r\n  File \"docutils/core.py\", line 217, in publish\r\n    self.settings)\r\n  File \"docutils/readers/__init__.py\", line 72, in read\r\n    self.parse()\r\n  File \"docutils/readers/__init__.py\", line 78, in parse\r\n    self.parser.parse(self.input, document)\r\n  File \"docutils/parsers/rst/__init__.py\", line 172, in parse\r\n    self.statemachine.run(inputlines, document, inliner=self.inliner)\r\n  File \"docutils/parsers/rst/states.py\", line 170, in run\r\n    input_source=document['source'])\r\n  File \"docutils/statemachine.py\", line 239, in run\r\n    context, state, transitions)\r\n  File \"docutils/statemachine.py\", line 460, in check_line\r\n    return method(match, context, next_state)\r\n  File \"docutils/parsers/rst/states.py\", line 2726, in underline\r\n    self.section(title, source, style, lineno - 1, messages)\r\n  File \"docutils/parsers/rst/states.py\", line 327, in section\r\n    self.new_subsection(title, lineno, messages)\r\n  File \"docutils/parsers/rst/states.py\", line 395, in new_subsection\r\n    node=section_node, match_titles=True)\r\n  File \"docutils/parsers/rst/states.py\", line 282, in nested_parse\r\n    node=node, match_titles=match_titles)\r\n  File \"docutils/parsers/rst/states.py\", line 195, in run\r\n    results = StateMachineWS.run(self, input_lines, input_offset)\r\n  File \"docutils/statemachine.py\", line 239, in run\r\n    context, state, transitions)\r\n  File \"docutils/statemachine.py\", line 460, in check_line\r\n    return method(match, context, next_state)\r\n  File \"docutils/parsers/rst/states.py\", line 2726, in underline\r\n    self.section(title, source, style, lineno - 1, messages)\r\n  File \"docutils/parsers/rst/states.py\", line 327, in section\r\n    self.new_subsection(title, lineno, messages)\r\n  File \"docutils/parsers/rst/states.py\", line 395, in new_subsection\r\n    node=section_node, match_titles=True)\r\n  File \"docutils/parsers/rst/states.py\", line 282, in nested_parse\r\n    node=node, match_titles=match_titles)\r\n  File \"docutils/parsers/rst/states.py\", line 195, in run\r\n    results = StateMachineWS.run(self, input_lines, input_offset)\r\n  File \"docutils/statemachine.py\", line 239, in run\r\n    context, state, transitions)\r\n  File \"docutils/statemachine.py\", line 460, in check_line\r\n    return method(match, context, next_state)\r\n  File \"docutils/parsers/rst/states.py\", line 2299, in explicit_markup\r\n    nodelist, blank_finish = self.explicit_construct(match)\r\n  File \"docutils/parsers/rst/states.py\", line 2311, in explicit_construct\r\n    return method(self, expmatch)\r\n  File \"docutils/parsers/rst/states.py\", line 2054, in directive\r\n    directive_class, match, type_name, option_presets)\r\n  File \"docutils/parsers/rst/states.py\", line 2103, in run_directive\r\n    result = directive_instance.run()\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/ext/autodoc.py\", line 1441, in run\r\n    documenter.generate(more_content=self.content)\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/ext/autodoc.py\", line 816, in generate\r\n    self.document_members(all_members)\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/ext/autodoc.py\", line 699, in document_members\r\n    members_check_module, members = self.get_object_members(want_all)\r\n  File \"Sphinx-1.3b2-py2.7.egg/sphinx/ext/autodoc.py\", line 878, in get_object_members\r\n    for mname in memberlist:\r\nTypeError: 'type' object is not iterable\r\n```\r\n\r\nIs there something wrong in the files that autodoc is trying to read or if their is an issue with autodoc itself? is there some kind of work around I can try? \r\n\r\nThanks!  "}}