Debian Bug report logs - #814571
python-setuptools-whl and python-pip-whl: error when trying to install together

version graph

Package: python-pip; Maintainer for python-pip is Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>; Source for python-pip is src:python-pip (PTS, buildd, popcon).

Reported by: Ralf Treinen <treinen@free.fr>

Date: Sat, 13 Feb 2016 06:30:01 UTC

Severity: serious

Found in version python-pip/8.0.2-6

Fixed in version python-pip/8.0.2-7

Done: Barry Warsaw <barry@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>, Matthias Klose <doko@debian.org>:
Bug#814571; Package python-pip-whl,python-setuptools-whl. (Sat, 13 Feb 2016 06:30:05 GMT) (full text, mbox, link).


Acknowledgement sent to Ralf Treinen <treinen@free.fr>:
New Bug report received and forwarded. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>, Matthias Klose <doko@debian.org>.

Your message had a Version: pseudo-header with an invalid package version:

python-setuptools-whl/20.0-2

please either use found or fixed to the control server with a correct version, or reply to this report indicating the correct version so the maintainer (or someone else) can correct it for you.

(Sat, 13 Feb 2016 06:30:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Ralf Treinen <treinen@free.fr>
To: submit@bugs.debian.org
Subject: python-setuptools-whl and python-pip-whl: error when trying to install together
Date: Sat, 13 Feb 2016 07:27:37 +0100
Package: python-pip-whl,python-setuptools-whl
Version: python-pip-whl/8.0.2-6
Version: python-setuptools-whl/20.0-2
Severity: serious
User: treinen@debian.org
Usertags: edos-file-overwrite

Date: 2016-02-13
Architecture: amd64
Distribution: sid

Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:


Selecting previously unselected package python-pip-whl.
(Reading database ... 10940 files and directories currently installed.)
Preparing to unpack .../python-pip-whl_8.0.2-6_all.deb ...
Unpacking python-pip-whl (8.0.2-6) ...
Selecting previously unselected package python-setuptools-whl.
Preparing to unpack .../python-setuptools-whl_20.0-2_all.deb ...
Unpacking python-setuptools-whl (20.0-2) ...
dpkg: error processing archive /var/cache/apt/archives/python-setuptools-whl_20.0-2_all.deb (--unpack):
 trying to overwrite '/usr/share/python-wheels/setuptools-20.0-py2.py3-none-any.whl', which is also in package python-pip-whl 8.0.2-6
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/python-setuptools-whl_20.0-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


This is a serious bug as it makes installation fail, and violates
sections 7.6.1 and 10.1 of the policy. An optimal solution would
consist in only one of the packages installing that file, and renaming
or removing the file in the other package. Depending on the
circumstances you might also consider Replace relations or file
diversions. If the conflicting situation cannot be resolved then, as a
last resort, the two packages have to declare a mutual
Conflict. Please take into account that Replaces, Conflicts and
diversions should only be used when packages provide different
implementations for the same functionality.

Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
slightly out of sync):

  /usr/share/python-wheels/setuptools-20.0-py2.py3-none-any.whl

This bug has been filed against both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package. You may then
also register in the BTS that the other package is affected by the bug.

-Ralf.

PS: for more information about the detection of file overwrite errors
of this kind see http://qa.debian.org/dose/file-overwrites.html.



Marked as found in versions python-pip/8.0.2-6. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 13 Feb 2016 13:18:11 GMT) (full text, mbox, link).


Marked as found in versions python-setuptools/20.0-2. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 13 Feb 2016 13:18:12 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>, Matthias Klose <doko@debian.org>:
Bug#814571; Package python-pip-whl,python-setuptools-whl. (Sat, 13 Feb 2016 18:03:07 GMT) (full text, mbox, link).


Acknowledgement sent to Barry Warsaw <barry@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>, Matthias Klose <doko@debian.org>. (Sat, 13 Feb 2016 18:03:07 GMT) (full text, mbox, link).


Message #14 received at 814571@bugs.debian.org (full text, mbox, reply):

From: Barry Warsaw <barry@debian.org>
Cc: 814571@bugs.debian.org
Subject: Re: [Python-modules-team] Bug#814571: python-setuptools-whl and python-pip-whl: error when trying to install together
Date: Sat, 13 Feb 2016 13:00:55 -0500
On Feb 13, 2016, at 07:27 AM, Ralf Treinen wrote:

