Article View: linux.debian.bugs.rc
Article #4028Bug#1155088: python-narwhals: FTBFS and failing autopkgtests: tries to use modules not available for non-default Python interpre...
From: Stuart Prescott
Date: Tue, 24 Nov 2026 00:40
Date: Tue, 24 Nov 2026 00:40
98 lines
6972 bytes
6972 bytes
Package: python-narwhals
Version: 2.26.0-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: stuart@debian.org
Dear Maintainer,
python-narwhals attempts to build and test against all supported Python
interpreters (py3versions -s; python3-all). This is normally the best
thing to do to help with Python interpreter transitions.
However, python-narwhals makes unconditional use of pyarrow, which only
builds for the default interpreter. The result is that the tests that
use pyarrow fail for the non-default interpreters (currently Python
3.15). This is seen as a FTBFS and autopkgtest failures.
//---
tests/expr_and_series/list/contains_test.py Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 43, in run_old_style_hookwrapper
teardown.send(result)
File "/usr/lib/python3/dist-packages/_hypothesis_pytestplugin.py", line 341, in pytest_runtest_makereport
report = (yield).get_result()
File "/usr/lib/python3/dist-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File "/usr/lib/python3/dist-packages/_pytest/skipping.py", line 280, in pytest_runtest_makereport
rep = yield
File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 385, in pytest_runtest_makereport
return TestReport.from_item_and_call(item, call)
File "/usr/lib/python3/dist-packages/_pytest/reports.py", line 438, in from_item_and_call
longrepr = _format_failed_longrepr(item, call, excinfo)
File "/usr/lib/python3/dist-packages/_pytest/reports.py", line 263, in _format_failed_longrepr
longrepr = item.repr_failure(excinfo)
File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1749, in repr_failure
return self._repr_failure_py(excinfo, style=style)
File "/usr/lib/python3/dist-packages/_pytest/nodes.py", line 448, in _repr_failure_py
return excinfo.getrepr(
File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 774, in getrepr
return fmt.repr_excinfo(self)
File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 1224, in repr_excinfo
reprtraceback = self.repr_traceback(excinfo_)
File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 1150, in repr_traceback
self.repr_traceback_entry(entry, excinfo if last == entry else None)
File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 1092, in repr_traceback_entry
s = self.get_source(
File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 983, in get_source
lines.extend(self.get_exconly(excinfo, indent=indent, markall=True))
File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 1032, in get_exconly
exlines = excinfo.exconly(tryshort=True).split("\n")
File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 674, in exconly
lines = format_exception_only(self.value)
File "/usr/lib/python3.15/traceback.py", line 221, in format_exception_only
te = TracebackException(type(value), value, None, compact=True)
File "/usr/lib/python3.15/traceback.py", line 1259, in __init__
cause = TracebackException(
File "/usr/lib/python3.15/traceback.py", line 1206, in __init__
elif abi_tag := _find_incompatible_extension_module(module_name):
File "/usr/lib/python3.15/traceback.py", line 2082, in _find_incompatible_extension_module
traversable = importlib.resources.files(parent)
File "/usr/lib/python3.15/importlib/resources/_common.py", line 22, in files
return from_package(resolve(anchor))
File "/usr/lib/python3.15/functools.py", line 1003, in wrapper
return dispatch(args[0].__class__)(*args, **kw)
File "/usr/lib/python3.15/importlib/resources/_common.py", line 48, in _
return importlib.import_module(cand)
File "/usr/lib/python3.15/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1389, in _gcd_import
File "<frozen importlib._bootstrap>", line 1353, in _find_and_load
File "<frozen importlib._bootstrap>", line 1249, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 857, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 751, in exec_module
File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/pyarrow/__init__.py", line 59, in <module>
from pyarrow.lib import (BuildInfo, CppBuildInfo, RuntimeInfo, set_timezone_db_path,
ModuleNotFoundError: No module named 'pyarrow.lib'
---//
There are a few options available:
- work with the pyarrow maintainers to see if it can be built for all
supported interpreters
- change the build-dependency and test-dependency to "python3" instead
of "python3-all"
- adjust the tests to not fail for the specific tests that use pyarrow
on non-default interpreters; given that pyarrow is already marked as
an arch-specific dependency, I'm guessing this might be feasible.
regards
Stuart
Technical Details
Message-ID:
<O2MJH-dMmc-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Stuart Prescott <stuart@debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1155088: python-narwhals: FTBFS and failing autopkgtests: tries to use modules not available for non-default Python interpreter Date: Tue, 24 Nov 2026 01:40:01 +0100 Message-ID: <O2MJH-dMmc-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Tue Nov 24 00:33:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.9 Reply-To: Stuart Prescott <stuart@debian.org>, 1155088@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: stuart@debian.org, team+python@tracker.debian.org X-Debian-Pr-Message: report 1155088 X-Debian-Pr-Package: python-narwhals X-Debian-Pr-Keywords: ftbfs X-Debian-Pr-Source: python-narwhals Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: reportbug 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/839398 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 98 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 24 Nov 2026 11:29:58 +1100 X-Original-Message-ID: <179548019824.2040919.4209415604092445806.reportbug@trochilus.nanonanonano.net>