You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')
And here is the error message when I try to convert the files on html.
ansible-cmdb -t html_fancy_split -p local_js=0 out/
Traceback (most recent call last):
File "/home/user/Ansible/bin/../lib/ansiblecmdb/ansible-cmdb.py", line 22, in <module>
import ansiblecmdb.render as render
File "/home/user/Ansible/lib/python3.12/site-packages/ansiblecmdb/render.py", line 2, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
Is this suppose to be fix, or any workaround is provided ?
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#impThe text was updated successfully, but these errors were encountered: