Source: textdistance
Version: 4.5.0-1
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):
>  debian/rules binary
> dh binary --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:310: python3.12 setup.py config 
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: 
> _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
> 
>         
> ********************************************************************************
>         The license_file parameter is deprecated, use license_files instead.
> 
>         This deprecation is overdue, please update your project and remove 
> deprecated
>         calls to avoid build errors in the future.
> 
>         See 
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for 
> details.
>         
> ********************************************************************************
> 
> !!
>   parsed = self.parsers.get(option_name, lambda x: x)(value)
> running config
> I: pybuild base:310: python3.11 setup.py config 
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: 
> _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
> 
>         
> ********************************************************************************
>         The license_file parameter is deprecated, use license_files instead.
> 
>         This deprecation is overdue, please update your project and remove 
> deprecated
>         calls to avoid build errors in the future.
> 
>         See 
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for 
> details.
>         
> ********************************************************************************
> 
> !!
>   parsed = self.parsers.get(option_name, lambda x: x)(value)
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:310: /usr/bin/python3.12 setup.py build 
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: 
> _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
> 
>         
> ********************************************************************************
>         The license_file parameter is deprecated, use license_files instead.
> 
>         This deprecation is overdue, please update your project and remove 
> deprecated
>         calls to avoid build errors in the future.
> 
>         See 
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for 
> details.
>         
> ********************************************************************************
> 
> !!
>   parsed = self.parsers.get(option_name, lambda x: x)(value)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance
> copying textdistance/utils.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance
> copying textdistance/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance
> copying textdistance/libraries.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance
> copying textdistance/benchmark.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/compression_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/edit_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/phonetic.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/base.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/simple.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/token_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/types.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/vector_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/algorithms/sequence_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance/algorithms
> copying textdistance/libraries.json -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/textdistance
> I: pybuild base:310: /usr/bin/python3 setup.py build 
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: 
> _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
> 
>         
> ********************************************************************************
>         The license_file parameter is deprecated, use license_files instead.
> 
>         This deprecation is overdue, please update your project and remove 
> deprecated
>         calls to avoid build errors in the future.
> 
>         See 
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for 
> details.
>         
> ********************************************************************************
> 
> !!
>   parsed = self.parsers.get(option_name, lambda x: x)(value)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance
> copying textdistance/utils.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance
> copying textdistance/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance
> copying textdistance/libraries.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance
> copying textdistance/benchmark.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/compression_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/edit_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/phonetic.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/base.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/simple.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/token_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/types.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/vector_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/algorithms/sequence_based.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance/algorithms
> copying textdistance/libraries.json -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/textdistance
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; 
> python3.12 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> plugins: hypothesis-6.92.0
> collected 430 items
> 
> tests/test_common.py ................................................... [ 
> 11%]
> ........................................................................ [ 
> 28%]
> .............................................                            [ 
> 39%]
> tests/test_external.py .F..F.F..F.F..F.F..F.F..F.F..F                    [ 
> 46%]
> tests/test_compression/test_arith_ncd.py ....                            [ 
> 46%]
> tests/test_compression/test_bwtrle_ncd.py ..                             [ 
> 47%]
> tests/test_compression/test_bz2_ncd.py ..                                [ 
> 47%]
> tests/test_compression/test_common.py ............................       [ 
> 54%]
> tests/test_compression/test_entropy_ncd.py ........                      [ 
> 56%]
> tests/test_compression/test_sqrt_ncd.py .......                          [ 
> 57%]
> tests/test_edit/test_damerau_levenshtein.py ............................ [ 
> 64%]
> ....                                                                     [ 
> 65%]
> tests/test_edit/test_editex.py ............                              [ 
> 68%]
> tests/test_edit/test_gotoh.py .....                                      [ 
> 69%]
> tests/test_edit/test_hamming.py ......                                   [ 
> 70%]
> tests/test_edit/test_jaro.py ........                                    [ 
> 72%]
> tests/test_edit/test_jaro_winkler.py .......                             [ 
> 74%]
> tests/test_edit/test_levenshtein.py ......                               [ 
> 75%]
> tests/test_edit/test_matrix.py ..........                                [ 
> 77%]
> tests/test_edit/test_mlipns.py ...........                               [ 
> 80%]
> tests/test_edit/test_needleman_wunsch.py .....                           [ 
> 81%]
> tests/test_edit/test_smith_waterman.py .....                             [ 
> 82%]
> tests/test_edit/test_strcmp95.py ....                                    [ 
> 83%]
> tests/test_phonetic/test_editex.py ..............................        [ 
> 90%]
> tests/test_sequence/test_lcsseq.py ...........                           [ 
> 93%]
> tests/test_sequence/test_lcsstr.py ..........                            [ 
> 95%]
> tests/test_token/test_bag.py ....                                        [ 
> 96%]
> tests/test_token/test_cosine.py ..                                       [ 
> 96%]
> tests/test_token/test_jaccard.py .....                                   [ 
> 98%]
> tests/test_token/test_monge_elkan.py ..                                  [ 
> 98%]
> tests/test_token/test_overlap.py ...                                     [ 
> 99%]
> tests/test_token/test_sorensen.py ...                                    
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ____________________________ test_compare[Hamming] 
> _____________________________
> 
> alg = 'Hamming'
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:24: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Hamming'
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.settings(deadline=None)
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     def test_compare(left, right, alg):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.hamming
> E               Falsifying example: test_compare(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Hamming',
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:37: RuntimeError
> __________________________ test_compare[Levenshtein] 
> ___________________________
> 
> alg = 'Levenshtein'
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:24: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Levenshtein'
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.settings(deadline=None)
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     def test_compare(left, right, alg):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.distance
> E               Falsifying example: test_compare(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Levenshtein',
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:37: RuntimeError
> ___________________________ test_qval[None-Hamming] 
> ____________________________
> 
> alg = 'Hamming', qval = None
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Hamming', qval = None
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     @pytest.mark.parametrize('qval', (None, 1, 2, 3))
>     def test_qval(left, right, alg, qval):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.hamming
> E               Falsifying example: test_qval(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Hamming',
> E                   qval=None,
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:62: RuntimeError
> _________________________ test_qval[None-Levenshtein] 
> __________________________
> 
> alg = 'Levenshtein', qval = None
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Levenshtein', qval = None
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     @pytest.mark.parametrize('qval', (None, 1, 2, 3))
>     def test_qval(left, right, alg, qval):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.distance
> E               Falsifying example: test_qval(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Levenshtein',
> E                   qval=None,
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:62: RuntimeError
> _____________________________ test_qval[1-Hamming] 
> _____________________________
> 
> alg = 'Hamming', qval = 1
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Hamming', qval = 1
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     @pytest.mark.parametrize('qval', (None, 1, 2, 3))
>     def test_qval(left, right, alg, qval):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.hamming
> E               Falsifying example: test_qval(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Hamming',
> E                   qval=1,
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:62: RuntimeError
> ___________________________ test_qval[1-Levenshtein] 
> ___________________________
> 
> alg = 'Levenshtein', qval = 1
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Levenshtein', qval = 1
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     @pytest.mark.parametrize('qval', (None, 1, 2, 3))
>     def test_qval(left, right, alg, qval):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.distance
> E               Falsifying example: test_qval(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Levenshtein',
> E                   qval=1,
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:62: RuntimeError
> _____________________________ test_qval[2-Hamming] 
> _____________________________
> 
> alg = 'Hamming', qval = 2
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Hamming', qval = 2
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     @pytest.mark.parametrize('qval', (None, 1, 2, 3))
>     def test_qval(left, right, alg, qval):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.hamming
> E               Falsifying example: test_qval(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Hamming',
> E                   qval=2,
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:62: RuntimeError
> ___________________________ test_qval[2-Levenshtein] 
> ___________________________
> 
> alg = 'Levenshtein', qval = 2
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Levenshtein', qval = 2
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     @pytest.mark.parametrize('qval', (None, 1, 2, 3))
>     def test_qval(left, right, alg, qval):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.distance
> E               Falsifying example: test_qval(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Levenshtein',
> E                   qval=2,
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:62: RuntimeError
> _____________________________ test_qval[3-Hamming] 
> _____________________________
> 
> alg = 'Hamming', qval = 3
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Hamming', qval = 3
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     @pytest.mark.parametrize('qval', (None, 1, 2, 3))
>     def test_qval(left, right, alg, qval):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.hamming
> E               Falsifying example: test_qval(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Hamming',
> E                   qval=3,
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:62: RuntimeError
> ___________________________ test_qval[3-Levenshtein] 
> ___________________________
> 
> alg = 'Levenshtein', qval = 3
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = '0', right = '0', alg = 'Levenshtein', qval = 3
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.text(min_size=1),
>         right=hypothesis.strategies.text(min_size=1),
>     )
>     @pytest.mark.parametrize('qval', (None, 1, 2, 3))
>     def test_qval(left, right, alg, qval):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.distance
> E               Falsifying example: test_qval(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Levenshtein',
> E                   qval=3,
> E                   left='0',  # or any other generated value
> E                   right='0',  # or any other generated value
> E               )
> 
> tests/test_external.py:62: RuntimeError
> ________________________ test_list_of_numbers[Hamming] 
> _________________________
> 
> alg = 'Hamming'
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:84: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = [], right = [], alg = 'Hamming'
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.lists(hypothesis.strategies.integers()),
>         right=hypothesis.strategies.lists(hypothesis.strategies.integers()),
>     )
>     def test_list_of_numbers(left, right, alg):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.hamming
> E               Falsifying example: test_list_of_numbers(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Hamming',
> E                   left=[],  # or any other generated value
> E                   right=[],  # or any other generated value
> E               )
> 
> tests/test_external.py:96: RuntimeError
> ______________________ test_list_of_numbers[Levenshtein] 
> _______________________
> 
> alg = 'Levenshtein'
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
> >   @pytest.mark.external
> 
> tests/test_external.py:84: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> left = [], right = [], alg = 'Levenshtein'
> 
>     @pytest.mark.filterwarnings(*ABYDOS_WARNINGS)
>     @pytest.mark.external
>     @pytest.mark.parametrize('alg', libraries.get_algorithms())
>     @hypothesis.given(
>         left=hypothesis.strategies.lists(hypothesis.strategies.integers()),
>         right=hypothesis.strategies.lists(hypothesis.strategies.integers()),
>     )
>     def test_list_of_numbers(left, right, alg):
>         for lib in libraries.get_libs(alg):
>             conditions = lib.conditions or {}
>             internal_func = getattr(textdistance, alg)(external=False, 
> **conditions)
>             external_func = lib.get_function()
>             if external_func is None:
> >               raise RuntimeError('cannot import {}'.format(str(lib)))
> E               RuntimeError: cannot import Levenshtein.distance
> E               Falsifying example: test_list_of_numbers(
> E                   # The test always failed when commented parts were varied 
> together.
> E                   alg='Levenshtein',
> E                   left=[],  # or any other generated value
> E                   right=[],  # or any other generated value
> E               )
> 
> tests/test_external.py:96: RuntimeError
> =========================== short test summary info 
> ============================
> FAILED tests/test_external.py::test_compare[Hamming] - RuntimeError: cannot 
> i...
> FAILED tests/test_external.py::test_compare[Levenshtein] - RuntimeError: 
> cann...
> FAILED tests/test_external.py::test_qval[None-Hamming] - RuntimeError: 
> cannot...
> FAILED tests/test_external.py::test_qval[None-Levenshtein] - RuntimeError: 
> ca...
> FAILED tests/test_external.py::test_qval[1-Hamming] - RuntimeError: cannot 
> im...
> FAILED tests/test_external.py::test_qval[1-Levenshtein] - RuntimeError: 
> canno...
> FAILED tests/test_external.py::test_qval[2-Hamming] - RuntimeError: cannot 
> im...
> FAILED tests/test_external.py::test_qval[2-Levenshtein] - RuntimeError: 
> canno...
> FAILED tests/test_external.py::test_qval[3-Hamming] - RuntimeError: cannot 
> im...
> FAILED tests/test_external.py::test_qval[3-Levenshtein] - RuntimeError: 
> canno...
> FAILED tests/test_external.py::test_list_of_numbers[Hamming] - RuntimeError: 
> ...
> FAILED tests/test_external.py::test_list_of_numbers[Levenshtein] - 
> RuntimeErr...
> ================== 12 failed, 418 passed in 100.24s (0:01:40) 
> ==================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest tests
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; 
> python3.11 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> plugins: hypothesis-6.92.0
> collected 430 items
> 
> tests/test_common.py ................................................... [ 
> 11%]
> ........................................................................ [ 
> 28%]
> .............................................                            [ 
> 39%]
> tests/test_external.py ..............................                    [ 
> 46%]
> tests/test_compression/test_arith_ncd.py ....                            [ 
> 46%]
> tests/test_compression/test_bwtrle_ncd.py ..                             [ 
> 47%]
> tests/test_compression/test_bz2_ncd.py ..                                [ 
> 47%]
> tests/test_compression/test_common.py ............................       [ 
> 54%]
> tests/test_compression/test_entropy_ncd.py ........                      [ 
> 56%]
> tests/test_compression/test_sqrt_ncd.py .......                          [ 
> 57%]
> tests/test_edit/test_damerau_levenshtein.py ............................ [ 
> 64%]
> ....                                                                     [ 
> 65%]
> tests/test_edit/test_editex.py ............                              [ 
> 68%]
> tests/test_edit/test_gotoh.py .....                                      [ 
> 69%]
> tests/test_edit/test_hamming.py ......                                   [ 
> 70%]
> tests/test_edit/test_jaro.py ........                                    [ 
> 72%]
> tests/test_edit/test_jaro_winkler.py .......                             [ 
> 74%]
> tests/test_edit/test_levenshtein.py ......                               [ 
> 75%]
> tests/test_edit/test_matrix.py ..........                                [ 
> 77%]
> tests/test_edit/test_mlipns.py ...........                               [ 
> 80%]
> tests/test_edit/test_needleman_wunsch.py .....                           [ 
> 81%]
> tests/test_edit/test_smith_waterman.py .....                             [ 
> 82%]
> tests/test_edit/test_strcmp95.py ....                                    [ 
> 83%]
> tests/test_phonetic/test_editex.py ..............................        [ 
> 90%]
> tests/test_sequence/test_lcsseq.py ...........                           [ 
> 93%]
> tests/test_sequence/test_lcsstr.py ..........                            [ 
> 95%]
> tests/test_token/test_bag.py ....                                        [ 
> 96%]
> tests/test_token/test_cosine.py ..                                       [ 
> 96%]
> tests/test_token/test_jaccard.py .....                                   [ 
> 98%]
> tests/test_token/test_monge_elkan.py ..                                  [ 
> 98%]
> tests/test_token/test_overlap.py ...                                     [ 
> 99%]
> tests/test_token/test_sorensen.py ...                                    
> [100%]
> 
> ============================= 430 passed in 40.44s 
> =============================
> dh_auto_test: error: pybuild --test --test-pytest -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/textdistance_4.5.0-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@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 via email to