Public bug reported: 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/ ** Affects: python-urllib3 (Ubuntu) Importance: Undecided Status: New ** Tags: jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2091227 Title: urllib3.util.ssltransport package refers to non-existent urllib3.packages.six To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-urllib3/+bug/2091227/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs