[Python-modules-team] Bug#963658: urwid: FTBFS with Sphinx 3.1: Theme error: An error happened in rendering the page index.

Lucas Nussbaum lucas at debian.org
Wed Jun 24 21:55:50 BST 2020


Source: urwid
Version: 2.1.0-3
Severity: important
Tags: ftbfs
User: python-modules-team at lists.alioth.debian.org
Usertags: sphinx3.1

Hi,

urwid fails to build with Sphinx 3.1, currently available in
experimental.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build
> I: pybuild base:217: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/numedit.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/raw_display.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/lcd_display.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/font.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/html_fragment.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/split_repr.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/display_common.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/text_layout.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/canvas.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/decoration.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/curses_display.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/old_str_util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/_async_kw_event_loop.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/treetools.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/vterm.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/listbox.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/monitored_list.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/graphics.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/command_map.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/main_loop.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/widget.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/signals.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/escape.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/container.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/web_display.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> copying urwid/wimp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_text_layout.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_widget.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_doctests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_event_loops.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_graphics.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_escapes.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_canvas.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_container.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_decoration.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_listbox.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> copying urwid/tests/test_str_util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/tests
> running build_ext
> building 'urwid.str_util' extension
> creating build
> creating build/temp.linux-x86_64-3.8
> creating build/temp.linux-x86_64-3.8/source
> x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c source/str_util.c -o build/temp.linux-x86_64-3.8/source/str_util.o
> x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/source/str_util.o -o /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_urwid/build/urwid/str_util.cpython-38-x86_64-linux-gnu.so
> PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs build/html # HTML generator
> Running Sphinx v3.1.1
> making output directory... done
> WARNING: html_static_path entry 'tools/static' does not exist
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 29 source files that are out of date
> updating environment: [new config] 29 added, 0 changed, 0 removed
> reading sources... [  3%] changelog
> reading sources... [  6%] examples/index
> reading sources... [ 10%] index
> reading sources... [ 13%] manual/canvascache
> reading sources... [ 17%] manual/displayattributes
> reading sources... [ 20%] manual/displaymodules
> reading sources... [ 24%] manual/encodings
> reading sources... [ 27%] manual/index
> reading sources... [ 31%] manual/mainloop
> reading sources... [ 34%] manual/overview
> reading sources... [ 37%] manual/textlayout
> reading sources... [ 41%] manual/userinput
> reading sources... [ 44%] manual/widgets
> reading sources... [ 48%] reference/attrspec
> reading sources... [ 51%] reference/canvas
> reading sources... [ 55%] reference/command_map
> reading sources... [ 58%] reference/constants
> reading sources... [ 62%] reference/deprecated
> reading sources... [ 65%] reference/display_modules
> reading sources... [ 68%] reference/exceptions
> reading sources... [ 72%] reference/global_settings
> reading sources... [ 75%] reference/index
> reading sources... [ 79%] reference/list_walkers
> reading sources... [ 82%] reference/main_loop
> reading sources... [ 86%] reference/meta
> reading sources... [ 89%] reference/signals
> reading sources... [ 93%] reference/text_layout
> reading sources... [ 96%] reference/widget
> reading sources... [100%] tutorial/index
> 
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [  3%] changelog
> writing output... [  6%] examples/index
> writing output... [ 10%] index
> writing output... [ 13%] manual/canvascache
> writing output... [ 17%] manual/displayattributes
> writing output... [ 20%] manual/displaymodules
> writing output... [ 24%] manual/encodings
> writing output... [ 27%] manual/index
> writing output... [ 31%] manual/mainloop
> writing output... [ 34%] manual/overview
> writing output... [ 37%] manual/textlayout
> writing output... [ 41%] manual/userinput
> writing output... [ 44%] manual/widgets
> writing output... [ 48%] reference/attrspec
> writing output... [ 51%] reference/canvas
> writing output... [ 55%] reference/command_map
> writing output... [ 58%] reference/constants
> writing output... [ 62%] reference/deprecated
> writing output... [ 65%] reference/display_modules
> writing output... [ 68%] reference/exceptions
> writing output... [ 72%] reference/global_settings
> writing output... [ 75%] reference/index
> writing output... [ 79%] reference/list_walkers
> writing output... [ 82%] reference/main_loop
> writing output... [ 86%] reference/meta
> writing output... [ 89%] reference/signals
> writing output... [ 93%] reference/text_layout
> writing output... [ 96%] reference/widget
> writing output... [100%] tutorial/index
> 
> /<<PKGBUILDDIR>>/urwid/decoration.py:docstring of urwid.WidgetDecoration.selectable:10: WARNING: more than one target found for cross-reference 'keypress': urwid.Widget.keypress, urwid.Edit.keypress, urwid.IntEdit.keypress, urwid.Button.keypress, urwid.CheckBox.keypress, urwid.TreeWidget.keypress, urwid.SelectableIcon.keypress, urwid.Padding.keypress, urwid.Filler.keypress, urwid.Frame.keypress, urwid.ListBox.keypress, urwid.TreeListBox.keypress, urwid.Columns.keypress, urwid.Pile.keypress, urwid.GridFlow.keypress, urwid.Overlay.keypress
> /<<PKGBUILDDIR>>/urwid/decoration.py:docstring of urwid.WidgetDisable.selectable:10: WARNING: more than one target found for cross-reference 'keypress': urwid.Widget.keypress, urwid.Edit.keypress, urwid.IntEdit.keypress, urwid.Button.keypress, urwid.CheckBox.keypress, urwid.TreeWidget.keypress, urwid.SelectableIcon.keypress, urwid.Padding.keypress, urwid.Filler.keypress, urwid.Frame.keypress, urwid.ListBox.keypress, urwid.TreeListBox.keypress, urwid.Columns.keypress, urwid.Pile.keypress, urwid.GridFlow.keypress, urwid.Overlay.keypress
> /<<PKGBUILDDIR>>/urwid/vterm.py:docstring of urwid.Terminal.selectable:10: WARNING: more than one target found for cross-reference 'keypress': urwid.Widget.keypress, urwid.Edit.keypress, urwid.IntEdit.keypress, urwid.Button.keypress, urwid.CheckBox.keypress, urwid.TreeWidget.keypress, urwid.SelectableIcon.keypress, urwid.Padding.keypress, urwid.Filler.keypress, urwid.Frame.keypress, urwid.ListBox.keypress, urwid.TreeListBox.keypress, urwid.Columns.keypress, urwid.Pile.keypress, urwid.GridFlow.keypress, urwid.Overlay.keypress
> generating indices...  genindexdone
> writing additional pages...  indexfailed
> 
> Theme error:
> An error happened in rendering the page index.
> Reason: UndefinedError("'warn' is undefined")
> make[1]: *** [debian/rules:15: override_dh_auto_build] Error 2

The full build log is available from:
   http://qa-logs.debian.net/2020/06/23/urwid_2.1.0-3_unstable_sphinx-exp.log

Please see [1] for Sphinx changelog, which may give a hint of what changes in
Sphinx caused this error.

Also see [2] for the list of deprecated/removed APIs and possible alternatives
to them.

Sphinx 3.1 is going to be uploaded to unstable in a couple of weeks. When that
happens, the severity of this bug will be bumped to serious.

In case you have questions, please Cc sphinx at packages.debian.org on reply.

[1]: https://www.sphinx-doc.org/en/3.x/changes.html
[2]: https://www.sphinx-doc.org/en/3.x/extdev/deprecated.html

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Python-modules-team mailing list