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/ [email protected]
Debian Developer http://www.debian.org/ [email protected]
GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team