[Bug 2044029] [NEW] FTBFS imp module not found
Mitchell Dzurick
2044029 at bugs.launchpad.net
Mon Nov 20 22:44:12 UTC 2023
Public bug reported:
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
** Affects: hibagent (Ubuntu)
Importance: Undecided
Status: New
--
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:
New
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