>Here is a list of files that are known to be shared by both packages
>(according to the Contents file for sid/amd64, which may be
>slightly out of sync):
>
>  /usr/share/python-wheels/setuptools-20.0-py2.py3-none-any.whl
>
>This bug has been filed against both packages. If you, the maintainers of
>the two packages in question, have agreed on which of the packages will
>resolve the problem please reassign the bug to that package. You may then
>also register in the BTS that the other package is affected by the bug.

It is a bug in setuptools and I forwarded a patch to the maintainer.  I'm
happy to NMU it if preferred.



Bug reassigned from package 'python-pip-whl,python-setuptools-whl' to 'python-setuptools'. Request was from Barry Warsaw <barry@debian.org> to control@bugs.debian.org. (Sat, 13 Feb 2016 18:03:12 GMT) (full text, mbox, link).


No longer marked as found in versions python-pip/8.0.2-6 and python-setuptools/20.0-2. Request was from Barry Warsaw <barry@debian.org> to control@bugs.debian.org. (Sat, 13 Feb 2016 18:03:13 GMT) (full text, mbox, link).


Marked as found in versions python-setuptools/20.0-2. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Mon, 15 Feb 2016 01:57:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#814571; Package python-setuptools. (Mon, 15 Feb 2016 10:39:12 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <doko@debian.org>:
Extra info received and forwarded to list. (Mon, 15 Feb 2016 10:39:13 GMT) (full text, mbox, link).


Message #25 received at 814571@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@debian.org>
To: Barry Warsaw <barry@debian.org>, 814571@bugs.debian.org
Subject: Re: Bug#814571: [Python-modules-team] Bug#814571: python-setuptools-whl and python-pip-whl: error when trying to install together
Date: Mon, 15 Feb 2016 11:37:53 +0100
reassign 814571 python-pip
thanks

On 13.02.2016 19:00, Barry Warsaw wrote:
> On Feb 13, 2016, at 07:27 AM, Ralf Treinen wrote:
>
>> Here is a list of files that are known to be shared by both packages
>> (according to the Contents file for sid/amd64, which may be
>> slightly out of sync):
>>
>>   /usr/share/python-wheels/setuptools-20.0-py2.py3-none-any.whl
>>
>> This bug has been filed against both packages. If you, the maintainers of
>> the two packages in question, have agreed on which of the packages will
>> resolve the problem please reassign the bug to that package. You may then
>> also register in the BTS that the other package is affected by the bug.
>
> It is a bug in setuptools and I forwarded a patch to the maintainer.  I'm
> happy to NMU it if preferred.

No, in the first place it's a bug to not declare a proper Breaks/Replaces.  And 
yes, you asked me to remove the whl package, but without giving a reason for it 
in your forward.





Bug reassigned from package 'python-setuptools' to 'python-pip'. Request was from Matthias Klose <doko@debian.org> to control@bugs.debian.org. (Mon, 15 Feb 2016 10:39:24 GMT) (full text, mbox, link).


