Public bug reported:
carbon-cache (package graphite-carbon, version 1.1.7-1.1) cannot start
because python removed the "imp" module from the version of python3 that
ships with ubuntu (Ubuntu 24.04.3 LTS)
# /usr/bin/carbon-cache --config=/etc/carbon/carbon.conf
--pidfile=/var/run/carbon-cache.pid --logdir=/var/log/carbon/ start
Traceback (most recent call last):
File "/usr/bin/carbon-cache", line 32, in <module>
run_twistd_plugin(__file__)
File "/usr/lib/python3/dist-packages/carbon/util.py", line 71, in
run_twistd_plugin
from carbon.conf import get_parser
File "/usr/lib/python3/dist-packages/carbon/conf.py", line 31, in <module>
from carbon.routers import DatapointRouter
File "/usr/lib/python3/dist-packages/carbon/routers.py", line 1, in
<module>
import imp
ModuleNotFoundError: No module named 'imp'
Expectation: carbon-cache would start up after version upgrade
Observation: carbon-cache crashed on startup
Work-around: As a partial work around, the "import imp" can be commented
out, although loading modules is going to fail:
perl -p -e -i 's/^import imp/#import imp/' /usr/lib/python3/dist-
packages/carbon/routers.py
** Affects: graphite-carbon (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2132021
Title:
carbon/routers.py requires imp which is not included in python3.12
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphite-carbon/+bug/2132021/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs