Bug#997382: theano: FTBFS: AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'
Lucas Nussbaum
lucas at debian.org
Sat Oct 23 20:51:11 BST 2021
Source: theano
Version: 1.0.5+dfsg-3
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[2]: Entering directory '/<<PKGBUILDDIR>>/debian/missing-source/graphlib-dot'
> pegjs --allowed-start-rules "start,graphStmt" -o lib/dot-grammar.js src/dot-grammar.pegjs
> ./node_modules/istanbul/lib/cli.js cover --dir build/cov --report html ./node_modules/mocha/bin/_mocha --dir build/cov -- -R dot test/version-test.js test/chai.js test/read-many-test.js test/write-test.js test/read-one-test.js || ./node_modules/mocha/bin/_mocha -R dot test/version-test.js test/chai.js test/read-many-test.js test/write-test.js test/read-one-test.js
>
>
> ........................................................
> ..................
>
> 74 passing (122ms)
>
> =============================================================================
> Writing coverage object [/<<PKGBUILDDIR>>/debian/missing-source/graphlib-dot/build/cov/coverage.json]
> Writing coverage reports at [/<<PKGBUILDDIR>>/debian/missing-source/graphlib-dot/build/cov]
> =============================================================================
>
> =============================== Coverage summary ===============================
> [32;1mStatements : 84.76% ( 1518/1791 )[0m
> [33;1mBranches : 74.05% ( 585/790 )[0m
> [32;1mFunctions : 89.17% ( 107/120 )[0m
> [32;1mLines : 86.18% ( 1472/1708 )[0m
> ================================================================================
> browserify-lite ./browser.js --outfile build/graphlib-dot.js
> uglifyjs.terser build/graphlib-dot.js --comments '@license' > build/graphlib-dot.min.js
> cp build/graphlib-dot.js build/graphlib-dot.min.js dist
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/missing-source/graphlib-dot'
> cp debian/missing-source/graphlib-dot/dist/graphlib-dot.min.js theano/d3viz/js
> cd debian/missing-source && patch -p1 -R < js_fixes.diff
> patching file graphlib-dot/Makefile
> #dagre-d3.js
> cp /usr/share/nodejs/dagre-d3/dist/dagre-d3.min.js theano/d3viz/js
> #d3 - workaround for #745688
> uglifyjs.terser /usr/share/javascript/d3/d3.js -m -c --comments '@license' -o theano/d3viz/js/d3.v3.min.js
> cp theano/d3viz/js/*.min.js doc/library/d3viz/examples/d3viz/js
> # put the scripts in theano not a generic directory - #967006
> mv bin -T theano/bin
> #the cython code is the only part of theano itself that needs building - the C code is runtime compiled
> cd /<<PKGBUILDDIR>>/theano/scan_module && cython3 scan_perform.pyx
> /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /<<PKGBUILDDIR>>/theano/scan_module/scan_perform.pyx
> tree = Parsing.p_module(s, pxd, full_module_name)
> #remove relative paths from comments - they are unreproducible (depends on the number of levels in the build path) and probably wrong when installed
> cd /<<PKGBUILDDIR>>/theano/scan_module && sed -iE -e 's#/\* "[./]*usr/lib/#/\* "/usr/lib/#g' scan_perform.c
> #this patch is to code Cython copies from itself (Cython/Includes/numpy/__init__.pxd), that only exists in older versions - #918771
> cd /<<PKGBUILDDIR>>/theano/scan_module && dpkg --compare-versions `dpkg-query -f '${Version}' -W cython3` gt 0.29~ || patch --no-backup-if-mismatch scan_perform.c numpy_api_changes.diff
> cd /<<PKGBUILDDIR>>/theano/scan_module && mv scan_perform.c -t c_code
> #documentation
> sed -i -e "s/!pip/#!pip/g" doc/library/d3viz/index.ipynb
> mkdir jupyter_tmp
> #check that we can run this, but throw away the result because it's unreproducible (profiling output)
> cp /<<PKGBUILDDIR>>/doc/library/d3viz/index.ipynb jupyter_tmp && jupyter-nbconvert --to notebook --execute /<<PKGBUILDDIR>>/jupyter_tmp/index.ipynb --output /<<PKGBUILDDIR>>/jupyter_tmp/test.ipynb
> [NbConvertApp] Converting notebook /<<PKGBUILDDIR>>/jupyter_tmp/index.ipynb to notebook
> [NbConvertApp] Executing notebook with kernel: python3
> [NbConvertApp] Writing 186519 bytes to /<<PKGBUILDDIR>>/jupyter_tmp/test.ipynb
> #...but do use the ipynb-to-html-etc conversion
> jupyter-nbconvert --to html doc/library/d3viz/index.ipynb
> [NbConvertApp] Converting notebook doc/library/d3viz/index.ipynb to html
> [NbConvertApp] Writing 504616 bytes to doc/library/d3viz/index.html
> sed -i -e "s/#!pip/!pip/g" doc/library/d3viz/index.ipynb
> python3 doc/scripts/docgen.py
> Running Sphinx v4.2.0
>
> Exception occurred:
> File "/<<PKGBUILDDIR>>/doc/conf.py", line 139, in setup
> app.add_stylesheet("fix_rtd.css")
> AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'
> The full traceback has been saved in /tmp/sphinx-err-47q9w6ym.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:50: override_dh_auto_build] Error 2
The full build log is available from:
http://qa-logs.debian.net/2021/10/23/theano_1.0.5+dfsg-3_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 debian-science-maintainers
mailing list