In src/ansiblecmdb/render.py imp is used, which has been deprecated in python 3.4 and removed in python 3.12, see https://docs.python.org/3.12/whatsnew/3.12.html#imp
import imp
[…]
def _render_py(self, hosts, vars={}):
module = imp.load_source('r', self.tpl_file)
return module.render(hosts, vars=vars, tpl_dirs=self.tpl_dirs)