You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ /usr/bin/python3 setup.py build_sphinx -b man --build-dir build/sphinxrunning build_sphinxRunning Sphinx v4.0.2making output directory... doneloading intersphinx inventory from https://docs.python.org/3/objects.inv...loading intersphinx inventory from https://urllib3.readthedocs.io/en/latest/objects.inv...building [mo]: targets for 0 po files that are out of datebuilding [man]: all manpagesupdating environment: [new config] 15 added, 0 changed, 0 removedreading sources... [ 6%] apiException occurred: File "/usr/lib/python3.8/site-packages/sphinx/util/typing.py", line 112, in restify elif cls in INVALID_BUILTIN_CLASSES:TypeError: unhashable type: 'LookupDict'The full traceback has been saved in /tmp/sphinx-err-0z5530lc.log, if you want to report the issue to the developers.Please also report this if it was a user error, so that a better error message can be provided next time.A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
[tkloczko@barrel SPECS]$ cat /tmp/sphinx-err-0z5530lc.log
# Sphinx version: 4.0.2
# Python version: 3.8.11 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 3.0.1
# Last messages:
# making output directory...
# done
# loading intersphinx inventory from https://docs.python.org/3/objects.inv...
# loading intersphinx inventory from https://urllib3.readthedocs.io/en/latest/objects.inv...
# building [mo]: targets for 0 po files that are out of date
# building [man]: all manpages
# updating environment:
# [new config]
# 15 added, 0 changed, 0 removed
# reading sources... [ 6%] api
# Loaded extensions:
# sphinx.ext.mathjax (4.0.2) from /usr/lib/python3.8/site-packages/sphinx/ext/mathjax.py
# sphinxcontrib.applehelp (1.0.1) from /usr/lib/python3.8/site-packages/sphinxcontrib/applehelp/__init__.py
# sphinxcontrib.devhelp (1.0.1) from /usr/lib/python3.8/site-packages/sphinxcontrib/devhelp/__init__.py
# sphinxcontrib.htmlhelp (1.0.1) from /usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py
# sphinxcontrib.serializinghtml (1.1.5) from /usr/lib/python3.8/site-packages/sphinxcontrib/serializinghtml/__init__.py
# sphinxcontrib.qthelp (1.0.2) from /usr/lib/python3.8/site-packages/sphinxcontrib/qthelp/__init__.py
# alabaster (0.7.12) from /usr/lib/python3.8/site-packages/alabaster/__init__.py
# sphinx.ext.autodoc.preserve_defaults (1.0) from /usr/lib/python3.8/site-packages/sphinx/ext/autodoc/preserve_defaults.py
# sphinx.ext.autodoc.type_comment (4.0.2) from /usr/lib/python3.8/site-packages/sphinx/ext/autodoc/type_comment.py
# sphinx.ext.autodoc (4.0.2) from /usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py
# sphinx.ext.intersphinx (4.0.2) from /usr/lib/python3.8/site-packages/sphinx/ext/intersphinx.py
# sphinx.ext.todo (4.0.2) from /usr/lib/python3.8/site-packages/sphinx/ext/todo.py
# sphinx.ext.viewcode (4.0.2) from /usr/lib/python3.8/site-packages/sphinx/ext/viewcode.pyTraceback (most recent call last): File "/usr/lib/python3.8/site-packages/sphinx/setup_command.py", line 175, in run app.build(force_all=self.all_files) File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 350, in build self.builder.build_update() File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 289, in build_update self.build(['__all__'], to_build) File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 306, in build updated_docnames = set(self.read()) File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 413, in read self._read_serial(docnames) File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 434, in _read_serial self.read_doc(docname) File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 474, in read_doc doctree = read_doc(self.app, self.env, self.env.doc2path(docname)) File "/usr/lib/python3.8/site-packages/sphinx/io.py", line 188, in read_doc pub.publish() File "/usr/lib/python3.8/site-packages/docutils/core.py", line 217, in publish self.document = self.reader.read(self.source, self.parser, File "/usr/lib/python3.8/site-packages/sphinx/io.py", line 108, in read self.parse() File "/usr/lib/python3.8/site-packages/docutils/readers/__init__.py", line 77, in parse self.parser.parse(self.input, document) File "/usr/lib/python3.8/site-packages/sphinx/parsers.py", line 100, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 170, in run results = StateMachineWS.run(self, input_lines, input_offset, File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run context, next_state, result = self.check_line( File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line return method(match, context, next_state) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2769, in underline self.section(title, source, style, lineno - 1, messages) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 327, in section self.new_subsection(title, lineno, messages) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 393, in new_subsection newabsoffset = self.nested_parse( File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 281, in nested_parse state_machine.run(block, input_offset, memo=self.memo, File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run context, next_state, result = self.check_line( File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line return method(match, context, next_state) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2769, in underline self.section(title, source, style, lineno - 1, messages) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 327, in section self.new_subsection(title, lineno, messages) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 393, in new_subsection newabsoffset = self.nested_parse( File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 281, in nested_parse state_machine.run(block, input_offset, memo=self.memo, File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run context, next_state, result = self.check_line( File "/usr/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line return method(match, context, next_state) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2342, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2354, in explicit_construct return method(self, expmatch) File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2096, in directive return self.run_directive( File "/usr/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2146, in run_directive result = directive_instance.run() File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/directive.py", line 162, in run documenter.generate(more_content=self.content) File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 1715, in generate return super().generate(more_content=more_content, File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 961, in generate self.add_content(more_content) File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 1697, in add_content more_content = StringList([_('alias of %s') % restify(self.object)], source='') File "/usr/lib/python3.8/site-packages/sphinx/util/typing.py", line 112, in restify elif cls in INVALID_BUILTIN_CLASSES:TypeError: unhashable type: 'LookupDict'
Now I merged #9411 into the 4.x branch. So v4.1.0 will not be crashed. But I think requests.codes is not a class. So I recommend you to use autodata directive instead of autoclass.
Describe the bug
Sphinx fails generate requests module documentation.
To Reproduce
Expected behavior
Your project
Screenshots
Environment info
N/A
Additional context
N/A
N/A
The text was updated successfully, but these errors were encountered: