Article View: linux.debian.bugs.rc
Article #3928Bug#1154939: python-pepsickle: FTBFS & Failing autopkgtests: dependencies do not build against non-default interpreters
From: Stuart Prescott
Date: Mon, 23 Nov 2026 04:20
Date: Mon, 23 Nov 2026 04:20
66 lines
4579 bytes
4579 bytes
Package: python-pepsickle
Version: 0.2.2-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: stuart@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
Technical Details
Message-ID:
<O2tH3-dBcq-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomod From: Stuart Prescott <stuart@debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1154939: python-pepsickle: FTBFS & Failing autopkgtests: dependencies do not build against non-default interpreters Date: Mon, 23 Nov 2026 05:20:01 +0100 Message-ID: <O2tH3-dBcq-1@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Mon Nov 23 04:15:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.9 Reply-To: Stuart Prescott <stuart@debian.org>, 1154939@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: stuart@debian.org, debian-med-packaging@lists.alioth.debian.org X-Debian-Pr-Message: report 1154939 X-Debian-Pr-Package: python-pepsickle X-Debian-Pr-Keywords: ftbfs X-Debian-Pr-Source: python-pepsickle 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/839276 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 66 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 23 Nov 2026 15:12:55 +1100 X-Original-Message-ID: <179540717562.1747417.4788592548075631268.reportbug@trochilus.nanonanonano.net>