[Python-modules-team] Bug#1002361: python-testing.postgresql: FTBFS: dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.10 3.9" returned exit code 13

Lucas Nussbaum lucas at debian.org
Wed Dec 22 07:57:21 GMT 2021


Source: python-testing.postgresql
Version: 1.3.0-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
>  debian/rules build
> dh build --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:237: python3.10 setup.py config 
> /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
>   warnings.warn(
> running config
> I: pybuild base:237: python3.9 setup.py config 
> /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
>   warnings.warn(
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:237: /usr/bin/python3.10 setup.py build 
> /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
>   warnings.warn(
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build/testing
> copying src/testing/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build/testing
> copying src/testing/postgresql.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build/testing
> running egg_info
> writing src/testing.postgresql.egg-info/PKG-INFO
> writing dependency_links to src/testing.postgresql.egg-info/dependency_links.txt
> writing namespace_packages to src/testing.postgresql.egg-info/namespace_packages.txt
> writing requirements to src/testing.postgresql.egg-info/requires.txt
> writing top-level names to src/testing.postgresql.egg-info/top_level.txt
> reading manifest file 'src/testing.postgresql.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'src/testing.postgresql.egg-info/SOURCES.txt'
> I: pybuild base:237: /usr/bin/python3 setup.py build 
> /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
>   warnings.warn(
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_testing.postgresql/build/testing
> copying src/testing/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_testing.postgresql/build/testing
> copying src/testing/postgresql.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_testing.postgresql/build/testing
> running egg_info
> writing src/testing.postgresql.egg-info/PKG-INFO
> writing dependency_links to src/testing.postgresql.egg-info/dependency_links.txt
> writing namespace_packages to src/testing.postgresql.egg-info/namespace_packages.txt
> writing requirements to src/testing.postgresql.egg-info/requires.txt
> writing top-level names to src/testing.postgresql.egg-info/top_level.txt
> reading manifest file 'src/testing.postgresql.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'src/testing.postgresql.egg-info/SOURCES.txt'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build; python3.10 -m nose -v tests
> test_PostgresqlFactory (test_postgresql.TestPostgresql) ... ok
> test_PostgresqlFactory_with_initialized_handler (test_postgresql.TestPostgresql) ... ok
> test_basic (test_postgresql.TestPostgresql) ... ok
> test_copy_data_from (test_postgresql.TestPostgresql) ... ok
> test_dsn_and_url (test_postgresql.TestPostgresql) ... ok
> test_fork (test_postgresql.TestPostgresql) ... ok
> test_multiple_postgresql (test_postgresql.TestPostgresql) ... ok
> test_postgresql_is_not_found (test_postgresql.TestPostgresql) ... ok
> test_skipIfNotFound_found (test_postgresql.TestPostgresql) ... ERROR
> test_skipIfNotFound_notfound (test_postgresql.TestPostgresql) ... ERROR
> test_skipIfNotInstalled_found (test_postgresql.TestPostgresql) ... ERROR
> test_skipIfNotInstalled_notfound (test_postgresql.TestPostgresql) ... ERROR
> test_skipIfNotInstalled_with_args_found (test_postgresql.TestPostgresql) ... ERROR
> test_skipIfNotInstalled_with_args_notfound (test_postgresql.TestPostgresql) ... ERROR
> test_stop (test_postgresql.TestPostgresql) ... ok
> test_stop_on_child_process (test_postgresql.TestPostgresql) ... ok
> test_with_statement (test_postgresql.TestPostgresql) ... ok
> 
> ======================================================================
> ERROR: test_skipIfNotFound_found (test_postgresql.TestPostgresql)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build/tests/test_postgresql.py", line 220, in test_skipIfNotFound_found
>     def testcase():
>   File "/usr/lib/python3/dist-packages/testing/common/database.py", line 284, in __call__
>     if isinstance(arg, collections.Callable):  # execute as simple decorator
> AttributeError: module 'collections' has no attribute 'Callable'
> 
> ======================================================================
> ERROR: test_skipIfNotFound_notfound (test_postgresql.TestPostgresql)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build/tests/test_postgresql.py", line 233, in test_skipIfNotFound_notfound
>     def testcase():
>   File "/usr/lib/python3/dist-packages/testing/common/database.py", line 284, in __call__
>     if isinstance(arg, collections.Callable):  # execute as simple decorator
> AttributeError: module 'collections' has no attribute 'Callable'
> 
> ======================================================================
> ERROR: test_skipIfNotInstalled_found (test_postgresql.TestPostgresql)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build/tests/test_postgresql.py", line 173, in test_skipIfNotInstalled_found
>     def testcase():
>   File "/usr/lib/python3/dist-packages/testing/common/database.py", line 284, in __call__
>     if isinstance(arg, collections.Callable):  # execute as simple decorator
> AttributeError: module 'collections' has no attribute 'Callable'
> 
> ======================================================================
> ERROR: test_skipIfNotInstalled_notfound (test_postgresql.TestPostgresql)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build/tests/test_postgresql.py", line 186, in test_skipIfNotInstalled_notfound
>     def testcase():
>   File "/usr/lib/python3/dist-packages/testing/common/database.py", line 284, in __call__
>     if isinstance(arg, collections.Callable):  # execute as simple decorator
> AttributeError: module 'collections' has no attribute 'Callable'
> 
> ======================================================================
> ERROR: test_skipIfNotInstalled_with_args_found (test_postgresql.TestPostgresql)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build/tests/test_postgresql.py", line 195, in test_skipIfNotInstalled_with_args_found
>     @testing.postgresql.skipIfNotInstalled(path)
>   File "/usr/lib/python3/dist-packages/testing/common/database.py", line 284, in __call__
>     if isinstance(arg, collections.Callable):  # execute as simple decorator
> AttributeError: module 'collections' has no attribute 'Callable'
> 
> ======================================================================
> ERROR: test_skipIfNotInstalled_with_args_notfound (test_postgresql.TestPostgresql)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build/tests/test_postgresql.py", line 203, in test_skipIfNotInstalled_with_args_notfound
>     @testing.postgresql.skipIfNotInstalled("/path/to/anywhere")
>   File "/usr/lib/python3/dist-packages/testing/common/database.py", line 284, in __call__
>     if isinstance(arg, collections.Callable):  # execute as simple decorator
> AttributeError: module 'collections' has no attribute 'Callable'
> 
> ----------------------------------------------------------------------
> Ran 17 tests in 13.447s
> 
> FAILED (errors=6)
> E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_testing.postgresql/build; python3.10 -m nose -v tests
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_testing.postgresql/build; python3.9 -m nose -v tests
> test_PostgresqlFactory (test_postgresql.TestPostgresql) ... ok
> test_PostgresqlFactory_with_initialized_handler (test_postgresql.TestPostgresql) ... ok
> test_basic (test_postgresql.TestPostgresql) ... ok
> test_copy_data_from (test_postgresql.TestPostgresql) ... ok
> test_dsn_and_url (test_postgresql.TestPostgresql) ... ok
> test_fork (test_postgresql.TestPostgresql) ... ok
> test_multiple_postgresql (test_postgresql.TestPostgresql) ... ok
> test_postgresql_is_not_found (test_postgresql.TestPostgresql) ... ok
> test_skipIfNotFound_found (test_postgresql.TestPostgresql) ... ok
> test_skipIfNotFound_notfound (test_postgresql.TestPostgresql) ... ok
> test_skipIfNotInstalled_found (test_postgresql.TestPostgresql) ... ok
> test_skipIfNotInstalled_notfound (test_postgresql.TestPostgresql) ... ok
> test_skipIfNotInstalled_with_args_found (test_postgresql.TestPostgresql) ... ok
> test_skipIfNotInstalled_with_args_notfound (test_postgresql.TestPostgresql) ... ok
> test_stop (test_postgresql.TestPostgresql) ... ok
> test_stop_on_child_process (test_postgresql.TestPostgresql) ... ok
> test_with_statement (test_postgresql.TestPostgresql) ... ok
> 
> ----------------------------------------------------------------------
> Ran 17 tests in 12.649s
> 
> OK
> dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.10 3.9" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/python-testing.postgresql_1.3.0-2_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-modules-team mailing list