#1154459 alembic: FTBFS: INTERNALERROR> Traceback (most recent call last):

#1154459#5
Date:
2026-11-19 12:43:09 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/202611/

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:alembic, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
tests/test_script_production.py::ScriptNamingTest::test_generates_a_date PASSED [ 88%]
tests/test_script_production.py::ScriptNamingTest::test_no_zoneinfo_module PASSED [ 88%]
tests/test_script_production.py::ScriptNamingTest::test_tz_cant_locate PASSED [ 88%]
tests/test_script_production.py::TemplateArgsTest::test_args_propagate PASSED [ 88%]
tests/test_script_production.py::TemplateArgsTest::test_bad_render
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>                          ~~~~^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 384, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 512, in __call__
INTERNALERROR>     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR>            ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 167, in _multicall
INTERNALERROR>     raise exception
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR>     teardown.throw(exception)
INTERNALERROR>     ~~~~~~~~~~~~~~^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/terminal.py", line 708, in pytest_runtestloop
INTERNALERROR>     result = yield
INTERNALERROR>              ^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 121, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 408, in pytest_runtestloop
INTERNALERROR>     item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 512, in __call__
INTERNALERROR>     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR>            ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 167, in _multicall
INTERNALERROR>     raise exception
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR>     teardown.throw(exception)
INTERNALERROR>     ~~~~~~~~~~~~~~^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/assertion/__init__.py", line 205, in pytest_runtest_protocol
INTERNALERROR>     return (yield)
INTERNALERROR>             ^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR>     teardown.throw(exception)
INTERNALERROR>     ~~~~~~~~~~~~~~^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/unittest.py", line 612, in pytest_runtest_protocol
INTERNALERROR>     return (yield)
INTERNALERROR>             ^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR>     teardown.throw(exception)
INTERNALERROR>     ~~~~~~~~~~~~~~^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/faulthandler.py", line 102, in pytest_runtest_protocol
INTERNALERROR>     return (yield)
INTERNALERROR>             ^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 121, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 118, in pytest_runtest_protocol
INTERNALERROR>     runtestprotocol(item, nextitem=nextitem)
INTERNALERROR>     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 139, in runtestprotocol
INTERNALERROR>     reports.append(call_and_report(item, "call", log))
INTERNALERROR>                    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 254, in call_and_report
INTERNALERROR>     report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
INTERNALERROR>                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 512, in __call__
INTERNALERROR>     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR>            ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 167, in _multicall
INTERNALERROR>     raise exception
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR>     teardown.throw(exception)
INTERNALERROR>     ~~~~~~~~~~~~~~^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/tmpdir.py", line 347, in pytest_runtest_makereport
INTERNALERROR>     rep = yield
INTERNALERROR>           ^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR>     teardown.throw(exception)
INTERNALERROR>     ~~~~~~~~~~~~~~^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/skipping.py", line 280, in pytest_runtest_makereport
INTERNALERROR>     rep = yield
INTERNALERROR>           ^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 121, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 385, in pytest_runtest_makereport
INTERNALERROR>     return TestReport.from_item_and_call(item, call)
INTERNALERROR>            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/reports.py", line 438, in from_item_and_call
INTERNALERROR>     longrepr = _format_failed_longrepr(item, call, excinfo)
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/reports.py", line 263, in _format_failed_longrepr
INTERNALERROR>     longrepr = item.repr_failure(excinfo)
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1749, in repr_failure
INTERNALERROR>     return self._repr_failure_py(excinfo, style=style)
INTERNALERROR>            ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/nodes.py", line 448, in _repr_failure_py
INTERNALERROR>     return excinfo.getrepr(
INTERNALERROR>            ~~~~~~~~~~~~~~~^
INTERNALERROR>         funcargs=True,
INTERNALERROR>         ^^^^^^^^^^^^^^
INTERNALERROR>     ...<5 lines>...
INTERNALERROR>         truncate_args=truncate_args,
INTERNALERROR>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>     )
INTERNALERROR>     ^
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 755, in getrepr
INTERNALERROR>     format_exception(
INTERNALERROR>     ~~~~~~~~~~~~~~~~^
INTERNALERROR>         self.type,
INTERNALERROR>         ^^^^^^^^^^
INTERNALERROR>         self.value,
INTERNALERROR>         ^^^^^^^^^^^
INTERNALERROR>         self.traceback[0]._rawentry if self.traceback else None,
INTERNALERROR>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>     )
INTERNALERROR>     ^
INTERNALERROR>   File "/usr/lib/python3.15/traceback.py", line 199, in format_exception
INTERNALERROR>     te = TracebackException(type(value), value, tb, limit=limit, compact=True)
INTERNALERROR>   File "/usr/lib/python3.15/traceback.py", line 1147, in __init__
INTERNALERROR>     self.stack = StackSummary._extract_from_extended_frame_gen(
INTERNALERROR>                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
INTERNALERROR>         _walk_tb_with_full_positions(exc_traceback),
INTERNALERROR>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>         limit=limit, lookup_lines=lookup_lines,
INTERNALERROR>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>         capture_locals=capture_locals)
INTERNALERROR>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3.15/traceback.py", line 533, in _extract_from_extended_frame_gen
INTERNALERROR>     linecache.lazycache(filename, f.f_globals)
INTERNALERROR>     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "<frozen linecache>", line 263, in lazycache
INTERNALERROR>   File "<frozen linecache>", line 284, in _make_lazycache_entry
INTERNALERROR>   File "<frozen linecache>", line 311, in _bless_my_loader
INTERNALERROR> DeprecationWarning: Module globals is missing a __spec__.loader

