[Bug 2103626] [NEW] ModuleNotFoundError: No module named 'setuptools'

Jan Graichen 2103626 at bugs.launchpad.net
Wed Mar 19 14:35:27 UTC 2025


Public bug reported:

ceph-mgr-dashboards fail to load due to missing python3-setuptools:

ceph-mgr[5125]: 2025-03-19T14:28:13.333+0000 7af7b3ec3000 -1 mgr[py] Module not found: 'dashboard'
ceph-mgr[5125]: 2025-03-19T14:28:13.333+0000 7af7b3ec3000 -1 mgr[py] Traceback (most recent call last):
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/__init__.py", line 60, in <module>
ceph-mgr[5125]:     from .module import Module, StandbyModule  # noqa: F401
ceph-mgr[5125]:     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/module.py", line 30, in <module>
ceph-mgr[5125]:     from .controllers import Router, json_error_page
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 1, in <module>
ceph-mgr[5125]:     from ._api_router import APIRouter
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/controllers/_api_router.py", line 1, in <module>
ceph-mgr[5125]:     from ._router import Router
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/controllers/_router.py", line 7, in <module>
ceph-mgr[5125]:     from ._base_controller import BaseController
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 12, in <module>
ceph-mgr[5125]:     from ..tools import get_request_body_params
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/tools.py", line 12, in <module>
ceph-mgr[5125]:     from setuptools._distutils.util import strtobool
ceph-mgr[5125]: ModuleNotFoundError: No module named 'setuptools'
ceph-mgr[5125]: 2025-03-19T14:28:13.335+0000 7af7b3ec3000 -1 mgr[py] Class not found in module 'dashboard'
ceph-mgr[5125]: 2025-03-19T14:28:13.335+0000 7af7b3ec3000 -1 mgr[py] Error loading module 'dashboard': (2) No such file or directory
ceph-mgr[5125]: 2025-03-19T14:28:13.554+0000 7af7b3ec3000 -1 mgr[py] Module not found: 'volumes'
ceph-mgr[5125]: 2025-03-19T14:28:13.554+0000 7af7b3ec3000 -1 mgr[py] Traceback (most recent call last):
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/__init__.py", line 2, in <module>
ceph-mgr[5125]:     from .module import Module
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/module.py", line 9, in <module>
ceph-mgr[5125]:     from .fs.volume import VolumeClient
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 16, in <module>
ceph-mgr[5125]:     from .operations.group import open_group, create_group, remove_group, \
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/fs/operations/group.py", line 9, in <module>
ceph-mgr[5125]:     from .pin_util import pin
ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/fs/operations/pin_util.py", line 6, in <module>
ceph-mgr[5125]:     from setuptools._distutils.util import strtobool
ceph-mgr[5125]: ModuleNotFoundError: No module named 'setuptools'
ceph-mgr[5125]: 2025-03-19T14:28:13.555+0000 7af7b3ec3000 -1 mgr[py] Class not found in module 'volumes'
ceph-mgr[5125]: 2025-03-19T14:28:13.555+0000 7af7b3ec3000 -1 mgr[py] Error loading module 'volumes': (2) No such file or directory

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: ceph-mgr-dashboard 19.2.0-0ubuntu0.24.04.2 [modified: usr/share/ceph/mgr/dashboard/module.py]
ProcVersionSignature: Ubuntu 6.8.0-55.57-generic 6.8.12
Uname: Linux 6.8.0-55-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.28.1-0ubuntu3.5
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Wed Mar 19 14:31:13 2025
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: ceph
UpgradeStatus: Upgraded to noble on 2025-03-19 (0 days ago)

** Affects: ceph (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

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

Title:
  ModuleNotFoundError: No module named 'setuptools'

Status in ceph package in Ubuntu:
  New

Bug description:
  ceph-mgr-dashboards fail to load due to missing python3-setuptools:

  ceph-mgr[5125]: 2025-03-19T14:28:13.333+0000 7af7b3ec3000 -1 mgr[py] Module not found: 'dashboard'
  ceph-mgr[5125]: 2025-03-19T14:28:13.333+0000 7af7b3ec3000 -1 mgr[py] Traceback (most recent call last):
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/__init__.py", line 60, in <module>
  ceph-mgr[5125]:     from .module import Module, StandbyModule  # noqa: F401
  ceph-mgr[5125]:     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/module.py", line 30, in <module>
  ceph-mgr[5125]:     from .controllers import Router, json_error_page
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 1, in <module>
  ceph-mgr[5125]:     from ._api_router import APIRouter
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/controllers/_api_router.py", line 1, in <module>
  ceph-mgr[5125]:     from ._router import Router
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/controllers/_router.py", line 7, in <module>
  ceph-mgr[5125]:     from ._base_controller import BaseController
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 12, in <module>
  ceph-mgr[5125]:     from ..tools import get_request_body_params
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/dashboard/tools.py", line 12, in <module>
  ceph-mgr[5125]:     from setuptools._distutils.util import strtobool
  ceph-mgr[5125]: ModuleNotFoundError: No module named 'setuptools'
  ceph-mgr[5125]: 2025-03-19T14:28:13.335+0000 7af7b3ec3000 -1 mgr[py] Class not found in module 'dashboard'
  ceph-mgr[5125]: 2025-03-19T14:28:13.335+0000 7af7b3ec3000 -1 mgr[py] Error loading module 'dashboard': (2) No such file or directory
  ceph-mgr[5125]: 2025-03-19T14:28:13.554+0000 7af7b3ec3000 -1 mgr[py] Module not found: 'volumes'
  ceph-mgr[5125]: 2025-03-19T14:28:13.554+0000 7af7b3ec3000 -1 mgr[py] Traceback (most recent call last):
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/__init__.py", line 2, in <module>
  ceph-mgr[5125]:     from .module import Module
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/module.py", line 9, in <module>
  ceph-mgr[5125]:     from .fs.volume import VolumeClient
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 16, in <module>
  ceph-mgr[5125]:     from .operations.group import open_group, create_group, remove_group, \
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/fs/operations/group.py", line 9, in <module>
  ceph-mgr[5125]:     from .pin_util import pin
  ceph-mgr[5125]:   File "/usr/share/ceph/mgr/volumes/fs/operations/pin_util.py", line 6, in <module>
  ceph-mgr[5125]:     from setuptools._distutils.util import strtobool
  ceph-mgr[5125]: ModuleNotFoundError: No module named 'setuptools'
  ceph-mgr[5125]: 2025-03-19T14:28:13.555+0000 7af7b3ec3000 -1 mgr[py] Class not found in module 'volumes'
  ceph-mgr[5125]: 2025-03-19T14:28:13.555+0000 7af7b3ec3000 -1 mgr[py] Error loading module 'volumes': (2) No such file or directory

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: ceph-mgr-dashboard 19.2.0-0ubuntu0.24.04.2 [modified: usr/share/ceph/mgr/dashboard/module.py]
  ProcVersionSignature: Ubuntu 6.8.0-55.57-generic 6.8.12
  Uname: Linux 6.8.0-55-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.28.1-0ubuntu3.5
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Wed Mar 19 14:31:13 2025
  PackageArchitecture: all
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: ceph
  UpgradeStatus: Upgraded to noble on 2025-03-19 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2103626/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list