[Python-apps-team] Bug#997376: pelican: FTBFS: AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'

Lucas Nussbaum lucas at debian.org
Sat Oct 23 20:50:07 BST 2021


Source: pelican
Version: 4.0.1+dfsg-1.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build
> dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> I: pybuild base:232: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/cache.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/writers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/urlwrappers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/readers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/rstdirectives.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/generators.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/contents.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/paginator.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/log.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/settings.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/signals.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> copying pelican/server.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools
> copying pelican/tools/pelican_import.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools
> copying pelican/tools/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools
> copying pelican/tools/pelican_quickstart.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools
> copying pelican/tools/pelican_themes.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/gosquared.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/tags.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/archives.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/tag.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/translations.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/category.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/period_archives.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/base.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/categories.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/page.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/author.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/index.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/article.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/pagination.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> copying pelican/themes/simple/templates/authors.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/themes/simple/templates
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools/templates
> copying pelican/tools/templates/publishconf.py.jinja2 -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools/templates
> copying pelican/tools/templates/Makefile.jinja2 -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools/templates
> copying pelican/tools/templates/pelicanconf.py.jinja2 -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools/templates
> copying pelican/tools/templates/tasks.py.jinja2 -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pelican/tools/templates
> PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -E -bhtml docs build/html
> Running Sphinx v4.2.0
> making output directory... done
> 
> Exception occurred:
>   File "/<<PKGBUILDDIR>>/docs/conf.py", line 67, in setup
>     app.add_stylesheet('theme_overrides.css')   # path relative to _static
> AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'
> The full traceback has been saved in /tmp/sphinx-err-qjqntp4c.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!
> make[1]: *** [debian/rules:16: override_dh_auto_build] Error 2


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/pelican_4.0.1+dfsg-1.1_unstable.log

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!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Python-apps-team mailing list