Control: clone -1 -2
Control: reassign -2 pyflakes 3.1.0-1

On Tue, Dec 12, 2023 at 09:06:33AM +0100, Lucas Nussbaum wrote:
> Source: python-apt
> Version: 2.7.0
> Severity: serious
> Justification: FTBFS
> Tags: trixie sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20231212 ftbfs-trixie
> 
> 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_test || [ "linux" = "hurd" ];
> > I: pybuild base:310: env 
> > PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_apt/build python3.12 
> > tests/test_all.py
> > [tests] Running on 3.12.1 (main, Dec  8 2023, 16:20:54) [GCC 13.2.0]
> > Using pybuild supplied build dir
> > s....................
> > Reading package lists... 0%
> > 
> > Reading package lists... 100%
> > 
> > Reading package lists... Done
> > 
> > 
> > Building dependency tree... 0%
> > 
> > Building dependency tree... 0%
> > 
> > Building dependency tree... 50%
> > 
> > Building dependency tree... 50%
> > 
> > Building dependency tree... Done
> > 
> > 
> > Reading state information... 0% 
> > 
> > Reading state information... 0%
> > 
> > Reading state information... Done
> > 
> > .
> > Reading package lists... 0%
> > 
> > Reading package lists... 100%
> > 
> > Reading package lists... Done
> > 
> > 
> > Building dependency tree... 0%
> > 
> > Building dependency tree... 0%
> > 
> > Building dependency tree... 50%
> > 
> > Building dependency tree... 50%
> > 
> > Building dependency tree... Done
> > 
> > 
> > Reading state information... 0% 
> > 
> > Reading state information... 0%
> > 
> > Reading state information... Done
> > 
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > ..WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .s...............................s....................................../<<PKGBUILDDIR>>/apt/auth.py:40:1:
> >  'typing.List' imported but unused
> > /<<PKGBUILDDIR>>/apt/auth.py:40:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/auth.py:40:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/utils.py:21:1: 'datetime' imported but unused
> > /<<PKGBUILDDIR>>/apt/utils.py:24:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/utils.py:24:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/utils.py:26:1: 'apt' imported but unused
> > /<<PKGBUILDDIR>>/apt/cdrom.py:25:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:30:1: 'threading' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Iterable' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Iterator' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Set' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Union' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:53:1: 'apt.progress.base.AcquireProgress' 
> > imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:53:1: 'apt.progress.base.InstallProgress' 
> > imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Dict' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Iterable' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.List' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Set' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Union' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Any' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Callable' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Dict' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Iterator' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.List' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Set' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Union' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.KeysView' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:45:1: 'apt.package.Version' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/cache.py:47:1: 'apt.progress.base.AcquireProgress' 
> > imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:47:1: 'apt.progress.base.InstallProgress' 
> > imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:47:1: 'apt.progress.base.OpProgress' imported 
> > but unused
> > /<<PKGBUILDDIR>>/apt/progress/__init__.py:28:1: 'typing.Sequence' imported 
> > but unused
> > /<<PKGBUILDDIR>>/apt/progress/base.py:29:1: 'io' imported but unused
> > /<<PKGBUILDDIR>>/apt/progress/base.py:35:1: 'typing.Optional' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/progress/base.py:35:1: 'typing.Union' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:20:1: 'io' imported but unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:25:1: 'types' imported but unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:26:1: 'typing.Callable' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:26:1: 'typing.Optional' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:26:1: 'typing.Union' imported but 
> > unused
> > F..................s
> > ======================================================================
> > FAIL: test_pyflakes_clean 
> > (test_pyflakes.TestPyflakesClean.test_pyflakes_clean)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/<<PKGBUILDDIR>>/tests/test_pyflakes.py", line 37, in 
> > test_pyflakes_clean
> >     self.fail("pyflakes failed with: %s" % res)
> > AssertionError: pyflakes failed with: 1
> > 
> > ----------------------------------------------------------------------
> > Ran 136 tests in 17.967s
> > 
> > FAILED (failures=1, skipped=4)
> > E: pybuild pybuild:395: test: plugin custom failed with: exit code=1: env 
> > PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_apt/build python3.12 
> > tests/test_all.py
> > I: pybuild base:310: env 
> > PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_apt/build python3.11 
> > tests/test_all.py
> > [tests] Running on 3.11.7 (main, Dec  8 2023, 14:22:46) [GCC 13.2.0]
> > Using pybuild supplied build dir
> > s....................
> > Reading package lists... 0%
> > 
> > Reading package lists... 100%
> > 
> > Reading package lists... Done
> > 
> > 
> > Building dependency tree... 0%
> > 
> > Building dependency tree... 0%
> > 
> > Building dependency tree... 50%
> > 
> > Building dependency tree... 50%
> > 
> > Building dependency tree... Done
> > 
> > 
> > Reading state information... 0% 
> > 
> > Reading state information... 0%
> > 
> > Reading state information... Done
> > 
> > .
> > Reading package lists... 0%
> > 
> > Reading package lists... 100%
> > 
> > Reading package lists... Done
> > 
> > 
> > Building dependency tree... 0%
> > 
> > Building dependency tree... 0%
> > 
> > Building dependency tree... 50%
> > 
> > Building dependency tree... 50%
> > 
> > Building dependency tree... Done
> > 
> > 
> > Reading state information... 0% 
> > 
> > Reading state information... 0%
> > 
> > Reading state information... Done
> > 
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > ..WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .WARNING: Failed to read mirror file
> > .s...............................s....................................../<<PKGBUILDDIR>>/apt/auth.py:40:1:
> >  'typing.List' imported but unused
> > /<<PKGBUILDDIR>>/apt/auth.py:40:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/auth.py:40:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/utils.py:21:1: 'datetime' imported but unused
> > /<<PKGBUILDDIR>>/apt/utils.py:24:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/utils.py:24:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/utils.py:26:1: 'apt' imported but unused
> > /<<PKGBUILDDIR>>/apt/cdrom.py:25:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:30:1: 'threading' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Iterable' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Iterator' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Set' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:36:1: 'typing.Union' imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:53:1: 'apt.progress.base.AcquireProgress' 
> > imported but unused
> > /<<PKGBUILDDIR>>/apt/package.py:53:1: 'apt.progress.base.InstallProgress' 
> > imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Dict' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Iterable' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.List' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Set' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/debfile.py:29:1: 'typing.Union' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Any' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Callable' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Dict' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Iterator' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.List' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Optional' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Set' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Tuple' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.Union' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:30:1: 'typing.KeysView' imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:45:1: 'apt.package.Version' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/cache.py:47:1: 'apt.progress.base.AcquireProgress' 
> > imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:47:1: 'apt.progress.base.InstallProgress' 
> > imported but unused
> > /<<PKGBUILDDIR>>/apt/cache.py:47:1: 'apt.progress.base.OpProgress' imported 
> > but unused
> > /<<PKGBUILDDIR>>/apt/progress/__init__.py:28:1: 'typing.Sequence' imported 
> > but unused
> > /<<PKGBUILDDIR>>/apt/progress/base.py:29:1: 'io' imported but unused
> > /<<PKGBUILDDIR>>/apt/progress/base.py:35:1: 'typing.Optional' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/progress/base.py:35:1: 'typing.Union' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:20:1: 'io' imported but unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:25:1: 'types' imported but unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:26:1: 'typing.Callable' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:26:1: 'typing.Optional' imported but 
> > unused
> > /<<PKGBUILDDIR>>/apt/progress/text.py:26:1: 'typing.Union' imported but 
> > unused
> > F..................s
> > ======================================================================
> > FAIL: test_pyflakes_clean 
> > (test_pyflakes.TestPyflakesClean.test_pyflakes_clean)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/<<PKGBUILDDIR>>/tests/test_pyflakes.py", line 37, in 
> > test_pyflakes_clean
> >     self.fail("pyflakes failed with: %s" % res)
> > AssertionError: pyflakes failed with: 1
> > 
> > ----------------------------------------------------------------------
> > Ran 140 tests in 17.282s
> > 
> > FAILED (failures=1, skipped=4)
> > E: pybuild pybuild:395: test: plugin custom failed with: exit code=1: env 
> > PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_apt/build python3.11 
> > tests/test_all.py
> > dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" 
> > returned exit code 13

This seems to be a regression in pyflakes which now raises unused import
errors, despite the imports actually being used - in type annotations.

There is no way for us to override the pyflakes check for unused
imports, so really pyflakes needs to be fixed. We can only turn it
off for the time being which is really annoying..

I'm leaving the cloned bug at serious severity because if I work around
this in python-apt, pyflakes would migrate without the RC bug which
seems ill-advised.
-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

Reply via email to