[Bug 2044029] Re: FTBFS imp module not found

Launchpad Bug Tracker 2044029 at bugs.launchpad.net
Tue Nov 21 15:44:09 UTC 2023


This bug was fixed in the package hibagent -
1.0.1+git20230216.9ac1209f7-0ubuntu3

---------------
hibagent (1.0.1+git20230216.9ac1209f7-0ubuntu3) noble; urgency=medium

  * d/p/hibagent-test-use-importlib.patch: use importlib in
    test/hibagent_test.py as imp was removed in python3.12 (LP: #2044029).

 -- Mitchell Dzurick <mitchell.dzurick at canonical.com>  Mon, 20 Nov 2023
15:51:14 -0700

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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to hibagent in Ubuntu.
https://bugs.launchpad.net/bugs/2044029

Title:
  FTBFS imp module not found

Status in hibagent package in Ubuntu:
  Fix Released

Bug description:
  In noble, python3.12 is the default python version, which deprecates
  the imp module. importlib should be used instead.

  test/hibagent_test.py:10
    /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_hibagent/build/test/hibagent_test.py:10: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
      import imp

  .pybuild/cpython3_3.11_hibagent/build/test/hibagent_test.py::TestSwapInitializer::test_background_run
  .pybuild/cpython3_3.11_hibagent/build/test/hibagent_test.py::TestSwapInitializer::test_early_interrupt
  .pybuild/cpython3_3.11_hibagent/build/test/hibagent_test.py::TestSwapInitializer::test_error
    /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_hibagent/build/test/../../../../agent/hibagent:263: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
      self.thread.setDaemon(True)

  -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
  =================== 8 passed, 1 skipped, 4 warnings in 1.05s ===================
  dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
  make: *** [debian/rules:5: build] Error 25
  dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

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




More information about the foundations-bugs mailing list