dnf-plugins-core
dnf-plugins-core copied to clipboard
Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli'
dnfdaemon is throwing me out the following error:
Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli'
I've looked at the code of debuginfo-install.py and found only:
import dnf
line.
Considering 'cli' module resides in its own subdirectory, shouldn't there be also a line:
import dnf.cli
there? Or, any 'cli' being referenced as 'dnf.cli' (and not just 'cli')?
I've manually added this import line, and it seems to resolve the issue (that error is not logged anymore at least).
Hi, thanks for the report. It seems that when the debuginfo-install plugin is used by dnf itself, the dnf.cli module is imported by some other script beforehand, so it's working. However, as you've pointed out, it should be referenced directly in debuginfo-install.py.