#1123332 rdflib-sqlalchemy: FTBFS: dh_auto_test: error: pybuild --test --test-tox -i python{version} -p "3.14 3.13" returned exit code 13

#1123332#5
Date:
2025-12-16 19:50:02 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202512/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rdflib-sqlalchemy, so that this is still
visible in the BTS web page for this package.

Thanks.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: BSD License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************


[... snipped ...]


        License :: OSI Approved :: BSD License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib/rdflib_sqlalchemy
copying rdflib_sqlalchemy/store.py -> build/lib/rdflib_sqlalchemy
copying rdflib_sqlalchemy/sql.py -> build/lib/rdflib_sqlalchemy
copying rdflib_sqlalchemy/statistics.py -> build/lib/rdflib_sqlalchemy
copying rdflib_sqlalchemy/types.py -> build/lib/rdflib_sqlalchemy
copying rdflib_sqlalchemy/tables.py -> build/lib/rdflib_sqlalchemy
copying rdflib_sqlalchemy/constants.py -> build/lib/rdflib_sqlalchemy
copying rdflib_sqlalchemy/termutils.py -> build/lib/rdflib_sqlalchemy
copying rdflib_sqlalchemy/__init__.py -> build/lib/rdflib_sqlalchemy
copying rdflib_sqlalchemy/base.py -> build/lib/rdflib_sqlalchemy
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/rdflib_sqlalchemy
copying build/lib/rdflib_sqlalchemy/store.py -> build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy
copying build/lib/rdflib_sqlalchemy/sql.py -> build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy
copying build/lib/rdflib_sqlalchemy/statistics.py -> build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy
copying build/lib/rdflib_sqlalchemy/types.py -> build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy
copying build/lib/rdflib_sqlalchemy/tables.py -> build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy
copying build/lib/rdflib_sqlalchemy/constants.py -> build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy
copying build/lib/rdflib_sqlalchemy/termutils.py -> build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy
copying build/lib/rdflib_sqlalchemy/__init__.py -> build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy
copying build/lib/rdflib_sqlalchemy/base.py -> build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy
running install_egg_info
running egg_info
writing rdflib_sqlalchemy.egg-info/PKG-INFO
writing dependency_links to rdflib_sqlalchemy.egg-info/dependency_links.txt
writing entry points to rdflib_sqlalchemy.egg-info/entry_points.txt
writing requirements to rdflib_sqlalchemy.egg-info/requires.txt
writing top-level names to rdflib_sqlalchemy.egg-info/top_level.txt
reading manifest file 'rdflib_sqlalchemy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
adding license file 'LICENSE.txt'
writing manifest file 'rdflib_sqlalchemy.egg-info/SOURCES.txt'
Copying rdflib_sqlalchemy.egg-info to build/bdist.linux-x86_64/wheel/./rdflib_sqlalchemy-0.5.5.dev0.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/rdflib_sqlalchemy-0.5.5.dev0.dist-info/WHEEL
creating 'dist/rdflib_sqlalchemy-0.5.5.dev0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'rdflib_sqlalchemy/__init__.py'
adding 'rdflib_sqlalchemy/base.py'
adding 'rdflib_sqlalchemy/constants.py'
adding 'rdflib_sqlalchemy/sql.py'
adding 'rdflib_sqlalchemy/statistics.py'
adding 'rdflib_sqlalchemy/store.py'
adding 'rdflib_sqlalchemy/tables.py'
adding 'rdflib_sqlalchemy/termutils.py'
adding 'rdflib_sqlalchemy/types.py'
adding 'rdflib_sqlalchemy-0.5.5.dev0.dist-info/licenses/LICENSE.txt'
adding 'rdflib_sqlalchemy-0.5.5.dev0.dist-info/METADATA'
adding 'rdflib_sqlalchemy-0.5.5.dev0.dist-info/WHEEL'
adding 'rdflib_sqlalchemy-0.5.5.dev0.dist-info/entry_points.txt'
adding 'rdflib_sqlalchemy-0.5.5.dev0.dist-info/top_level.txt'
adding 'rdflib_sqlalchemy-0.5.5.dev0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rdflib_sqlalchemy/build; tox -c /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py313 -x testenv.passenv+=_PYTHON_HOST_PLATFORM --installpkg /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rdflib_sqlalchemy/rdflib_sqlalchemy-0.5.5.dev0-py3-none-any.whl
py313: install_deps .pybuild/cpython3_3.13_rdflib_sqlalchemy/build> python -I -m pip install mysqlclient psycopg2 'pytest-cov>=2.5.1' 'pytest>=3.4.0'
py313: install_package_deps .pybuild/cpython3_3.13_rdflib_sqlalchemy/build> python -I -m pip install 'SQLAlchemy>=2.0.23' 'alembic>=0.8.8' 'rdflib<8,>=6'
py313: install_package .pybuild/cpython3_3.13_rdflib_sqlalchemy/build> python -I -m pip install --force-reinstall --no-deps /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rdflib_sqlalchemy/rdflib_sqlalchemy-0.5.5.dev0-py3-none-any.whl
py313: commands[0] .pybuild/cpython3_3.13_rdflib_sqlalchemy/build> .tox/py313/bin/python setup.py clean --all
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: BSD License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running clean
removing 'build/lib' (and everything under it)
removing 'build/bdist.linux-x86_64' (and everything under it)
'build/scripts-3.13' does not exist -- can't clean it
removing 'build'
py313: commands[1] .pybuild/cpython3_3.13_rdflib_sqlalchemy/build> .tox/py313/bin/python -m pytest --cov=rdflib_sqlalchemy
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
cachedir: .tox/py313/.pytest_cache
rootdir: /<<PKGBUILDDIR>>
configfile: pytest.ini
testpaths: test
plugins: cov-5.0.0, typeguard-4.4.4
collected 16 items / 4 skipped

