Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8051
| Path | csiph.com!news.freedyn.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.roellig-ltd.de!open-news-network.org!border2.nntp.ams1.giganews.com!nntp.giganews.com!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ant Dude <ant@zimage.com> |
| 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 | Sat, 02 Jan 2016 17:40:02 +0100 |
| Message-ID | <qMxnI-20F-7@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> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Sat Jan 2 16:36:10 2016 |
| Old-Return-Path | <ant@zimage.com> |
| X-Amavis-Spam-Status | No, score=-0.48 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, MONEY=0.5, MURPHY_DRUGS_REL8=0.02, STOCKLIKE=1] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -1.5 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=zimage.com; s=default; t=1451751493; bh=JwenfDm0vdjN+Lj79E4UmLtqB+Wc89IPxwusxym0C6E=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=TmVlB1IZPwqYBFc2sET9oRsIhBMbSht4m1syLCBm+8OjaJ+vY0fPzLgfsvy/7nFcw n8+LBwTeA/qR+rreNEDxrophbi+lusFskW+wzHHicCvePKBNzLE98C7BenxpMR0mNn /O7n0g7BU1PGBWoFpSn2ULZeeRyP8R0SKQ+nBq2E= |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.24 (2015-08-30) |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/13369 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/20160102161813.GB24742@beta.zimage.com |
| Approved | robomod@news.nic.it |
| Lines | 81 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | debian-python@lists.debian.org |
| X-Original-Date | Sat, 2 Jan 2016 08:18:13 -0800 |
| X-Original-Message-ID | <20160102161813.GB24742@beta.zimage.com> |
| X-Original-References | <56830BEC.60501@earthlink.net> <20151230095411.GA13869@beta.zimage.com> <87r3i0q3j1.fsf@prune.linuxpenguins.xyz> <2374428.jkzOg9l2ch@mornie> |
| Xref | csiph.com linux.debian.maint.python:8051 |
Show key headers only | View raw
On Sat, Jan 02, 2016 at 04:39:24PM +0100, Daniele Tricoli wrote:
> Hello,
> sorry for the delay in my reply!
Hi! No problems due to the holidays. ;)
> On Saturday, January 02, 2016 10:32:50 AM Brian May wrote:
> > Are you sure? This bug was supposedly fixed in the Jessie version...
>
> 03_export-IncompleteRead.patch is still present in the requests packaging
> (since pip version in Debian still need it) and was shipped with requests
> 2.4.3-2.
>
> @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?
Yes, but probably from Wheezy when before Jessie became the new stable.
My dpkg -l shows:
ii python-requests 2.4.3-6 all elegant and simple HTTP library for Python2, built for human beings
ii python-pip 1.5.6-5 all alternative Python package installer
> Renaming requests (Debian packaged version) install directory make pip work,
> right?
Yes.
> Debian packaged version of pip doesn't use convenience copies, so do you have
> a version of requests installed not using apt?
> Please can you tell me what is the output of the following?
>
> python -c "import requests; print requests.__version__"
>
> Please, can you also try:
>
> python -c "from requests.compat import IncompleteRead"
With /usr/local/lib/python2.7/dist-packages/requestsRENAMED
$ python -c "import requests; print requests.__version__"
2.4.3
$ python -c "from requests.compat import IncompleteRead"
$
With the original /usr/local/lib/python2.7/dist-packages/requests:
$ python -c "import requests; print requests.__version__"
2.9.1
$ python -c "from requests.compat import IncompleteRead"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name IncompleteRead
I tried "apt-get purge python-pip python-requests" and then reinstalling
them to see if the problem would go away. Nope:
$ pip
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in
load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476,
in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190,
in load
['__name__'])
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in
<module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9,
in <module>
from pip.download import path_to_url
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in
<module>
from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead
Again, I renamed the old requests directory for me to use pip again. :(
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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