[Python-modules-team] Bug#825748: python-requests: Asks for python-requests >= 2.0 despite 2.10.0-1 installed already
Stuart Prescott
stuart at debian.org
Sun Feb 12 02:15:12 UTC 2017
Hi Eric,
I have just helped someone else solve a similar problem that I think has the
same root cause:
> python
> Python 2.7.11+ (default, May 9 2016, 15:54:33)
> [GCC 5.3.1 20160429] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import requests; requests.__version__.split('.')
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line
> 61, in <module>
> from .packages.urllib3.exceptions import DependencyWarning
> ImportError: cannot import name DependencyWarning
^^ this is indicative of an old version of urllib3. Can you please double
check whether you have an old urllib3 installed e.g. in /usr/local or ~/.
Testing:
$ python3 -c 'import urllib3; print(urllib3.__file__)'
should return:
/usr/lib/python3/dist-packages/urllib3/__init__.py
and might tell you where else a locally installed urllib3 is to be found if it
doesn't return that value.
Also double check that there is no urllib3 directory in /usr/lib/python3/dist-
packages/requests/packages.
cheers
Stuart
--
Stuart Prescott http://www.nanonanonano.net/ stuart at nanonanonano.net
Debian Developer http://www.debian.org/ stuart at debian.org
GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
More information about the Python-modules-team
mailing list