{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/237","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/237/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/237/events","html_url":"https://github.com/sphinx-doc/testing2/issues/237","id":53258877,"number":237,"title":"Autodoc problem with TypeError","user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/autodoc","name":"autodoc","color":"FFFFFF"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-02T15:41:47Z","updated_at":"2015-01-02T15:41:52Z","closed_at":"2015-01-02T15:41:48Z","body":"Making html code in SA project in most cases produces sth like that:\n\n    \n    zaba@SRW001:~/zosia/zosia/public/docs$ make html\n    sphinx-build -b html -d _build/doctrees   . _build/html\n    Running Sphinx v0.6.2\n    loading pickled environment... done\n    building [html]: targets for 1 source files that are out of date\n    updating environment: 0 added, 1 changed, 0 removed\n    reading sources... [100&#37;] test                                                                                                                                                        \n    Exception occurred:\n      File \"/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/registry.py\", line 194, in _current_obj\n        'thread' &#37; self.____name__)\n    TypeError: No object (name: G) has been registered for this thread\n    The full traceback has been saved in /tmp/sphinx-err-3f_Bgz.log, if you want to report the issue to the author.\n    Please also report this if it was a user error, so that a better error message can be provided next time.\n    Send reports to sphinx-dev@googlegroups.com. Thanks!\n    make: *** [html] Błąd 1\n    \n    \n\nMentioned error file here:\n\n    \n    zaba@SRW001:~/zosia/zosia/public/docs$ make html\n    sphinx-build -b html -d _build/doctrees   . _build/html\n    Running Sphinx v0.6.2\n    loading pickled environment... done\n    building [html]: targets for 1 source files that are out of date\n    updating environment: 0 added, 1 changed, 0 removed\n    reading sources... [100&#37;] test                                                                                                                                                        \n    Exception occurred:\n      File \"/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/registry.py\", line 194, in _current_obj\n        'thread' &#37; self.____name__)\n    TypeError: No object (name: G) has been registered for this thread\n    The full traceback has been saved in /tmp/sphinx-err-3f_Bgz.log, if you want to report the issue to the author.\n    Please also report this if it was a user error, so that a better error message can be provided next time.\n    Send reports to sphinx-dev@googlegroups.com. Thanks!\n    make: *** [html] Błąd 1\n    zaba@SRW001:~/zosia/zosia/public/docs$ more /tmp/sphinx-err-3f_Bgz.log \n    Traceback (most recent call last):\n      File \"/usr/lib/pymodules/python2.5/sphinx/cmdline.py\", line 172, in main\n        app.build(all_files, filenames)\n      File \"/usr/lib/pymodules/python2.5/sphinx/application.py\", line 130, in build\n        self.builder.build_update()\n      File \"/usr/lib/pymodules/python2.5/sphinx/builders/__init__.py\", line 265, in build_update\n        'out of date' &#37; len(to_build))\n      File \"/usr/lib/pymodules/python2.5/sphinx/builders/__init__.py\", line 285, in build\n        purple, length):\n      File \"/usr/lib/pymodules/python2.5/sphinx/builders/__init__.py\", line 131, in status_iterator\n        for item in iterable:\n      File \"/usr/lib/pymodules/python2.5/sphinx/environment.py\", line 519, in update_generator\n        self.read_doc(docname, app=app)\n      File \"/usr/lib/pymodules/python2.5/sphinx/environment.py\", line 610, in read_doc\n        pub.publish()\n      File \"/usr/lib/pymodules/python2.5/docutils/core.py\", line 204, in publish\n        self.settings)\n      File \"/usr/lib/pymodules/python2.5/docutils/readers/__init__.py\", line 69, in read\n        self.parse()\n      File \"/usr/lib/pymodules/python2.5/docutils/readers/__init__.py\", line 75, in parse\n        self.parser.parse(self.input, document)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/__init__.py\", line 157, in parse\n        self.statemachine.run(inputlines, document, inliner=self.inliner)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 170, in run\n        input_source=document['source'])\n      File \"/usr/lib/pymodules/python2.5/docutils/statemachine.py\", line 232, in run\n        context, state, transitions)\n      File \"/usr/lib/pymodules/python2.5/docutils/statemachine.py\", line 420, in check_line\n        return method(match, context, next_state)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 2658, in underline\n        self.section(title, source, style, lineno - 1, messages)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 308, in section\n        self.new_subsection(title, lineno, messages)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 376, in new_subsection\n        node=section_node, match_titles=1)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 266, in nested_parse\n        node=node, match_titles=match_titles)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 195, in run\n        results = StateMachineWS.run(self, input_lines, input_offset)\n      File \"/usr/lib/pymodules/python2.5/docutils/statemachine.py\", line 232, in run\n        context, state, transitions)\n      File \"/usr/lib/pymodules/python2.5/docutils/statemachine.py\", line 420, in check_line\n        return method(match, context, next_state)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 2658, in underline\n        self.section(title, source, style, lineno - 1, messages)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 308, in section\n        self.new_subsection(title, lineno, messages)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 376, in new_subsection\n        node=section_node, match_titles=1)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 266, in nested_parse\n        node=node, match_titles=match_titles)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 195, in run\n        results = StateMachineWS.run(self, input_lines, input_offset)\n      File \"/usr/lib/pymodules/python2.5/docutils/statemachine.py\", line 232, in run\n        context, state, transitions)\n      File \"/usr/lib/pymodules/python2.5/docutils/statemachine.py\", line 420, in check_line\n        return method(match, context, next_state)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 2239, in explicit_markup\n        nodelist, blank_finish = self.explicit_construct(match)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 2251, in explicit_construct\n        return method(self, expmatch)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 1994, in directive\n        directive_class, match, type_name, option_presets)\n      File \"/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py\", line 2043, in run_directive\n        result = directive_instance.run()\n      File \"/usr/lib/pymodules/python2.5/sphinx/ext/autodoc.py\", line 1072, in run\n        documenter.generate(more_content=self.content)\n      File \"/usr/lib/pymodules/python2.5/sphinx/ext/autodoc.py\", line 617, in generate\n        if not self.import_object():\n      File \"/usr/lib/pymodules/python2.5/sphinx/ext/autodoc.py\", line 327, in import_object\n        __import__(self.modname)\n      File \"/home/zaba/zosia/zosia/controllers/sedan_collection.py\", line 3, in <module>\n        from zosia.lib.sedan.file_saver import *\n      File \"/home/zaba/zosia/zosia/lib/sedan/file_saver.py\", line 2, in <module>\n        from zosia.lib.sedan.sql import *\n      File \"/home/zaba/zosia/zosia/lib/sedan/sql.py\", line 4, in <module>\n        from zosia.lib.workflow import processRequest\n      File \"/home/zaba/zosia/zosia/lib/workflow.py\", line 7, in <module>\n        from zosia.model.jednostka import *\n      File \"/home/zaba/zosia/zosia/model/jednostka.py\", line 12, in <module>\n        from zosia.model.obiekt import get_obiekty_from_db as get_obiekty\n      File \"/home/zaba/zosia/zosia/model/obiekt.py\", line 969, in <module>\n        rodzaje_obiektow_nr = dict([(x, klasy_rodzaje_obiektow[g.rodzaje_obiektow[x]]) for x in g.rodzaje_obiektow if g.rodzaje_obiektow[x] in klasy_rodzaje_obiektow.keys()])\n      File \"/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/registry.py\", line 137, in __getattr__\n        return getattr(self._current_obj(), attr)\n      File \"/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/registry.py\", line 194, in _current_obj\n        'thread' &#37; self.____name__)\n    TypeError: No object (name: G) has been registered for this thread\n    \n    \n\nIs it problem with my own code or with autodoc?\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/237\n- Originally reported by: [zabsko](https://bitbucket.org/zabsko)\n- Originally created at: 2009-08-11T17:17:45.881\n"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/comments/68535375","html_url":"https://github.com/sphinx-doc/testing2/issues/237#issuecomment-68535375","issue_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/237","id":68535375,"user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T15:41:52Z","updated_at":"2015-01-02T15:41:52Z","body":"_From Georg Brandl on 2013-03-31 13:57:15+00:00_\n\nRemoving version: 0.6.2 (automated comment)"}}