Open dirks opened 2 months ago
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
src/ansiblecmdb/render.py
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)
This issue's title is a bit misleading. The title should be cannot run ansible-cmdb with Python 3.12 and the actual error message should be included as well (ModuleNotFoundError: No module named 'imp')
cannot run ansible-cmdb with Python 3.12
ModuleNotFoundError: No module named 'imp'
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