Article View: linux.debian.bugs.rc
Article #1815Bug#1151828: marked as done (python-svglib: FTBFS: E ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/...
From: Debian Bug Tracking System
Date: Tue, 27 Oct 2026 10:40
Date: Tue, 27 Oct 2026 10:40
226 lines
12528 bytes
12528 bytes
This is a multi-part message in MIME format...
------------=_1793097061-2630545-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your message dated Tue, 27 Oct 2026 10:29:34 +0000
with message-id <auB9DtFw5WeZHhIr@riva.ucam.org>
and subject line Re: Bug#1151828: python-svglib: FTBFS: E ImportError: ca=
nnot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/=
__init__.py)
has caused the Debian Bug report #1151828,
regarding python-svglib: FTBFS: E ImportError: cannot import name '_imagi=
ng' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--=20
1151828: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1151828
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
------------=_1793097061-2630545-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by bugs.debian.org; 23 Oct 2026 16:45:01 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-120.4 required=4.0 tests=BAYES_00,
BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,
RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,USER_IN_DKIM_WELCOMELIST,
X_DEBBUGS_CC autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 23; hammy, 150; neutral, 125; spammy,
0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--pkgbuilddir,
0.000-+--PKGBUILDDIR, 0.000-+--HTo:N*Debian, 0.000-+--forky
Return-path: <sanvila@debian.org>
Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:60580)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <sanvila@debian.org>)
id 1xKIO6-00EuGT-0x
for submit@bugs.debian.org;
Fri, 23 Oct 2026 16:45:01 +0000
Received: via submission
from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=paradis.debian.org,EMAIL=hostmaster@paradis.debian.org (verified)
by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <sanvila@debian.org>)
id 1xKIO4-004QPL-01
for submit@bugs.debian.org;
Fri, 23 Oct 2026 16:45:00 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
s=smtpauto.paradis; h=Date:Message-Id:Subject:To:From:Reply-To:Cc:
MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
Content-Description:In-Reply-To:References;
bh=3gmRWAGPmtTYc6EdfzSk3eOcZC7pnWZBNPkfltANje8=; b=aKH+3coN99PjHNUCNptW1f0qX0
jcHn5t9WkKl10B4F7PegKdUDRLV0GO/exdWKaQeTgvpz61HqJxXImHFcJnIqwMyoKCPpTFBolBz+T
rqdcGfv5D2LpwIXQeWM4hLSMUCSrsjLDqfcixnKiz3jegiuroSdJo5bad3FFzIpkbG0WYrw1wk9y5
EcQIKHStzC5eqthe2c+kWnOLqgCMo6+Ll1lj/ASGYoIHpCaLkYydPGyeBOUfNz/1i/vzcI8VMxxyd
7unHAFcwE36I+AuUdrxZudNBdNKWl5Q5lapTSxEg3F5bn9+/+0qcsaP9cntU5da0oHnRXjTISZ4w7
3wnH83eQ==;
Received: from sanvila by paradis.debian.org with local (Exim 4.96)
(envelope-from <sanvila@debian.org>)
id 1xKIO2-0052zc-1G
for submit@bugs.debian.org;
Fri, 23 Oct 2026 16:44:58 +0000
From: Santiago Vila <sanvila@debian.org>
To: Debian BTS <submit@bugs.debian.org>
Subject: python-svglib: FTBFS: E ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)
X-Debbugs-Cc: sanvila@debian.org
Message-Id: <E1xKIO2-0052zc-1G@paradis.debian.org>
Date: Fri, 23 Oct 2026 16:44:58 +0000
Delivered-To: submit@bugs.debian.org
Package: src:python-svglib
Version: 1.5.1+dfsg-1
Severity: serious
Tags: ftbfs forky sid
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/202610/
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:python-svglib, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
from reportlab.lib.utils import bytestr, isUnicode, char2int, isStr, isBytes
/usr/lib/python3/dist-packages/reportlab/lib/utils.py:15: in <module>
from PIL import Image
/usr/lib/python3/dist-packages/PIL/Image.py:94: in <module>
from . import _imaging as core
E ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)
=========================== short test summary info ============================
ERROR tests/test_basic.py
ERROR tests/test_fonts.py
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 2 errors in 0.32s ===============================
E: pybuild pybuild:485: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.15_python-svglib/build; python3.15 -m pytest tests
I: pybuild base:383: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-svglib/build; python3.14 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
collected 102 items
tests/test_basic.py .................................................... [ 50%]
.......... [ 60%]
tests/test_fonts.py ............s.....................s..... [100%]
======================== 100 passed, 2 skipped in 0.24s ========================
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:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
------------=_1793097061-2630545-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 1151828-close) by bugs.debian.org; 27 Oct 2026 10:29:37 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-109.2 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
HAS_BUG_NUMBER,SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST
autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 14; hammy, 150; neutral, 24; spammy,
0. spammytokens:
hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <cjwatson@debian.org>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:60950)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <cjwatson@debian.org>)
id 1xLeR0-00B28e-17
for 1151828-close@bugs.debian.org;
Tue, 27 Oct 2026 10:29:37 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version:
References:Message-ID:Subject:To:From:Date:Reply-To:Cc:
Content-Transfer-Encoding:Content-ID:Content-Description;
bh=NPrlmf88cMKXwdiurf6C3fJxnHA/9tnXJW3TueS/lkM=; b=suI3VpGc1zOdGJ57LWj5wqKCUr
/jjLrL996lKdErkDJHrkZNt8jLawHe3m4BQm2q+qkk8BQiYtyNEHD8t454JmVB9tgU8igsTlFwZFQ
j0nzOHrZ5CNgPbWfgBsTbHweDbyBAXsFK8Z+XMuM7RM0bqEpC3Pa9FZHgAJTdtISAwRUQHnzO/rE6
9QFk73GwvTzIXlmhMzwRKMYrckEEofsRkR7A+tpWMJPpUAsXocp0cnOpY+mK/XSxgQNRTRtWbuzYB
Adk7jLAheMBBF2rmujxsc3J4pUDJzPjancP4PBjz3h7/bdD14HWR5kZAX2eA9MxOXmhBRlXnLuR1y
IYm/LTrw==;
Received: from authenticated-user
by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <cjwatson@debian.org>)
id 1xLeQy-001OOy-0i;
Tue, 27 Oct 2026 10:29:36 +0000
Received: from ns1.rosewood.vpn.ucam.org ([172.20.153.2] helo=riva.ucam.org)
by riva.rosewood.vpn.ucam.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
(Exim 4.98.2)
(envelope-from <cjwatson@debian.org>)
id 1xLeQx-000000077iD-2LNh;
Tue, 27 Oct 2026 10:29:35 +0000
Date: Tue, 27 Oct 2026 10:29:34 +0000
From: Colin Watson <cjwatson@debian.org>
To: Santiago Vila <sanvila@debian.org>, 1151828-close@bugs.debian.org
Subject: Re: Bug#1151828: python-svglib: FTBFS: E ImportError: cannot
import name '_imaging' from 'PIL'
(/usr/lib/python3/dist-packages/PIL/__init__.py)
Message-ID: <auB9DtFw5WeZHhIr@riva.ucam.org>
References: <E1xKIO2-0052zc-1G@paradis.debian.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
In-Reply-To: <E1xKIO2-0052zc-1G@paradis.debian.org>
X-Debian-User: cjwatson
On Fri, Oct 23, 2026 at 04:44:58PM +0000, Santiago Vila wrote:
> from reportlab.lib.utils import bytestr, isUnicode, char2int, isStr, isBytes
>/usr/lib/python3/dist-packages/reportlab/lib/utils.py:15: in <module>
> from PIL import Image
>/usr/lib/python3/dist-packages/PIL/Image.py:94: in <module>
> from . import _imaging as core
>E ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)
This was a temporary problem, fixed by rebuilding pillow against Python
3.15. I've confirmed that python-svglib builds again now.
Thanks,
--
Colin Watson (he/him) [cjwatson@debian.org]
------------=_1793097061-2630545-0--
Technical Details
Message-ID:
<NSMKZ-8dHw-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<NSMKZ-8dHw-3@gated-at.bofh.it> <NRqCS-7qF3-39@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: "Debian Bug Tracking System" <owner@bugs.debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1151828: marked as done (python-svglib: FTBFS: E ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)) Date: Tue, 27 Oct 2026 11:40:01 +0100 Message-ID: <NSMKZ-8dHw-1@gated-at.bofh.it> References: <NSMKZ-8dHw-3@gated-at.bofh.it> <NRqCS-7qF3-39@gated-at.bofh.it> X-Original-To: Colin Watson <cjwatson@debian.org> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Tue Oct 27 10:31:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -2 MIME-Version: 1.0 X-Mailer: MIME-tools 5.510 (Entity 5.510) X-Debian-Pr-Message: closed 1151828 X-Debian-Pr-Package: src:python-svglib X-Debian-Pr-Keywords: forky ftbfs sid X-Debian-Pr-Source: python-svglib Reply-To: 1151828@bugs.debian.org Content-Type: multipart/mixed; boundary="----------=_1793097061-2630545-0" X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/836265 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 226 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 27 Oct 2026 10:31:01 +0000 X-Original-Message-ID: <handler.1151828.D1151828.17930969772629848.ackdone@bugs.debian.org> X-Original-References: <auB9DtFw5WeZHhIr@riva.ucam.org> <E1xKIO2-0052zc-1G@paradis.debian.org>