No longer marked as found in versions python-setuptools/20.0-2. Request was from Matthias Klose <doko@debian.org> to control@bugs.debian.org. (Mon, 15 Feb 2016 10:39:25 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#814571; Package python-pip. (Mon, 15 Feb 2016 18:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to Barry Warsaw <barry@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (Mon, 15 Feb 2016 18:06:04 GMT) (full text, mbox, link).


Message #34 received at 814571@bugs.debian.org (full text, mbox, reply):

From: Barry Warsaw <barry@debian.org>
Cc: 814571@bugs.debian.org
Subject: Re: Bug#814571: [Python-modules-team] Bug#814571: python-setuptools-whl and python-pip-whl: error when trying to install together
Date: Mon, 15 Feb 2016 13:03:26 -0500
[Message part 1 (text/plain, inline)]
On Feb 15, 2016, at 11:37 AM, Matthias Klose wrote:

>No, in the first place it's a bug to not declare a proper Breaks/Replaces.

Well, in the meantime, you uploaded a new version of python-setuptools, so the
Breaks/Replaces that already exists in python-pip is now out of date.  But if
you agree to remove python-setuptools-whl in 20.0-3, I will update the B/R in
python-pip to match it.

>And yes, you asked me to remove the whl package, but without giving a reason
>for it in your forward.

Okay, but it was discussed fairly extensively in debian-python@ already, both
in terms of the technology and the changes in Debian Python Policy, which are
already committed to its vcs.  But to re-iterate:

Through the use of dirtbike, packages which require -whls will build them at
their own build-time, but this is limited to pip and virtualenv.  Because the
dependencies of upstream pip change, this is the only viable option for
sustainability.  Thus the previous -whl packages sprinkled throughout the
archive should now be removed.

I've included the patch here.  I'm not going to play whack-a-mole with this
bug, but it will be fixed when python-setuptools-whl is removed.
[setuptools-nowhl.diff (text/x-patch, attachment)]
[Message part 3 (application/pgp-signature, inline)]

Added tag(s) pending. Request was from Barry Warsaw <barry@python.org> to control@bugs.debian.org. (Mon, 15 Feb 2016 18:15:04 GMT) (full text, mbox, link).


Message sent on to Ralf Treinen <treinen@free.fr>:
Bug#814571. (Mon, 15 Feb 2016 18:15:07 GMT) (full text, mbox, link).


Message #39 received at 814571-submitter@bugs.debian.org (full text, mbox, reply):

From: Barry Warsaw <barry@python.org>
To: 814571-submitter@bugs.debian.org
Subject: Bug#814571 marked as pending
Date: Mon, 15 Feb 2016 18:12:05 +0000
tag 814571 pending
thanks

Hello,

Bug #814571 reported by you has been fixed in the Git repository. You can
see the changelog below, and you can check the diff of the fix at:

    http://git.debian.org/?p=python-modules/packages/python-pip.git;a=commitdiff;h=e33082b

---
commit e33082b7e0da3202e43005e71e323c699b589086
Author: Barry Warsaw <barry@python.org>
Date:   Mon Feb 15 13:12:00 2016 -0500

    d/control: Update the python-setuptools-whl Breaks/Replaces versions. (Closes: #814571)

diff --git a/debian/changelog b/debian/changelog
index e64086c..5c534f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-pip (8.0.2-7) UNRELEASED; urgency=medium
+
+  * d/control: Update the python-setuptools-whl Breaks/Replaces versions.
+    (Closes: #814571)
+
+ -- Barry Warsaw <barry@debian.org>  Mon, 15 Feb 2016 13:05:40 -0500
+
 python-pip (8.0.2-6) unstable; urgency=medium
 
   * d/control: Fix Breaks/Replaces version on python-six-whl.  



Reply sent to Barry Warsaw <barry@debian.org>:
You have taken responsibility. (Mon, 15 Feb 2016 18:51:10 GMT) (full text, mbox, link).


Notification sent to Ralf Treinen <treinen@free.fr>:
Bug acknowledged by developer. (Mon, 15 Feb 2016 18:51:10 GMT) (full text, mbox, link).


Message #44 received at 814571-close@bugs.debian.org (full text, mbox, reply):

From: Barry Warsaw <barry@debian.org>
To: 814571-close@bugs.debian.org
Subject: Bug#814571: fixed in python-pip 8.0.2-7
Date: Mon, 15 Feb 2016 18:50:08 +0000
Source: python-pip
Source-Version: 8.0.2-7

We believe that the bug you reported is fixed in the latest version of
python-pip, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 814571@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Barry Warsaw <barry@debian.org> (supplier of updated python-pip package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 15 Feb 2016 13:17:16 -0500
Source: python-pip
Binary: python-pip python3-pip python-pip-whl
Architecture: source all
Version: 8.0.2-7
Distribution: unstable
Urgency: medium
Maintainer: Barry Warsaw <barry@debian.org>
Changed-By: Barry Warsaw <barry@debian.org>
Description:
 python-pip - alternative Python package installer
 python-pip-whl - alternative Python package installer
 python3-pip - alternative Python package installer - Python 3 version of the pa
Closes: 814571
Changes:
 python-pip (8.0.2-7) unstable; urgency=medium
 .
   * d/control: Update the python-setuptools-whl Breaks/Replaces versions.
     (Closes: #814571)
Checksums-Sha1:
 3f3f21c3636cf3c38e8e34ead68db0fe380275e0 2590 python-pip_8.0.2-7.dsc
 112bbdc2a885c3727a53e6faf19c5a1094df57d0 15792 python-pip_8.0.2-7.debian.tar.xz
 9b0a0585bcfe890f57ccf997a67c4f4c0e957a4b 545298 python-pip-whl_8.0.2-7_all.deb
 785ce32d6c67dc40a47b9c6f21d4befd6ee61b4a 165528 python-pip_8.0.2-7_all.deb
 2ca8daa38d6bbe65a7123adaf75559083bde1bbb 129978 python3-pip_8.0.2-7_all.deb
Checksums-Sha256:
 c78187eb7a381909fd27c1ecea3146372879e57529e1d6b444105a5cc380c88a 2590 python-pip_8.0.2-7.dsc
 52676d32377bb32dc1521cbe7a55cdf5a0eb8acbe32428914fa0d87e031c719c 15792 python-pip_8.0.2-7.debian.tar.xz
 379e0cbfab78ee559f71eba23fa476baf117c99c289ab86d8f9fc3de5be15d4a 545298 python-pip-whl_8.0.2-7_all.deb
 0bbdd40665c815d9675383fe01603ce9edb407a428fc39fcebf334e8ed5dfe1f 165528 python-pip_8.0.2-7_all.deb
 08d48f765ef7d8754e0838c8d088730e9cce4ea20c7d6fd71e8a66ca8ebce84f 129978 python3-pip_8.0.2-7_all.deb
Files:
 7d70c650bedd0a48629576cc3c20a172 2590 python optional python-pip_8.0.2-7.dsc
 475b7e71ac312161b9eede316d98c783 15792 python optional python-pip_8.0.2-7.debian.tar.xz
 7790c84c38f4746a4309c175a011e528 545298 python optional python-pip-whl_8.0.2-7_all.deb
 fa7fe073da1dde6f065cbb4df77183e0 165528 python optional python-pip_8.0.2-7_all.deb
 0150dd2c4061cf21d39b2eee7e425635 129978 python optional python3-pip_8.0.2-7_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWwhl3AAoJEBJutWOnSwa/kTYQAJA1NjF+b+uLVprn/pTQJA3Y
LUphBdeejTf2+6syuL0kEVxs0g7YGHTUHQquLhJ/e2//u9WABBsaWtnhwYmNANem
4hrTUJu8WqsdS9wtyFfRed00+9/3fRGrE9monaPDJd41akJpL6JQJrq3oSDAnToa
EKZh7qxgQv26GDISX54+pGE1D7GDdLt9ohlvS82wFiBDiSqyLzwTxuadfSY/ZLOB
SHFLZiCe1Nzu+O1y0w2ujxBFOej9Cuk2Qwv45xsyuUpLfxdq0INNeJ/HC5Oc33la
kmw27pShO6UGPxlFcDBNXbvIx1/rn/BoIGxafHMGRn1f6nxCt800B5HJcV0QcGYg
Zbp31arM609l93FfXy0NAA10Rx0B2bC6fd2aNDUcDlW0OgKsWl6ZkYouhBPhJLFT
QS0B0Ri/qrZBq6399i4FQNr23650wXLCbtOiuequvX+8JRWlGa/L0+OzF77L7JOb
aZrFE8+mxn5R47lUJIuq+uZpxeBQK5ZbTgjP5ReYbTRtHWvVIgNZuxYsNi0Mbb/F
MapXtYqa2Mt8YzDiUpuazngk1SpV+0nZcQbxt1/PUIlMoZ+Xyhom9ZD40gsQ/b2h
J5zI0ElAGGtERoPXv9Gz+FZCKh1asA+58CEdC5IhEPNPg8F6u/kzBghDQjTSxwih
J2uNLg25c9zyRAaFakfn
=idNA
-----END PGP SIGNATURE-----




Marked as found in versions python-pip/8.0.2-6. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Wed, 17 Feb 2016 14:42:06 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 17 Mar 2016 07:29:53 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 6 10:08:52 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.