====================== 1546 passed, 107 skipped in 8.82s =======================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=3: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.15_alembic/build; python3.15 -m pytest tests
I: pybuild pybuild:390: cp /<<PKGBUILDDIR>>/setup.cfg /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_alembic/build
I: pybuild base:383: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_alembic/build; python3.14 -m pytest tests
=========================== sqlalchemy installation ============================
SQLAlchemy 2.0.52 (user site loaded)
Path: /usr/lib/python3/dist-packages/sqlalchemy/__init__.py
compiled extension not enabled; cannot import name 'collections' from 'sqlalchemy.cyextension' (/usr/lib/python3/dist-packages/sqlalchemy/cyextension/__init__.py)
============================= test session starts ==============================
[...]
SKIPPED [1] ../../../../../../usr/lib/python3/dist-packages/sqlalchemy/testing/config.py:433: 'tests/test_suite.py::AutogenerateFKOptionsTest_sqlite+pysqlite_3_54_1::test_remove_initially_immediate_plus_deferrable (call)' : not postgresql and not oracle
SKIPPED [1] ../../../../../../usr/lib/python3/dist-packages/sqlalchemy/testing/config.py:433: 'tests/test_suite.py::AutogenerateForeignKeysTest_sqlite+pysqlite_3_54_1::test_casing_convention_changed_so_put_drops_first (call)' : custom function
SKIPPED [1] ../../../../../../usr/lib/python3/dist-packages/sqlalchemy/testing/config.py:433: 'tests/test_suite.py::AutoincrementTest_sqlite+pysqlite_3_54_1::test_alter_column_autoincrement_compositepk_explicit_true (call)' : not supported by database
SKIPPED [1] ../../../../../../usr/lib/python3/dist-packages/sqlalchemy/testing/config.py:433: 'tests/test_suite.py::MigrationTransactionTest_sqlite+pysqlite_3_54_1::test_autocommit_block (call)' : not postgresql and not mysql and not mariadb
SKIPPED [1] ../../../../../../usr/lib/python3/dist-packages/sqlalchemy/testing/config.py:433: 'tests/test_suite.py::MigrationTransactionTest_sqlite+pysqlite_3_54_1::test_autocommit_block_no_transaction (call)' : not postgresql and not mysql and not mariadb
====================== 1742 passed, 132 skipped in 10.05s ======================
I: pybuild pybuild:416: rm /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_alembic/build/setup.cfg ; rm -rf /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_alembic/build/scratch ; rm -f /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_alembic/build/test_schema.db
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.15 3.14" --parallel=2 returned exit code 13
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------