FTBFS imp module not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hibagent (Ubuntu) |
Fix Released
|
Undecided
|
Mitchell Dzurick |
Bug Description
In noble, python3.12 is the default python version, which deprecates the imp module. importlib should be used instead.
test/hibagent_
/<<PKGBUILDDI
import imp
.pybuild/
.pybuild/
.pybuild/
/<<PKGBUILDDI
self.
-- Docs: https:/
=================== 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
Related branches
- Bryce Harrington (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 52 lines (+30/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/hibagent-test-use-importlib.patch (+22/-0)
debian/patches/series (+1/-0)
Changed in hibagent (Ubuntu): | |
assignee: | nobody → Mitchell Dzurick (mitchdz) |
Two nitpicks:
- the text '<YYYY-MM-DD, last update of the meta-information, optional>' accidentally made it into the patch
- it's more accurate to say that 'imp' was deprecated in 3.11 and *removed* in 3.12; "deprecated" implies that it still exists but it discouraged. Once it's gone, it's beyond deprecated.
Thanks