FTBFS 1.3.22+ds1-1 in build-docs during rebuild-test

Bug #1939346 reported by Bryce Harrington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sqlalchemy (Ubuntu)
Invalid
Undecided
Unassigned
zzzeeksphinx (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

https://people.canonical.com/~doko/ftbfs-report/test-rebuild-20210805-impish-impish.html

https://launchpad.net/ubuntu/+archive/test-rebuild-20210805-impish/+build/21915579/+files/buildlog_ubuntu-impish-amd64.postfix_3.5.6-1build1_BUILDING.txt.gz

build succeeded, 10 warnings.

The HTML pages are in ../../debian/python-sqlalchemy-doc/usr/share/doc/python-sqlalchemy-doc/html.
Exception ignored in: <_io.FileIO name='/usr/lib/python3/dist-packages/zzzeeksphinx/themes/zzzeeksphinx/static/docs.scss' mode='rb' closefd=True>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/zzzeeksphinx/scss.py", line 62, in generate_stylesheet
    open(os.path.join(static_path, "%s.scss" % name)).read()
ResourceWarning: unclosed file <_io.TextIOWrapper name='/usr/lib/python3/dist-packages/zzzeeksphinx/themes/zzzeeksphinx/static/docs.scss' mode='r' encoding='UTF-8'>

Extension error (zzzeeksphinx.scss):
Handler <function generate_stylesheet at 0x7f5a509fbe50> for event 'build-finished' threw an exception (exception: Error parsing block:
    @import url(//fonts.googleapis.com/css?family=Oxygen|Libre+Franklin:400,700);

Traceback:
  File "/usr/lib/python3/dist-packages/scss/compiler.py", line 349, in manage_children
    self._manage_children_impl(rule, scope)
  File "/usr/lib/python3/dist-packages/scss/compiler.py", line 359, in _manage_children_impl
    for c_lineno, c_property, c_codestr in locate_blocks(rule.unparsed_contents):
      DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats

Debian's 1.3.22-ds1-1 build sees none of these error messages:
https://buildd.debian.org/status/fetch.php?pkg=sqlalchemy&arch=amd64&ver=1.3.22%2Bds1-1&stamp=1609355330&raw=0

The version carried in impish was sync'd in Dec 30th, 2020, so hasn't received a rebuild in a while:
https://launchpad.net/ubuntu/+source/sqlalchemy/1.3.22+ds1-1

Bryce Harrington (bryce)
tags: added: update-excuse
Revision history for this message
Bryce Harrington (bryce) wrote (last edit ):

It sounds like the warning for the Libre+Franklin import is ignored by the testsuite, however I wonder if this results in either dummy data or an error html page to be used in place, and that this triggers the secondary error (below).
It is mentioned at https://github.com/sqlalchemy/sqlalchemy/issues/5727, and sounds like the issue is that an external resource is attempting to be read but blocked by the proxy; a few workarounds are suggested there.

The secondary error occurs in python, and is what autopkgtest actually faults on:

Traceback:
  File "/usr/lib/python3/dist-packages/scss/compiler.py", line 349, in manage_children
    self._manage_children_impl(rule, scope)
  File "/usr/lib/python3/dist-packages/scss/compiler.py", line 359, in _manage_children_impl
    for c_lineno, c_property, c_codestr in locate_blocks(rule.unparsed_contents):
DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats

python3-pyscss provides scss/compiler.py:

    # @print_timing(4)
    def manage_children(self, rule, scope):
        try:
            self._manage_children_impl(rule, scope) # line 349
        except SassBaseError as e:
            e.add_rule(rule)
            raise
        except Exception as e:
            raise SassError(e, rule=rule)

    def _manage_children_impl(self, rule, scope):
        calculator = self._make_calculator(rule.namespace)

        for c_lineno, c_property, c_codestr in locate_blocks(rule.unparsed_contents):
            block = UnparsedBlock(rule, c_lineno, c_property, c_codestr) # line 359
            ...

The error mentions a '#' format, but I'm not sure what data this UnparsedBlock() call is erroring on exactly. However, this DeprecationWarning on PY_SSIZE_T_CLEAN was introduced in Python 3.8 (c.f. https://bugs.python.org/issue36381) and has been dealt with by various other projects (e.g. LP: #1853809, https://github.com/zopefoundation/persistent/issues/108, https://stackoverflow.com/questions/66254152/suppress-deprecation-in-python, https://github.com/python-pillow/Pillow/pull/3749)

The current sqlalchemy package was built with python3-all-dev (>= 3.1.2-8~), which precedes when this deprecation was introduced.

description: updated
Bryce Harrington (bryce)
summary: - FTBFS 3.5.6-1build1 in build-docs
+ FTBFS 1.3.22+ds1-1 in build-docs during rebuild-test
description: updated
description: updated
Bryce Harrington (bryce)
description: updated
Bryce Harrington (bryce)
tags: added: ftbfs
Revision history for this message
Graham Inggs (ginggs) wrote :

zzzeeksphinx (1.1.6-1ubuntu1) impish; urgency=medium

  * Host fonts on www.sqlalchemy.org
  * Vendor Sphinx viewcode from Sphinx 3.4.3 (LP: #1939346)

 -- Graham Inggs <email address hidden> Fri, 08 Oct 2021 17:18:20 +0000

Changed in zzzeeksphinx (Ubuntu):
status: New → Fix Released
Changed in sqlalchemy (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.