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


Groups > linux.debian.maint.python > #8053

Re: [Python-modules-team] My Pip installation is broken after upgrading Debian from oldstable/Wheezy to stable/Jessie...

Path csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!border2.nntp.ams1.giganews.com!nntp.giganews.com!news.panservice.it!bofh.it!news.nic.it!robomod
From Brian May <bam@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: [Python-modules-team] My Pip installation is broken after upgrading Debian from oldstable/Wheezy to stable/Jessie...
Date Sun, 03 Jan 2016 00:40:02 +0100
Message-ID <qMDW9-67v-9@gated-at.bofh.it> (permalink)
References <qLleW-4KR-5@gated-at.bofh.it> <qLm1k-5j3-11@gated-at.bofh.it> <qMhsC-um-5@gated-at.bofh.it> <qMwrD-1px-5@gated-at.bofh.it>
X-Original-To Daniele Tricoli <eriol@mornie.org>, debian-python@lists.debian.org, Ant Dude <ant@zimage.com>
X-Mailbox-Line From debian-python-request@lists.debian.org Sat Jan 2 23:32:51 2016
Old-Return-Path <brian@microcomaustralia.com.au>
X-Amavis-Spam-Status No, score=-7.699 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
X-Policyd-Weight DYN_NJABL=ERR(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=ERR(-1.5) CL_IP_EQ_HELO_IP=-2 (check from: .microcomaustralia. - helo: .mail-pf0-x22f.google. - helo-domain: .google.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -5
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=microcomaustralia.com.au; s=google; h=sender:from:to:subject:in-reply-to:organization:references :user-agent:date:message-id:mime-version:content-type; bh=VXhrQgrypdU1XtjAI1a3FC0GVDhrDHNhgJm822BA0cY=; b=BlQiguJw+l5YTpZuioUP8/zu1xKwLpzPU5cAT58fGHvYztjuIY67Go7m+dpFBbg2uc +WpNRW2QaIVjQyaPzAjbQ08GDy4JpDtWEGv1pSCGes6Eu0gXBUhyDlo1dn8eypXeuz2q oQVdE3ChJ5NZcX9xuSu98eOtiw+PghHUMSmwE=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:in-reply-to:organization :references:user-agent:date:message-id:mime-version:content-type; bh=VXhrQgrypdU1XtjAI1a3FC0GVDhrDHNhgJm822BA0cY=; b=NtlVz4Fs9gJuZe8eCgRhxshUTYt0HnyUS+zez6wNrYjiT92ixBF2Rtta9k6l6OeSKw W36JVx6tfNWZt050wnmOVHkBx3XBMuf9U0bsXzSlpg1rZU2XTXAoHx8JBT79CU4FBR6H x9Hweea2tftE5b7KkyoFkGZhlSLvTYg3sSgy/EPAXuEN2rfLGhDd7CbXazgF2xaGtmIQ pZIFPusPC7uxi4ssndcbAG2jZQ8zIoc6eSP4Q3YeYI9Ql87ShcanyfmSgJm1vCAn98Mk WJ2FOS0kM+CIZC8ve8SnMKWTQJKmEGZggaxmzjLHHHzqXZNQIgRRVlSY48+HqS62qm97 bDQg==
X-Gm-Message-State ALoCoQmnNpNyWzDcqN2zOKYme/o7nFVhV9aKp6jhvkBeOkmbYP5cFZ9Ia+5+ZUuJTIMNMujc1oH3uKcbPdXaL3tGNXCmuVnhKw==
X-Received by 10.98.80.81 with SMTP id e78mr46626913pfb.121.1451777540284; Sat, 02 Jan 2016 15:32:20 -0800 (PST)
Sender robomod@news.nic.it
Organization Debian
User-Agent Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu)
MIME-Version 1.0
Content-Type text/plain
X-Mailing-List <debian-python@lists.debian.org> archive/latest/13371
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/87r3hzo8w0.fsf@prune.linuxpenguins.xyz
Approved robomod@news.nic.it
Lines 41
X-Original-Date Sun, 03 Jan 2016 10:32:15 +1100
X-Original-Message-ID <87r3hzo8w0.fsf@prune.linuxpenguins.xyz>
X-Original-References <56830BEC.60501@earthlink.net> <20151230095411.GA13869@beta.zimage.com> <87r3i0q3j1.fsf@prune.linuxpenguins.xyz> <2374428.jkzOg9l2ch@mornie>
X-Original-Sender Brian May <brian@microcomaustralia.com.au>
Xref csiph.com linux.debian.maint.python:8053

Show key headers only | View raw


Daniele Tricoli <eriol@mornie.org> writes:

> @Ant Dude: just to recap and to be sure I understand correctly: you should 
> have installed requests 2.4.3-6 and python-pip (1.5.6-5), right?
> Renaming requests (Debian packaged version) install directory make pip work, 
> right?

He previously said he renamed the /usr/local version, not the packaged
version:

/usr/local/lib/python2.7/dist-packages/requestsRENAMED

I think he might be getting confused where the files are coming from and
the difference between "apt-get install python-xyz" vs "pip install
xyz".

So I will try to explain: If you install the package with "pip install
xyz" - it will get installed under /usr/local. However the Debian
package system doesn't understand this, and doesn't know that you have
done this. So you may have installed a version that is not compatible
with the Debian packages.

When you install a package with "apt-get install python-xyz" (including
security updates) it will get installed under /usr/lib. The package
system knows about these packages and will work to ensure that the
versions are compatible. However any packages you have installed locally
with "pip install xyz" in /usr/local will take priority and get used
instead. Even if they are not compatible.

So as a result, it is not a good idea to install any packages locally in
/usr/local - you should always install packages with "apt-get" as only
these packages are tested by Debian to work with Debian packages.

Just to confuse matters, there are some upstream packages - particular
those not yet in Debian, where the upstream authors do recommend
installing missing dependancies with "pip install xyz" - this is not
actually good practise.

Hope this helps.
-- 
Brian May <bam@debian.org>

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [Python-modules-team] My Pip installation is broken after upgrading Debian from oldstable/Wheezy to stable/Jessie... Brian May <brian@linuxpenguins.xyz> - 2015-12-30 10:30 +0100
  Re: [Python-modules-team] My Pip installation is broken after  upgrading Debian from oldstable/Wheezy to stable/Jessie... Ant Dude <ant@zimage.com> - 2015-12-30 11:20 +0100
    Re: [Python-modules-team] My Pip installation is broken after upgrading Debian from oldstable/Wheezy to stable/Jessie... Brian May <bam@debian.org> - 2016-01-02 00:40 +0100
      Re: [Python-modules-team] My Pip installation is broken after  upgrading Debian from oldstable/Wheezy to stable/Jessie... Ant Dude <ant@zimage.com> - 2016-01-02 01:00 +0100
      Re: [Python-modules-team] My Pip installation is broken after upgrading Debian from oldstable/Wheezy to stable/Jessie... Daniele Tricoli <eriol@mornie.org> - 2016-01-02 16:40 +0100
        Re: [Python-modules-team] My Pip installation is broken after  upgrading Debian from oldstable/Wheezy to stable/Jessie... Ant Dude <ant@zimage.com> - 2016-01-02 17:40 +0100
          Re: [Python-modules-team] My Pip installation is broken after  upgrading Debian from oldstable/Wheezy to stable/Jessie... Andrey Rahmatullin <wrar@debian.org> - 2016-01-02 18:40 +0100
        Re: [Python-modules-team] My Pip installation is broken after upgrading Debian from oldstable/Wheezy to stable/Jessie... Brian May <bam@debian.org> - 2016-01-03 00:40 +0100

csiph-web