[Bug 2052018] Re: crmsh fails its autopkgtests with Python 3.12

Athos Ribeiro 2052018 at bugs.launchpad.net
Mon Feb 19 11:38:09 UTC 2024


Hi Skia! Thanks for the patch. It was accepted in Debian and already
merged in noble.

It seems upstream is suggesting a different approach (using the
packaging package) for the LooseVersion replacement instead.

** Changed in: crmsh (Ubuntu)
       Status: New => Fix Released

** Tags removed: update-excuse

** Changed in: booth (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2052018

Title:
  crmsh fails its autopkgtests with Python 3.12

Status in booth package in Ubuntu:
  Fix Released
Status in crmsh package in Ubuntu:
  Fix Released
Status in crmsh package in Debian:
  Fix Released

Bug description:
  Imported from Debian bug http://bugs.debian.org/1061794:

  Package: src:crmsh
  Version: 4.5.0-1
  Severity: important
  Tags: sid trixie ftbfs
  User: debian-python at lists.debian.org
  Usertags: python3.12

  With python3-defaults from experimental, the package fails its autopkg 
  tests:

  [...]
  1370s ==================================== ERRORS 
  ====================================
  1370s ______________________ ERROR collecting test_bootstrap.py 
  ______________________
  1370s ImportError while importing test module 
  '/usr/share/crmsh/tests/unittests/test_bootstrap.py'.
  1370s Hint: make sure your test modules/packages have valid Python names.
  1370s Traceback:
  1370s /usr/lib/python3/dist-packages/_pytest/python.py:617: in 
  _importtestmodule
  1370s     mod = import_path(self.path, mode=importmode, 
  root=self.config.rootpath)
  1370s /usr/lib/python3/dist-packages/_pytest/pathlib.py:567: in import_path
  1370s     importlib.import_module(module_name)
  1370s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
  1370s     return _bootstrap._gcd_import(name[level:], package, level)
  1370s <frozen importlib._bootstrap>:1387: in _gcd_import
  1370s     ???
  1370s <frozen importlib._bootstrap>:1360: in _find_and_load
  1370s     ???
  1370s <frozen importlib._bootstrap>:1310: in _find_and_load_unlocked
  1370s     ???
  1370s <frozen importlib._bootstrap>:488: in _call_with_frames_removed
  1370s     ???
  1370s <frozen importlib._bootstrap>:1387: in _gcd_import
  1370s     ???
  1370s <frozen importlib._bootstrap>:1360: in _find_and_load
  1370s     ???
  1370s <frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
  1370s     ???
  1370s <frozen importlib._bootstrap>:935: in _load_unlocked
  1370s     ???
  1370s <frozen importlib._bootstrap_external>:994: in exec_module
  1370s     ???
  1370s <frozen importlib._bootstrap>:488: in _call_with_frames_removed
  1370s     ???
  1370s __init__.py:22: in <module>
  1370s     from crmsh import cibconfig
  1370s /usr/lib/python3/dist-packages/crmsh/cibconfig.py:15: in <module>
  1370s     from . import tmpfiles
  1370s /usr/lib/python3/dist-packages/crmsh/tmpfiles.py:13: in <module>
  1370s     from . import utils
  1370s /usr/lib/python3/dist-packages/crmsh/utils.py:37: in <module>
  1370s     from distutils.version import LooseVersion
  1370s E   ModuleNotFoundError: No module named 'distutils'
  1370s ________________________ ERROR collecting test_bugs.py 
  _________________________
  1370s ImportError while importing test module 
  '/usr/share/crmsh/tests/unittests/test_bugs.py'.
  1370s Hint: make sure your test modules/packages have valid Python names.

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




More information about the Ubuntu-sponsors mailing list