[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1058118: python-apt: FTBFS: AssertionError: pyflakes failed with: 1



Source: python-apt
Version: 2.7.0
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@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


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/python-apt_2.7.0_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

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 mark 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.


Reply to: