Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #383608

Bug#1094040: pystray: FTBFS: distutils.errors.DistutilsError: Command '['/usr/bin/python3.12', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpx5sdn4zk', '--quiet', 'Pillow']' returned non-zero exit status 1.

From Colin Watson <cjwatson@debian.org>
Newsgroups linux.debian.bugs.rc
Subject Bug#1094040: pystray: FTBFS: distutils.errors.DistutilsError: Command '['/usr/bin/python3.12', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpx5sdn4zk', '--quiet', 'Pillow']' returned non-zero exit status 1.
Date 2025-02-05 17:10 +0100
Message-ID <KcQ8q-eD37-9@gated-at.bofh.it> (permalink)
References <K8yDf-bAgG-79@gated-at.bofh.it> <K8yDf-bAgG-79@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Control: reassign -1 python3-pil
Control: affects -1 src:pystray
Control: tag -1 patch

On Fri, Jan 24, 2025 at 09:30:55PM +0100, Lucas Nussbaum wrote:
> Source: pystray
> Version: 0.19.5-1
> Severity: serious
> Justification: FTBFS
> Tags: trixie sid ftbfs
> User: lucas@debian.org
> Usertags: ftbfs-20250124 ftbfs-trixie
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
[...]
> >   dist.fetch_build_eggs(dist.setup_requires)
> > /usr/bin/python3.12: No module named pip
> > Traceback (most recent call last):
> >   File "/usr/lib/python3/dist-packages/setuptools/installer.py", line 107, in _fetch_build_egg_no_warn
> >     subprocess.check_call(cmd)
> >   File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
> >     raise CalledProcessError(retcode, cmd)
> > subprocess.CalledProcessError: Command '['/usr/bin/python3.12', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpx5sdn4zk', '--quiet', 'Pillow']' returned non-zero exit status 1.

This is because pillow >= 11.1.0-1 is built in such a way that the
Python packaging system doesn't know its package name.  You can spot
this from the fact that it installs files under
/usr/lib/python3/dist-packages/UNKNOWN-0.0.0.egg-info/ (which is bad for
other reasons, since it'd be easy for those to conflict).

This seems to have happened because of a strange addition of "rm -f
pyproject.toml" in debian/rules.  If I remove that, nothing seems to go
wrong, the package has sensible metadata again, and pystray builds.

diff -Nru pillow-11.1.0/debian/rules pillow-11.1.0/debian/rules
--- pillow-11.1.0/debian/rules	2025-01-23 10:30:44.000000000 +0000
+++ pillow-11.1.0/debian/rules	2025-02-05 15:53:51.000000000 +0000
@@ -34,7 +34,6 @@
 build-stamp: $(PY3VERS:%=build-stamp-python%) $(PY3VERS:%=check-stamp-python%)
 	touch $@
 build-stamp-python%:
-	rm -f pyproject.toml
 #	tar xvf debian/lcms-images.tar.gz
 	$(SET_CROSS_ENV) python$* setup.py build
 	touch $@

Thanks,

-- 
Colin Watson (he/him)                              [cjwatson@debian.org]

Back to linux.debian.bugs.rc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1094040: pystray: FTBFS: distutils.errors.DistutilsError: Command '['/usr/bin/python3.12', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpx5sdn4zk', '--quiet', 'Pillow']' returned non-zero exit status 1. Lucas Nussbaum <lucas@debian.org> - 2025-01-24 21:40 +0100
  Bug#1094040: pystray: FTBFS: distutils.errors.DistutilsError: Command '['/usr/bin/python3.12', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpx5sdn4zk', '--quiet', 'Pillow']' returned non-zero exit status 1. Colin Watson <cjwatson@debian.org> - 2025-02-05 17:10 +0100
    Bug#1094040: pystray: FTBFS: distutils.errors.DistutilsError: Command '['/usr/bin/python3.12', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpx5sdn4zk', '--quiet', 'Pillow']' returned non-zero exit status 1. Matthias Klose <doko@debian.org> - 2025-02-06 14:40 +0100
  Processed: Re: Bug#1094040: pystray: FTBFS: distutils.errors.DistutilsError:  Command '['/usr/bin/python3.12', '-m', 'pip', '--disable-pip-version-check',  'wheel', '--no-deps', '-w', '/tmp/tmpx5sdn4zk', '--quiet', 'Pillow']'  returned non-zero exit status 1. "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-02-05 17:10 +0100
  Bug#1094040: marked as done (pystray: FTBFS: distutils.errors.DistutilsError:  Command '['/usr/bin/python3.12', '-m', 'pip', '--disable-pip-version-check',  'wheel', '--no-deps', '-w', '/tmp/tmpx5sdn4zk', '--quiet', 'Pillow']'  returned non-zero exit status 1.) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-02-10 13:10 +0100

csiph-web