Package: python-narwhals
Version: 2.26.0-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: [email protected]
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