Activity log for bug #2061929

Date Who What changed Old value New value Message
2024-04-16 23:39:15 A. Karl Kornel bug added bug
2024-04-17 00:03:05 A. Karl Kornel tags amd64 apport-bug noble wayland-session amd64 apport-bug noble regression-release wayland-session
2024-04-17 00:11:28 A. Karl Kornel bug watch added https://github.com/pypa/setuptools/issues/417
2024-04-17 00:20:16 A. Karl Kornel summary Python docker page does not import: No module named 'distutils' Python docker package does not import: No module named 'distutils'
2024-04-17 00:20:46 A. Karl Kornel tags amd64 apport-bug noble regression-release wayland-session amd64 apport-bug noble regression-release
2024-04-17 17:02:33 A. Karl Kornel bug watch added https://github.com/docker/docker-py/issues/3113
2024-04-17 17:03:15 A. Karl Kornel summary Python docker package does not import: No module named 'distutils' Python docker package does not import, crashes due to urllib3 upgrade
2024-04-17 17:45:01 A. Karl Kornel attachment added Remove the calls to distutils, so that the package no longer relies on python3-distutils or python3-setuptools https://bugs.launchpad.net/ubuntu/+source/python-docker/+bug/2061929/+attachment/5766881/+files/no-distutils.patch
2024-04-17 17:45:15 A. Karl Kornel tags amd64 apport-bug noble regression-release amd64 apport-bug noble patch regression-release
2024-04-17 17:49:14 A. Karl Kornel attachment added Update use of requests & urllib3 to work with urllib3 2.0 https://bugs.launchpad.net/ubuntu/+source/python-docker/+bug/2061929/+attachment/5766882/+files/requests-urllib3-updates.patch
2024-04-17 20:18:08 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2024-04-17 21:29:45 A. Karl Kornel description This is on a fresh install of the 20.04 beta that was released on April 12. I used the Desktop installer, into a VMware Fusion VM, on amd64. Other than the defaults for a fresh Ubuntu Desktop install, all I ran was `apt install -y docker.io python3-docker`. I ran `python3`, tried to execute `import docker`, and got this: Python 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import docker Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/docker/__init__.py", line 2, in <module> from .api import APIClient File "/usr/lib/python3/dist-packages/docker/api/__init__.py", line 2, in <module> from .client import APIClient File "/usr/lib/python3/dist-packages/docker/api/client.py", line 10, in <module> from .. import auth File "/usr/lib/python3/dist-packages/docker/auth.py", line 5, in <module> from . import credentials File "/usr/lib/python3/dist-packages/docker/credentials/__init__.py", line 2, in <module> from .store import Store File "/usr/lib/python3/dist-packages/docker/credentials/store.py", line 7, in <module> from .utils import create_environment_dict File "/usr/lib/python3/dist-packages/docker/credentials/utils.py", line 1, in <module> import distutils.spawn ModuleNotFoundError: No module named 'distutils' ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: python3-docker 5.0.3-1ubuntu1 ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1 Uname: Linux 6.8.0-22-generic x86_64 ApportVersion: 2.28.0-0ubuntu1 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue Apr 16 16:35:20 2024 InstallationDate: Installed on 2024-04-16 (0 days ago) InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240410.2) PackageArchitecture: all ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: python-docker UpgradeStatus: No upgrade log present (probably fresh install) This is on a fresh install of the 24.04 beta that was released on April 12. I used the Desktop installer, into a VMware Fusion VM, on amd64. Other than the defaults for a fresh Ubuntu Desktop install, all I ran was `apt install -y docker.io python3-docker`. I ran `python3`, tried to execute `import docker`, and got this: Python 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import docker Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/usr/lib/python3/dist-packages/docker/__init__.py", line 2, in <module>     from .api import APIClient   File "/usr/lib/python3/dist-packages/docker/api/__init__.py", line 2, in <module>     from .client import APIClient   File "/usr/lib/python3/dist-packages/docker/api/client.py", line 10, in <module>     from .. import auth   File "/usr/lib/python3/dist-packages/docker/auth.py", line 5, in <module>     from . import credentials   File "/usr/lib/python3/dist-packages/docker/credentials/__init__.py", line 2, in <module>     from .store import Store   File "/usr/lib/python3/dist-packages/docker/credentials/store.py", line 7, in <module>     from .utils import create_environment_dict   File "/usr/lib/python3/dist-packages/docker/credentials/utils.py", line 1, in <module>     import distutils.spawn ModuleNotFoundError: No module named 'distutils' ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: python3-docker 5.0.3-1ubuntu1 ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1 Uname: Linux 6.8.0-22-generic x86_64 ApportVersion: 2.28.0-0ubuntu1 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue Apr 16 16:35:20 2024 InstallationDate: Installed on 2024-04-16 (0 days ago) InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240410.2) PackageArchitecture: all ProcEnviron:  LANG=en_US.UTF-8  PATH=(custom, no user)  SHELL=/bin/bash  TERM=xterm-256color  XDG_RUNTIME_DIR=<set> SourcePackage: python-docker UpgradeStatus: No upgrade log present (probably fresh install)
2024-05-06 13:16:51 Launchpad Janitor python-docker (Ubuntu): status New Confirmed
2024-05-11 23:24:06 A. Karl Kornel bug watch added https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065926
2024-05-11 23:24:06 A. Karl Kornel bug task added debbugs
2024-05-11 23:25:54 A. Karl Kornel bug task deleted debbugs
2024-05-21 12:24:39 J bug added subscriber J
2024-05-23 09:15:01 Michael P. Jung bug added subscriber Michael P. Jung
2024-06-17 10:21:03 J bug watch added https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1073196
2024-06-25 14:03:58 Antonin De Jesus bug added subscriber Antonin De Jesus
2024-06-25 18:18:36 Stian Halseth bug added subscriber Stian Halseth
2024-07-26 00:04:27 Lincoln Stoll bug added subscriber Lincoln Stoll
2024-07-27 21:41:51 Sudip Mukherjee python-docker (Ubuntu): status Confirmed In Progress
2024-07-27 21:41:55 Sudip Mukherjee python-docker (Ubuntu): assignee Sudip Mukherjee (sudipmuk)
2024-07-27 21:58:31 Sudip Mukherjee nominated for series Ubuntu Noble
2024-07-27 21:58:31 Sudip Mukherjee bug task added python-docker (Ubuntu Noble)
2024-07-27 21:58:38 Sudip Mukherjee python-docker (Ubuntu Noble): status New In Progress
2024-07-27 21:58:45 Sudip Mukherjee python-docker (Ubuntu Noble): assignee Sudip Mukherjee (sudipmuk)
2024-07-27 21:58:50 Sudip Mukherjee python-docker (Ubuntu): assignee Sudip Mukherjee (sudipmuk)
2024-07-27 21:58:54 Sudip Mukherjee python-docker (Ubuntu): status In Progress Fix Released
2024-07-31 08:41:18 Sudip Mukherjee summary Python docker package does not import, crashes due to urllib3 upgrade [SRU] Python docker package does not import, crashes due to urllib3 upgrade
2024-07-31 08:41:40 Sudip Mukherjee description This is on a fresh install of the 24.04 beta that was released on April 12. I used the Desktop installer, into a VMware Fusion VM, on amd64. Other than the defaults for a fresh Ubuntu Desktop install, all I ran was `apt install -y docker.io python3-docker`. I ran `python3`, tried to execute `import docker`, and got this: Python 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import docker Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/usr/lib/python3/dist-packages/docker/__init__.py", line 2, in <module>     from .api import APIClient   File "/usr/lib/python3/dist-packages/docker/api/__init__.py", line 2, in <module>     from .client import APIClient   File "/usr/lib/python3/dist-packages/docker/api/client.py", line 10, in <module>     from .. import auth   File "/usr/lib/python3/dist-packages/docker/auth.py", line 5, in <module>     from . import credentials   File "/usr/lib/python3/dist-packages/docker/credentials/__init__.py", line 2, in <module>     from .store import Store   File "/usr/lib/python3/dist-packages/docker/credentials/store.py", line 7, in <module>     from .utils import create_environment_dict   File "/usr/lib/python3/dist-packages/docker/credentials/utils.py", line 1, in <module>     import distutils.spawn ModuleNotFoundError: No module named 'distutils' ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: python3-docker 5.0.3-1ubuntu1 ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1 Uname: Linux 6.8.0-22-generic x86_64 ApportVersion: 2.28.0-0ubuntu1 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue Apr 16 16:35:20 2024 InstallationDate: Installed on 2024-04-16 (0 days ago) InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240410.2) PackageArchitecture: all ProcEnviron:  LANG=en_US.UTF-8  PATH=(custom, no user)  SHELL=/bin/bash  TERM=xterm-256color  XDG_RUNTIME_DIR=<set> SourcePackage: python-docker UpgradeStatus: No upgrade log present (probably fresh install) [ Impact ] python3-docker is completely unusable. It will fail immediately when the user tries to import the module to use it. $ python3 Python 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import docker Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/docker/__init__.py", line 2, in <module> from .api import APIClient File "/usr/lib/python3/dist-packages/docker/api/__init__.py", line 2, in <module> from .client import APIClient File "/usr/lib/python3/dist-packages/docker/api/client.py", line 10, in <module> from .. import auth File "/usr/lib/python3/dist-packages/docker/auth.py", line 5, in <module> from . import credentials File "/usr/lib/python3/dist-packages/docker/credentials/__init__.py", line 2, in <module> from .store import Store File "/usr/lib/python3/dist-packages/docker/credentials/store.py", line 7, in <module> from .utils import create_environment_dict File "/usr/lib/python3/dist-packages/docker/credentials/utils.py", line 1, in <module> import distutils.spawn ModuleNotFoundError: No module named 'distutils' [ Test Plan ] Install python3-docker and docker.io In the python3 prompt, use the following commands to test: >>> import docker >>> client = docker.from_env() >>> client.containers.run("ubuntu:latest", "echo hello world") With the fixed package it will print: b'hello world\n' [ Where problems could occur ] This change is a combination of two upstream patches which removes the use of disutils. The change for 'find_executable' which is replaced with 'shutil.which' should not have any regression as long as the PATH is defined properly. The other fix for distutil changes the way 'version' is calculated for comparison and is using 'packaging.version' for it. A new runtime dependency had to be added for it. This change can cause problem if the version comparison is not as expected. But considering the fact the python3-docker is unusable now, the user should not see any new regression than what already exists. [ Other Info ] 1. This has been fixed in Debian and so Oracular is also fixed. 2. As mentioned in the previous section, this change is a combination of two different upstream patches. The upstream patch also has changes in requirements.txt and setup.py which has been omitted in this change. [ Original Bug Description ] This is on a fresh install of the 24.04 beta that was released on April 12. I used the Desktop installer, into a VMware Fusion VM, on amd64. Other than the defaults for a fresh Ubuntu Desktop install, all I ran was `apt install -y docker.io python3-docker`. I ran `python3`, tried to execute `import docker`, and got this: Python 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import docker Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/usr/lib/python3/dist-packages/docker/__init__.py", line 2, in <module>     from .api import APIClient   File "/usr/lib/python3/dist-packages/docker/api/__init__.py", line 2, in <module>     from .client import APIClient   File "/usr/lib/python3/dist-packages/docker/api/client.py", line 10, in <module>     from .. import auth   File "/usr/lib/python3/dist-packages/docker/auth.py", line 5, in <module>     from . import credentials   File "/usr/lib/python3/dist-packages/docker/credentials/__init__.py", line 2, in <module>     from .store import Store   File "/usr/lib/python3/dist-packages/docker/credentials/store.py", line 7, in <module>     from .utils import create_environment_dict   File "/usr/lib/python3/dist-packages/docker/credentials/utils.py", line 1, in <module>     import distutils.spawn ModuleNotFoundError: No module named 'distutils' ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: python3-docker 5.0.3-1ubuntu1 ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1 Uname: Linux 6.8.0-22-generic x86_64 ApportVersion: 2.28.0-0ubuntu1 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue Apr 16 16:35:20 2024 InstallationDate: Installed on 2024-04-16 (0 days ago) InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240410.2) PackageArchitecture: all ProcEnviron:  LANG=en_US.UTF-8  PATH=(custom, no user)  SHELL=/bin/bash  TERM=xterm-256color  XDG_RUNTIME_DIR=<set> SourcePackage: python-docker UpgradeStatus: No upgrade log present (probably fresh install)
2024-07-31 08:57:40 Sudip Mukherjee python-docker (Ubuntu Noble): assignee Sudip Mukherjee (sudipmuk)
2024-08-20 08:23:04 Sudip Mukherjee bug added subscriber Sudip Mukherjee
2024-09-02 22:27:42 Mauricio Faria de Oliveira python-docker (Ubuntu Noble): status In Progress Incomplete