[Pkg-salt-team] Bug#955057: Bug#955057: salt: FTBFS with Sphinx 2.4: AttributeError: __enter__

Dmitry Shachnev mitya57 at debian.org
Fri Mar 27 17:58:36 GMT 2020


Hi Benjamin!

On Fri, Mar 27, 2020 at 06:01:36PM +0100, Benjamin Drung wrote:
> Thanks for reporting this failure. To troubleshoot, I need the full
> stack trace that sphinx just saved in /tmp/sphinx-err-r3r4hnih.log.
>
> Is there an easy way to let sphinx print the stack trace instead of
> storing it? Do you have snippets for the Debian packaging?

Call sphinx-build with -T option which makes in print the whole traceback.

In your package, you can change these lines in debian/rules

    HTML_THEME=saltstack make -C doc html SPHINXBUILD=/usr/share/sphinx/scripts/python3/sphinx-build
    HTML_THEME=saltstack make -C doc man SPHINXBUILD=/usr/share/sphinx/scripts/python3/sphinx-build

to

    HTML_THEME=saltstack make -C doc html SPHINXBUILD=/usr/share/sphinx/scripts/python3/sphinx-build SPHINXOPTS=-T
    HTML_THEME=saltstack make -C doc man SPHINXBUILD=/usr/share/sphinx/scripts/python3/sphinx-build SPHINXOPTS=-T

Alternatively, you can use -v which implies -T and makes the output more
verbose (which is in line with Policy ยง 4.9).

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-salt-team/attachments/20200327/d0946c60/attachment.sig>


More information about the pkg-salt-team mailing list