[Python-modules-team] Bug#771349: python-requests: can't import function from requests.packages.urllib3.filepost

Félix Sipma felix+debian at gueux.org
Fri Nov 28 18:10:25 UTC 2014

Package: python-requests
Version: 2.4.3-5
Severity: important

I've seen that you recently patched several times python-requests to use
the global python-urllib3. I found a new issue with it (sorry :-)), the
resulting urllib3 package don't behave the same as the original one:

    $ python
    >>> from urllib3.filepost import iter_field_objects
    >>> iter_field_objects
    <function iter_field_objects at 0x7f82cfbf0848>
    >>> from requests.packages.urllib3.filepost import iter_field_objects
    >>> Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      ImportError: cannot import name iter_field_objects

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'stable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-requests depends on:
ii  ca-certificates  20141019
ii  python-chardet   2.3.0-1
ii  python-urllib3   1.9.1-3
pn  python:any       <none>

Versions of packages python-requests recommends:
pn  python-ndg-httpsclient  <none>
ii  python-openssl          0.14-1
ii  python-pyasn1           0.1.7-1

python-requests suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20141128/31f72c51/attachment.sig>

More information about the Python-modules-team mailing list