Source: python-memoize
Version: 1.0.3-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
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: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> dh_auto_configure: warning: Compatibility levels before 10 are deprecated
> (level 9 in use)
> I: pybuild base:237: python3.10 setup.py config
> /<<PKGBUILDDIR>>/setup.py:2: DeprecationWarning: The distutils package is
> deprecated and slated for removal in Python 3.12. Use setuptools or check PEP
> 632 for potential alternatives
> from distutils.core import setup
> running config
> I: pybuild base:237: python3.9 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> dh_auto_build: warning: Compatibility levels before 10 are deprecated (level
> 9 in use)
> I: pybuild base:237: /usr/bin/python3.10 setup.py build
> /<<PKGBUILDDIR>>/setup.py:2: DeprecationWarning: The distutils package is
> deprecated and slated for removal in Python 3.12. Use setuptools or check PEP
> 632 for potential alternatives
> from distutils.core import setup
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize
> copying memoize/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize
> copying memoize/djangocache.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize
> copying memoize/core.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize
> copying memoize/options.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize
> copying memoize/func.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize
> copying memoize/time.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize
> copying memoize/redis.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize
> I: pybuild base:237: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymemoize/build/memoize
> copying memoize/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymemoize/build/memoize
> copying memoize/djangocache.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymemoize/build/memoize
> copying memoize/core.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymemoize/build/memoize
> copying memoize/options.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymemoize/build/memoize
> copying memoize/func.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymemoize/build/memoize
> copying memoize/time.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymemoize/build/memoize
> copying memoize/redis.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymemoize/build/memoize
> dh_auto_test -O--buildsystem=pybuild
> dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 9
> in use)
> I: pybuild base:237: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build; python3.10 -m
> unittest discover -v
> memoize (unittest.loader._FailedTest) ... ERROR
>
> ======================================================================
> ERROR: memoize (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: memoize
> Traceback (most recent call last):
> File "/usr/lib/python3.10/unittest/loader.py", line 470, in _find_test_path
> package = self._get_module_from_name(name)
> File "/usr/lib/python3.10/unittest/loader.py", line 377, in
> _get_module_from_name
> __import__(name)
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize/__init__.py",
> line 1, in <module>
> from .core import Memoizer
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize/core.py",
> line 4, in <module>
> from .func import MemoizedFunction
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize/func.py",
> line 9, in <module>
> from .options import OptionProperty
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build/memoize/options.py",
> line 2, in <module>
> from collections import Callable
> ImportError: cannot import name 'Callable' from 'collections'
> (/usr/lib/python3.10/collections/__init__.py)
>
>
> ----------------------------------------------------------------------
> Ran 1 test in 0.000s
>
> FAILED (errors=1)
> E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pymemoize/build; python3.10 -m
> unittest discover -v
> I: pybuild base:237: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymemoize/build; python3.9 -m unittest
> discover -v
>
> ----------------------------------------------------------------------
> Ran 0 tests in 0.000s
>
> OK
> dh_auto_test: error: pybuild --test -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-memoize_1.0.3-1_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.