Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8051
| 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 | 2016-01-02 17:40 +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> |
| Organization | linux.* mail to news gateway |
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