[Debian-med-packaging] Bug#1154939: python-pepsickle: FTBFS & Failing autopkgtests: dependencies do not build against non-default interpreters
Stuart Prescott
stuart at debian.org
Mon Nov 23 04:12:55 GMT 2026
Package: python-pepsickle
Version: 0.2.2-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: stuart at debian.org
Dear Maintainer,
python-pepsickle tries to build and test against all supported interpreters
(using python3-all); normally this is the correct thing to do.
However, one of python-pepsickle's dependencies only builds against the
default interpreter (python3-torch), meaning that all tests fail when
invoked by the non-default interpreter (currently Python 3.15).
That leaves python-pepsickle currently FTBFS and its autopkgtests fail.
//---
test___init__ (unittest.loader._FailedTest.test___init__) ... ERROR
======================================================================
ERROR: test___init__ (unittest.loader._FailedTest.test___init__)
----------------------------------------------------------------------
ImportError: Failed to import test module: test___init__
Traceback (most recent call last):
File "/usr/lib/python3.15/unittest/loader.py", line 433, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.15/unittest/loader.py", line 374, in _get_module_from_name
__import__(name)
~~~~~~~~~~^^^^^^
File "/build/python-pepsickle-d3arRd/python-pepsickle-0.2.2/tests/test___init__.py", line 9, in <module>
from pepsickle import *
File "/build/python-pepsickle-d3arRd/python-pepsickle-0.2.2/.pybuild/cpython3_3.15_pepsickle/build/pepsickle/__init__.py", line 9, in <module>
from pepsickle.model_functions import *
File "/build/python-pepsickle-d3arRd/python-pepsickle-0.2.2/.pybuild/cpython3_3.15_pepsickle/build/pepsickle/model_functions.py", line 19, in <module>
import torch
File "/usr/lib/python3/dist-packages/torch/__init__.py", line 1420, in <module>
raise ImportError(
...<14 lines>...
) from None
ImportError: Failed to load PyTorch C extensions:
It appears that PyTorch has loaded the `torch/_C` folder
of the PyTorch repository rather than the C extensions which
are expected in the `torch._C` namespace. This can occur when
using the `install` workflow. e.g.
$ python -m pip install --no-build-isolation -v . && python -c "import torch"
This error can generally be solved using the `develop` workflow
$ python -m pip install --no-build-isolation -v -e . && python -c "import torch" # This should succeed
or by running Python from a different directory.
----------------------------------------------------------------------
Ran 1 test in 0.000s
---//
This can either be fixed by working with the pytorch maintainers to
build for all supported Python interpreters, or by reducing this package
to only test against the default iterpreter. Changing the build-dep and
test dep (in d/t/control) to "python3" instead of "python3-all" will do
the latter.
regards
Stuart
More information about the Debian-med-packaging
mailing list