[Bug 2091227] Re: urllib3.util.ssltransport package refers to non-existent urllib3.packages.six

Bug Watch Updater 2091227 at bugs.launchpad.net
Mon Dec 9 07:24:22 UTC 2024


** Changed in: python-urllib3 (Debian)
       Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-urllib3 in Ubuntu.
https://bugs.launchpad.net/bugs/2091227

Title:
  urllib3.util.ssltransport package refers to non-existent
  urllib3.packages.six

Status in python-urllib3 package in Ubuntu:
  New
Status in python-urllib3 package in Debian:
  New

Bug description:
  This concerns python3-urllib3 1.26.5-1~exp1ubuntu0.1 in Ubuntu jammy.

  One of the package's Python modules attempts to import another module
  that is not present in the package. This was observed in the course of
  building a current version of yt-dlp:

    ==================================== ERRORS ====================================
    ___________________ ERROR collecting test/test_http_proxy.py ___________________
    ImportError while importing test module '/tmp/yt-dlp-2024.12.06/test/test_http_proxy.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    /usr/lib/python3.10/importlib/__init__.py:126: in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
    test/test_http_proxy.py:88: in <module>
        import urllib3.util.ssltransport
    /usr/lib/python3/dist-packages/urllib3/util/ssltransport.py:6: in <module>
        from urllib3.packages import six
    E   ImportError: cannot import name 'six' from 'urllib3.packages' (/usr/lib/python3/dist-packages/urllib3/packages/__init__.py)

  There is no "six" module in the appropriate directory:

    $ ls -lF /usr/lib/python3/dist-packages/urllib3/packages/
    total 16
    -rw-r--r-- 1 root root  300 Oct 24  2023 __init__.py
    drwxr-xr-x 2 root root 4096 Oct 20 02:16 __pycache__/
    drwxr-xr-x 3 root root 4096 Oct 20 02:16 backports/
    drwxr-xr-x 3 root root 4096 Oct 20 02:16 ssl_match_hostname/

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-urllib3/+bug/2091227/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list