test/test_aggregate_graphs.py FF                                         [ 12%]
test/test_sqlalchemy.py ........F..                                      [ 81%]
test/test_store_performance.py ..                                        [ 93%]
test/test_type_to_term_combination.py .                                  [100%]

=================================== FAILURES ===================================
______________________ GraphAggregates1.testAggregateRaw _______________________

self = <test.test_aggregate_graphs.GraphAggregates1 testMethod=testAggregateRaw>

    def setUp(self):
        memStore = plugin.get('SQLAlchemy', Store)(
            identifier="rdflib_test", configuration=self.dburi)
        self.graph1 = Graph(memStore)
        self.graph2 = Graph(memStore)
        self.graph3 = Graph(memStore)
    
        for n3Str, graph in [(testGraph1N3, self.graph1),
                             (testGraph2N3, self.graph2),
                             (testGraph3N3, self.graph3)]:

test/test_aggregate_graphs.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/rdflib/graph.py:1647: in parse
    parser.parse(source, self, **args)
/usr/lib/python3/dist-packages/rdflib/plugins/parsers/notation3.py:2062: in parse
    conj_graph = Dataset(store=graph.store)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Graph identifier=N064e0bd27ff741f4b51db8cc53b4d85a (<class 'rdflib.graph.Dataset'>)>
store = <Partitioned SQL N3 Store: 0 contexts, 0 classification assertions, 0 quoted statements, 0 property/value assertions, and 0 other assertions>
default_union = False, default_graph_base = None

    def __init__(
        self,
        store: Union[Store, str] = "default",
        default_union: bool = False,
        default_graph_base: Optional[str] = None,
    ):
        super(Dataset, self).__init__(store=store, identifier=None)
    
        if not self.store.graph_aware:
E           Exception: Dataset must be backed by a graph-aware store!

/usr/lib/python3/dist-packages/rdflib/graph.py:2654: Exception
______________________ GraphAggregates3.testDefaultGraph _______________________

self = <test.test_aggregate_graphs.GraphAggregates3 testMethod=testDefaultGraph>

    def setUp(self):
        memStore = plugin.get('SQLAlchemy', Store)(
            identifier="rdflib_test", configuration=Literal("sqlite://"))
        self.graph1 = Graph(memStore, URIRef("graph1"))
        self.graph2 = Graph(memStore, URIRef("graph2"))
        self.graph3 = Graph(memStore, URIRef("graph3"))
    
        for n3Str, graph in [(testGraph1N3, self.graph1),
                             (testGraph2N3, self.graph2),
                             (testGraph3N3, self.graph3)]:

test/test_aggregate_graphs.py:119:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/rdflib/graph.py:1647: in parse
    parser.parse(source, self, **args)
/usr/lib/python3/dist-packages/rdflib/plugins/parsers/notation3.py:2062: in parse
    conj_graph = Dataset(store=graph.store)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Graph identifier=N9d40afaa389a4141bd29e6bcd25d9ffb (<class 'rdflib.graph.Dataset'>)>
store = <Partitioned SQL N3 Store: 0 contexts, 0 classification assertions, 0 quoted statements, 0 property/value assertions, and 0 other assertions>
default_union = False, default_graph_base = None

    def __init__(
        self,
        store: Union[Store, str] = "default",
        default_union: bool = False,
        default_graph_base: Optional[str] = None,
    ):
        super(Dataset, self).__init__(store=store, identifier=None)
    
        if not self.store.graph_aware:
E           Exception: Dataset must be backed by a graph-aware store!

/usr/lib/python3/dist-packages/rdflib/graph.py:2654: Exception
_____________________ SQLATestCase.test_quoted_statements ______________________

self = <test.test_sqlalchemy.SQLATestCase testMethod=test_quoted_statements>

    def test_quoted_statements(self):
        '''
        Regression test for RDFLib/rdflib-sqlalchemy#92
        '''
        cg = ConjunctiveGraph('SQLAlchemy')
        cg.open('sqlite://', create=True)
        testN3 = """
        @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
        @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
        @prefix : <http://test/> .
        {:a :b :c;a :foo} => {:a :d :c,?y}.
        _:foo a rdfs:Class.
        :a :d :c."""

test/test_sqlalchemy.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/rdflib/graph.py:2481: in parse
    context.parse(source, publicID=publicID, format=format, **args)
/usr/lib/python3/dist-packages/rdflib/graph.py:1647: in parse
    parser.parse(source, self, **args)
/usr/lib/python3/dist-packages/rdflib/plugins/parsers/notation3.py:2062: in parse
    conj_graph = Dataset(store=graph.store)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Graph identifier=N066aa692194d4be39b4e7d036470682b (<class 'rdflib.graph.Dataset'>)>
store = <Partitioned SQL N3 Store: 0 contexts, 0 classification assertions, 0 quoted statements, 0 property/value assertions, and 0 other assertions>
default_union = False, default_graph_base = None

    def __init__(
        self,
        store: Union[Store, str] = "default",
        default_union: bool = False,
        default_graph_base: Optional[str] = None,
    ):
        super(Dataset, self).__init__(store=store, identifier=None)
    
        if not self.store.graph_aware:
E           Exception: Dataset must be backed by a graph-aware store!

/usr/lib/python3/dist-packages/rdflib/graph.py:2654: Exception
---------- coverage: platform linux, python 3.13.11-final-0 ---------- Name Stmts Miss Cover ----------------------------------------------------- rdflib_sqlalchemy/__init__.py 16 1 94% rdflib_sqlalchemy/base.py 88 18 80% rdflib_sqlalchemy/constants.py 22 0 100% rdflib_sqlalchemy/sql.py 49 16 67% rdflib_sqlalchemy/statistics.py 22 17 23% rdflib_sqlalchemy/store.py 416 82 80% rdflib_sqlalchemy/tables.py 16 0 100% rdflib_sqlalchemy/termutils.py 112 45 60% rdflib_sqlalchemy/types.py 13 2 85% ----------------------------------------------------- TOTAL 754 181 76% =========================== short test summary info ============================ FAILED test/test_aggregate_graphs.py::GraphAggregates1::testAggregateRaw - Exception: Dataset must be backed by a graph-aware store! FAILED test/test_aggregate_graphs.py::GraphAggregates3::testDefaultGraph - Exception: Dataset must be backed by a graph-aware store! FAILED test/test_sqlalchemy.py::SQLATestCase::test_quoted_statements - Exception: Dataset must be backed by a graph-aware store! =================== 3 failed, 13 passed, 4 skipped in 11.15s =================== py313: exit 1 (11.54 seconds) /<<PKGBUILDDIR>>> .tox/py313/bin/python -m pytest --cov=rdflib_sqlalchemy pid=214 py313: FAIL code 1 (12.86=setup[1.20]+cmd[0.12,11.54] seconds) evaluation failed :( (12.92 seconds) E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rdflib_sqlalchemy/build; tox -c /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py313 -x testenv.passenv+=_PYTHON_HOST_PLATFORM --installpkg /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rdflib_sqlalchemy/rdflib_sqlalchemy-0.5.5.dev0-py3-none-any.whl dh_auto_test: error: pybuild --test --test-tox -i python{version} -p "3.14 3.13" returned exit code 13 make: *** [debian/rules:6: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------